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 [[email protected]:1] Macro(“SIP/540-00000658”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“SIP/540-00000658”, “TOUCH_MONITOR=1533701946.1656”) in new stack
– Executing [[email protected]:2] Set(“SIP/540-00000658”, “AMPUSER=540”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/540-00000658”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/540-00000658”, “1?Set(REALCALLERIDNUM=540)”) in new stack
– Executing [[email protected]:5] Set(“SIP/540-00000658”, “AMPUSER=540”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/540-00000658”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/540-00000658”, “AMPUSERCIDNAME=Krunal Thakar”) in new stack
– Executing [[email protected]:8] ExecIf(“SIP/540-00000658”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/540-00000658”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“SIP/540-00000658”, “AMPUSERCID=540”) in new stack
– Executing [[email protected]:11] Set(“SIP/540-00000658”, “__DIAL_OPTIONS=Tt”) in new stack
– Executing [[email protected]:12] Set(“SIP/540-00000658”, “CALLERID(all)=“Krunal Thakar” <540>”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/540-00000658”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/540-00000658”, “1?Set(GROUP(concurrency_limit)=540)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/540-00000658”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“SIP/540-00000658”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/540-00000658”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“SIP/540-00000658”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“SIP/540-00000658”, “CALLERID(number)=540”) in new stack
– Executing [[email protected]:38] Set(“SIP/540-00000658”, “CALLERID(name)=Krunal Thakar”) in new stack
– Executing [[email protected]:39] GotoIf(“SIP/540-00000658”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“SIP/540-00000658”, “CDR(cnam)=Krunal Thakar”) in new stack
– Executing [[email protected]:41] Set(“SIP/540-00000658”, “CDR(cnum)=540”) in new stack
– Executing [[email protected]:42] Set(“SIP/540-00000658”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Gosub(“SIP/540-00000658”, “sub-record-check,s,1(out,29724963997,force)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/540-00000658”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/540-00000658”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/540-00000658”, “NOW=1533701946”) in new stack
– Executing [[email protected]:4] Set(“SIP/540-00000658”, “__DAY=08”) in new stack
– Executing [[email protected]:5] Set(“SIP/540-00000658”, “__MONTH=08”) in new stack
– Executing [[email protected]:6] Set(“SIP/540-00000658”, “__YEAR=2018”) in new stack
– Executing [[email protected]:7] Set(“SIP/540-00000658”, “__TIMESTR=20180808-094906”) in new stack
– Executing [[email protected]:8] Set(“SIP/540-00000658”, “__FROMEXTEN=540”) in new stack
– Executing [[email protected]:9] Set(“SIP/540-00000658”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/540-00000658”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/540-00000658”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/540-00000658”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/540-00000658”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/540-00000658”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/540-00000658”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“SIP/540-00000658”, “Outbound Recording Check from 540 to 29724963997”) in new stack
– Executing [[email protected]:2] Set(“SIP/540-00000658”, “RECMODE=no”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/540-00000658”, “0?Goto(routewins)”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/540-00000658”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“SIP/540-00000658”, “recordcheck,1(force,out,29724963997)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/540-00000658”, “Starting recording check against force”) in new stack
– Executing [[email protected]:2] Goto(“SIP/540-00000658”, “force”) in new stack
– Goto (sub-record-check,recordcheck,5)
– Executing [[email protected]:5] Set(“SIP/540-00000658”, “__REC_POLICY_MODE=FORCE”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/540-00000658”, “1?startrec”) in new stack
– Goto (sub-record-check,recordcheck,16)
– Executing [[email protected]:16] NoOp(“SIP/540-00000658”, “Starting recording: out, 29724963997”) in new stack
– Executing [[email protected]: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 [[email protected]:18] Set(“SIP/540-00000658”, “__CALLFILENAME=out-29724963997-540-20180808-094906-1533701946.1656”) in new stack
– Executing [[email protected]: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 [[email protected]:20] Set(“SIP/540-00000658”, “__MIXMON_ID=0x7fa4d009af40”) in new stack
== Begin MixMonitor Recording SIP/540-00000658
– Executing [[email protected]:21] Set(“SIP/540-00000658”, “__RECORD_ID=SIP/540-00000658”) in new stack
– Executing [[email protected]:22] Set(“SIP/540-00000658”, “__REC_STATUS=RECORDING”) in new stack
– Executing [[email protected]:23] Set(“SIP/540-00000658”, “CDR(recordingfile)=out-29724963997-540-20180808-094906-1533701946.1656.wav”) in new stack
– Executing [[email protected]:24] Return(“SIP/540-00000658”, “”) in new stack
– Executing [[email protected]:8] Return(“SIP/540-00000658”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/540-00000658”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/540-00000658”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/540-00000658”, “1?Set(TRUNKCIDOVERRIDE=<7800>)”) in new stack
– Executing [[email protected]al:6] Set(“SIP/540-00000658”, “_NODEST=”) in new stack
– Executing [[email protected]:7] Macro(“SIP/540-00000658”, “dialout-trunk,3,9724963997,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/540-00000658”, “DIAL_TRUNK=3”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/540-00000658”, “0?Set(DIAL_OPTIONS=t)”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/540-00000658”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/540-00000658”, “0?Set(CALLERID(num)=540)”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/540-00000658”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:6] Set(“SIP/540-00000658”, “DIAL_NUMBER=9724963997”) in new stack
– Executing [[email protected]:7] Set(“SIP/540-00000658”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [[email protected]:8] Set(“SIP/540-00000658”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [[email protected]:9] Set(“SIP/540-00000658”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/540-00000658”, “0?nomax”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/540-00000658”, “0?chanfull”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/540-00000658”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Macro(“SIP/540-00000658”, “outbound-callerid,3”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/540-00000658”, “0?Set(REALCALLERIDNUM=540)”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/540-00000658”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [[email protected]:7] Set(“SIP/540-00000658”, “USEROUTCID=“Krunal Thakar”<7540>”) in new stack
– Executing [[email protected]:8] Set(“SIP/540-00000658”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:9] Set(“SIP/540-00000658”, “TRUNKOUTCID=12345678”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/540-00000658”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [[email protected]:15] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=12345678)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=“Krunal Thakar”<7540>)”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=<7800>)”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:20] Set(“SIP/540-00000658”, “CDR(outbound_cnum)=7800”) in new stack
– Executing [[email protected]:21] Set(“SIP/540-00000658”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/540-00000658”, “1?Set(CALLERID(all)=<7800>)”) in new stack
– Executing [[email protected]:23] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:24] ExecIf(“SIP/540-00000658”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:25] Set(“SIP/540-00000658”, “CDR(outbound_cnum)=7800”) in new stack
– Executing [[email protected]:26] Set(“SIP/540-00000658”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:14] GosubIf(“SIP/540-00000658”, “0?sub-flp-3,s,1()”) in new stack
– Executing [[email protected]:15] Set(“SIP/540-00000658”, “OUTNUM=9724963997”) in new stack
– Executing [[email protected]:16] Set(“SIP/540-00000658”, “custom=SIP/Dinestar_out”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/540-00000658”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/540-00000658”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [[email protected]:19] Macro(“SIP/540-00000658”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/540-00000658”, “”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/540-00000658”, “0?skipcrm”) in new stack
– Executing [[email protected]:21] Set(“SIP/540-00000658”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:22] Set(“SIP/540-00000658”, “__CRM_DESTINATION=9724963997”) in new stack
– Executing [[email protected]:23] Set(“SIP/540-00000658”, “__CRM_SOURCE=540”) in new stack
– Executing [[email protected]: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 [[email protected]:25] Set(“SIP/540-00000658”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:26] NoOp(“SIP/540-00000658”, “CRM Finished”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/540-00000658”, “0?bypass,1”) in new stack
– Executing [[email protected]:28] ExecIf(“SIP/540-00000658”, “1?Set(CONNECTEDLINE(num,i)=9724963997)”) in new stack
– Executing [[email protected]:29] ExecIf(“SIP/540-00000658”, “1?Set(CONNECTEDLINE(name,i)=CID:7800)”) in new stack
– Executing [[email protected]:30] ExecIf(“SIP/540-00000658”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)7800)”) in new stack
– Executing [[email protected]:31] GotoIf(“SIP/540-00000658”, “0?customtrunk”) in new stack
– Executing [[email protected]: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 [[email protected]:1] ExecIf(“SIP/Dinestar_out-00000659”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/Dinestar_out-00000659”, “Applying SIP Headers to channel”) in new stack
– Executing [[email protected]:3] Set(“SIP/Dinestar_out-00000659”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/Dinestar_out-00000659”, “0?Set(Rheader=1)”) in new stack
– Executing [[email protected]:5] While(“SIP/Dinestar_out-00000659”, “0”) in new stack
– Jumping to priority 9
– Executing [[email protected]:10] ExecIf(“SIP/Dinestar_out-00000659”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/Dinestar_out-00000659”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [[email protected]: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.