Multiple ring back tone issue

Hi, I am Using FreePBX Distro version 14.0.3.6.
We are having 2 trunks one is PRI Gateway and other one is GSM Gateway.
We have no issue with PRI Gateway. But When user makes an outbound call from GSM Gateway they heard multiple ring back tone.

After subsequent troubleshooting I have found that my GSM Gateway also have Ringback tone feature. So most likely Ringback tone is generated by GSM Gateway and FreePBX both at the same time and that may cause the issue. I have disable ringback tone feature in GSM Gateway and found that there is no multiple ringback tone. but at the same time I found some other issues with ringback tone. I.e. If remote user not answering or cut the call then, user behind freepbx heard ringing instead of playing User busy tone.

I have remove “r” from trunk dial option from advance setting but no success. Is there any way such that pbx dont create ring back tone itself?

Any other solution from i have stated is highly appreciated.

Thanks In Advance.

Here I am Attaching a log for your reference.

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [29724963997@from-internal:1] Macro(“SIP/540-00000658”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/540-00000658”, “TOUCH_MONITOR=1533701946.1656”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/540-00000658”, “AMPUSER=540”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/540-00000658”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/540-00000658”, “1?Set(REALCALLERIDNUM=540)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/540-00000658”, “AMPUSER=540”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/540-00000658”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/540-00000658”, “AMPUSERCIDNAME=Krunal Thakar”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“SIP/540-00000658”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/540-00000658”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/540-00000658”, “AMPUSERCID=540”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/540-00000658”, “__DIAL_OPTIONS=Tt”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/540-00000658”, “CALLERID(all)=“Krunal Thakar” <540>”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/540-00000658”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/540-00000658”, “1?Set(GROUP(concurrency_limit)=540)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“SIP/540-00000658”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“SIP/540-00000658”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“SIP/540-00000658”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“SIP/540-00000658”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“SIP/540-00000658”, “CALLERID(number)=540”) in new stack
– Executing [s@macro-user-callerid:38] Set(“SIP/540-00000658”, “CALLERID(name)=Krunal Thakar”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“SIP/540-00000658”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“SIP/540-00000658”, “CDR(cnam)=Krunal Thakar”) in new stack
– Executing [s@macro-user-callerid:41] Set(“SIP/540-00000658”, “CDR(cnum)=540”) in new stack
– Executing [s@macro-user-callerid:42] Set(“SIP/540-00000658”, “CHANNEL(language)=en”) in new stack
– Executing [29724963997@from-internal:2] Gosub(“SIP/540-00000658”, “sub-record-check,s,1(out,29724963997,force)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/540-00000658”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/540-00000658”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/540-00000658”, “NOW=1533701946”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/540-00000658”, “__DAY=08”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/540-00000658”, “__MONTH=08”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/540-00000658”, “__YEAR=2018”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/540-00000658”, “__TIMESTR=20180808-094906”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/540-00000658”, “__FROMEXTEN=540”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/540-00000658”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/540-00000658”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/540-00000658”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/540-00000658”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/540-00000658”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/540-00000658”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/540-00000658”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/540-00000658”, “Outbound Recording Check from 540 to 29724963997”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/540-00000658”, “RECMODE=no”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/540-00000658”, “0?Goto(routewins)”) in new stack
– Executing [out@sub-record-check:4] ExecIf(“SIP/540-00000658”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/540-00000658”, “recordcheck,1(force,out,29724963997)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/540-00000658”, “Starting recording check against force”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/540-00000658”, “force”) in new stack
– Goto (sub-record-check,recordcheck,5)
– Executing [recordcheck@sub-record-check:5] Set(“SIP/540-00000658”, “__REC_POLICY_MODE=FORCE”) in new stack
– Executing [recordcheck@sub-record-check:6] GotoIf(“SIP/540-00000658”, “1?startrec”) in new stack
– Goto (sub-record-check,recordcheck,16)
– Executing [recordcheck@sub-record-check:16] NoOp(“SIP/540-00000658”, “Starting recording: out, 29724963997”) in new stack
– Executing [recordcheck@sub-record-check:17] Set(“SIP/540-00000658”, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
[2018-08-08 09:49:06] ERROR[6946][C-0000032e]: pbx_functions.c:701 ast_func_write: Function AUDIOHOOK_INHERIT not registered
– Executing [recordcheck@sub-record-check:18] Set(“SIP/540-00000658”, “__CALLFILENAME=out-29724963997-540-20180808-094906-1533701946.1656”) in new stack
– Executing [recordcheck@sub-record-check:19] MixMonitor(“SIP/540-00000658”, “/var/spool/asterisk/monitor/2018/08/08/out-29724963997-540-20180808-094906-1533701946.1656.wav,abi(LOCAL_MIXMON_ID),”) in new stack
– Executing [recordcheck@sub-record-check:20] Set(“SIP/540-00000658”, “__MIXMON_ID=0x7fa4d009af40”) in new stack
== Begin MixMonitor Recording SIP/540-00000658
– Executing [recordcheck@sub-record-check:21] Set(“SIP/540-00000658”, “__RECORD_ID=SIP/540-00000658”) in new stack
– Executing [recordcheck@sub-record-check:22] Set(“SIP/540-00000658”, “__REC_STATUS=RECORDING”) in new stack
– Executing [recordcheck@sub-record-check:23] Set(“SIP/540-00000658”, “CDR(recordingfile)=out-29724963997-540-20180808-094906-1533701946.1656.wav”) in new stack
– Executing [recordcheck@sub-record-check:24] Return(“SIP/540-00000658”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/540-00000658”, “”) in new stack
– Executing [29724963997@from-internal:3] ExecIf(“SIP/540-00000658”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [29724963997@from-internal:4] Set(“SIP/540-00000658”, “MOHCLASS=default”) in new stack
– Executing [29724963997@from-internal:5] ExecIf(“SIP/540-00000658”, “1?Set(TRUNKCIDOVERRIDE=<7800>)”) in new stack
– Executing [29724963997@from-internal:6] Set(“SIP/540-00000658”, “_NODEST=”) in new stack
– Executing [29724963997@from-internal:7] Macro(“SIP/540-00000658”, “dialout-trunk,3,9724963997,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/540-00000658”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“SIP/540-00000658”, “0?Set(DIAL_OPTIONS=t)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“SIP/540-00000658”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“SIP/540-00000658”, “0?Set(CALLERID(num)=540)”) in new stack
– Executing [s@macro-dialout-trunk:5] GotoIf(“SIP/540-00000658”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/540-00000658”, “DIAL_NUMBER=9724963997”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/540-00000658”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/540-00000658”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/540-00000658”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“SIP/540-00000658”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“SIP/540-00000658”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/540-00000658”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Macro(“SIP/540-00000658”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/540-00000658”, “0?Set(REALCALLERIDNUM=540)”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/540-00000658”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [s@macro-outbound-callerid:7] Set(“SIP/540-00000658”, “USEROUTCID=“Krunal Thakar”<7540>”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/540-00000658”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] Set(“SIP/540-00000658”, “TRUNKOUTCID=12345678”) in new stack
– Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/540-00000658”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=12345678)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=“Krunal Thakar”<7540>)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=<7800>)”) in new stack
– Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:20] Set(“SIP/540-00000658”, “CDR(outbound_cnum)=7800”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“SIP/540-00000658”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=<7800>)”) in new stack
– Executing [s@macro-outbound-callerid:23] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:24] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:25] Set(“SIP/540-00000658”, “CDR(outbound_cnum)=7800”) in new stack
– Executing [s@macro-outbound-callerid:26] Set(“SIP/540-00000658”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:14] GosubIf(“SIP/540-00000658”, “0?sub-flp-3,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“SIP/540-00000658”, “OUTNUM=9724963997”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“SIP/540-00000658”, “custom=SIP/Dinestar_out”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“SIP/540-00000658”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“SIP/540-00000658”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:19] Macro(“SIP/540-00000658”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/540-00000658”, “”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/540-00000658”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:21] Set(“SIP/540-00000658”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“SIP/540-00000658”, “__CRM_DESTINATION=9724963997”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“SIP/540-00000658”, “__CRM_SOURCE=540”) in new stack
– Executing [s@macro-dialout-trunk:24] AGI(“SIP/540-00000658”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/540-00000658>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@macro-dialout-trunk:25] Set(“SIP/540-00000658”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:26] NoOp(“SIP/540-00000658”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:27] GotoIf(“SIP/540-00000658”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:28] ExecIf(“SIP/540-00000658”, “1?Set(CONNECTEDLINE(num,i)=9724963997)”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“SIP/540-00000658”, “1?Set(CONNECTEDLINE(name,i)=CID:7800)”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“SIP/540-00000658”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)7800)”) in new stack
– Executing [s@macro-dialout-trunk:31] GotoIf(“SIP/540-00000658”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:32] Dial(“SIP/540-00000658”, “SIP/Dinestar_out/9724963997,300,Ttb(func-apply-sipheaders^s^1)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/Dinestar_out-00000659 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“SIP/Dinestar_out-00000659”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“SIP/Dinestar_out-00000659”, “Applying SIP Headers to channel”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“SIP/Dinestar_out-00000659”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] ExecIf(“SIP/Dinestar_out-00000659”, “0?Set(Rheader=1)”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“SIP/Dinestar_out-00000659”, “0”) in new stack
– Jumping to priority 9
– Executing [s@func-apply-sipheaders:10] ExecIf(“SIP/Dinestar_out-00000659”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [s@func-apply-sipheaders:11] ExecIf(“SIP/Dinestar_out-00000659”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [s@func-apply-sipheaders:12] Return(“SIP/Dinestar_out-00000659”, “”) in new stack
== Spawn extension (from-pstn, 29724963997, 1) exited non-zero on ‘SIP/Dinestar_out-00000659’
– SIP/Dinestar_out-00000659 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called SIP/Dinestar_out/9724963997
– SIP/Dinestar_out-00000659 is making progress passing it to SIP/540-00000658

Is there any one who can address my issue?

Thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.