Hi all:
freepbx 14
asterisk 13
I use freepbx14 to connect sip trunk lines, AsteriskCLI input sip show peers shows the connection is normal. My outgoing and incoming routing configuration is not wrong.When I am outgoing and incoming, return busy tone and CLI does not have any messages when incoming.what should i do?
The follow is cli print log:
===========================================================================
6 sip peers [Monitored: 2 online, 4 offline Unmonitored: 0 online, 0 offline]
** == Using SIP RTP TOS bits 184**
** == Using SIP RTP CoS mark 5**
** – Executing [10086@from-internal:1] Macro(“SIP/4080-00000002”, “user-callerid,LIMIT”) in new stack**
** – Executing [s@macro-user-callerid:1] Set(“SIP/4080-00000002”, “TOUCH_MONITOR=1526440701.2”) in new stack**
** – Executing [s@macro-user-callerid:2] Set(“SIP/4080-00000002”, “AMPUSER=4080”) in new stack**
** – Executing [s@macro-user-callerid:3] GotoIf(“SIP/4080-00000002”, “0?report”) in new stack**
** – Executing [s@macro-user-callerid:4] ExecIf(“SIP/4080-00000002”, “1?Set(REALCALLERIDNUM=4080)”) in new stack**
** – Executing [s@macro-user-callerid:5] Set(“SIP/4080-00000002”, “AMPUSER=4080”) in new stack**
** – Executing [s@macro-user-callerid:6] GotoIf(“SIP/4080-00000002”, “0?limit”) in new stack**
** – Executing [s@macro-user-callerid:7] Set(“SIP/4080-00000002”, “AMPUSERCIDNAME=4080”) in new stack**
** – Executing [s@macro-user-callerid:8] GotoIf(“SIP/4080-00000002”, “0?report”) in new stack**
** – Executing [s@macro-user-callerid:9] Set(“SIP/4080-00000002”, “AMPUSERCID=4080”) in new stack**
** – Executing [s@macro-user-callerid:10] Set(“SIP/4080-00000002”, “__DIAL_OPTIONS=Ttr”) in new stack**
** – Executing [s@macro-user-callerid:11] Set(“SIP/4080-00000002”, “CALLERID(all)=“4080” <4080>”) in new stack**
** – Executing [s@macro-user-callerid:12] GotoIf(“SIP/4080-00000002”, “0?limit”) in new stack**
** – Executing [s@macro-user-callerid:13] ExecIf(“SIP/4080-00000002”, “1?Set(GROUP(concurrency_limit)=4080)”) in new stack**
** – Executing [s@macro-user-callerid:14] ExecIf(“SIP/4080-00000002”, “0?Set(CHANNEL(language)=)”) in new stack**
** – Executing [s@macro-user-callerid:15] NoOp(“SIP/4080-00000002”, “Macro Depth is 1”) in new stack**
** – Executing [s@macro-user-callerid:16] GotoIf(“SIP/4080-00000002”, “1?report2:macroerror”) in new stack**
** – Goto (macro-user-callerid,s,18)**
** – Executing [s@macro-user-callerid:18] GotoIf(“SIP/4080-00000002”, “1?continue”) in new stack**
** – Goto (macro-user-callerid,s,36)**
** – Executing [s@macro-user-callerid:36] Set(“SIP/4080-00000002”, “CALLERID(number)=4080”) in new stack**
** – Executing [s@macro-user-callerid:37] Set(“SIP/4080-00000002”, “CALLERID(name)=4080”) in new stack**
** – Executing [s@macro-user-callerid:38] GotoIf(“SIP/4080-00000002”, “0?cnum”) in new stack**
** – Executing [s@macro-user-callerid:39] Set(“SIP/4080-00000002”, “CDR(cnam)=4080”) in new stack**
** – Executing [s@macro-user-callerid:40] Set(“SIP/4080-00000002”, “CDR(cnum)=4080”) in new stack**
** – Executing [s@macro-user-callerid:41] Set(“SIP/4080-00000002”, “CHANNEL(language)=en”) in new stack**
** – Executing [s@macro-user-callerid:42] GosubIf(“SIP/4080-00000002”, “0?app-check-classofservce,s,1()”) in new stack**
** – Executing [10086@from-internal:2] Set(“SIP/4080-00000002”, “ROUTEUSER=4080”) in new stack**
** – Executing [10086@from-internal:3] Set(“SIP/4080-00000002”, “ROUTEUSER=4080”) in new stack**
** – Executing [10086@from-internal:4] GotoIf(“SIP/4080-00000002”, “1?notblind”) in new stack**
** – Goto (from-internal,10086,7)**
** – Executing [10086@from-internal:7] GotoIf(“SIP/4080-00000002”, “1?restrictedroute-c4ca4238a0b923820dcc509a6f75849b,10086,2:outbound-allroutes,10086,2”) in new stack**
** – Goto (restrictedroute-c4ca4238a0b923820dcc509a6f75849b,10086,2)**
** – Executing [10086@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:2] Gosub(“SIP/4080-00000002”, “sub-record-check,s,1(out,10086,dontcare)”) in new stack**
** – Executing [s@sub-record-check:1] GotoIf(“SIP/4080-00000002”, “0?initialized”) in new stack**
** – Executing [s@sub-record-check:2] Set(“SIP/4080-00000002”, “__REC_STATUS=INITIALIZED”) in new stack**
** – Executing [s@sub-record-check:3] Set(“SIP/4080-00000002”, “NOW=1526440701”) in new stack**
** – Executing [s@sub-record-check:4] Set(“SIP/4080-00000002”, “__DAY=16”) in new stack**
** – Executing [s@sub-record-check:5] Set(“SIP/4080-00000002”, “__MONTH=05”) in new stack**
** – Executing [s@sub-record-check:6] Set(“SIP/4080-00000002”, “__YEAR=2018”) in new stack**
** – Executing [s@sub-record-check:7] Set(“SIP/4080-00000002”, “__TIMESTR=20180516-111821”) in new stack**
** – Executing [s@sub-record-check:8] Set(“SIP/4080-00000002”, “__FROMEXTEN=4080”) in new stack**
** – Executing [s@sub-record-check:9] Set(“SIP/4080-00000002”, “__MON_FMT=wav”) in new stack**
** – Executing [s@sub-record-check:10] NoOp(“SIP/4080-00000002”, “Recordings initialized”) in new stack**
** – Executing [s@sub-record-check:11] ExecIf(“SIP/4080-00000002”, “0?Set(ARG3=dontcare)”) in new stack**
** – Executing [s@sub-record-check:12] Set(“SIP/4080-00000002”, “REC_POLICY_MODE_SAVE=”) in new stack**
** – Executing [s@sub-record-check:13] ExecIf(“SIP/4080-00000002”, “0?Set(REC_STATUS=NO)”) in new stack**
** – Executing [s@sub-record-check:14] GotoIf(“SIP/4080-00000002”, “3?checkaction”) in new stack**
** – Goto (sub-record-check,s,17)**
** – Executing [s@sub-record-check:17] GotoIf(“SIP/4080-00000002”, “1?sub-record-check,out,1”) in new stack**
** – Goto (sub-record-check,out,1)**
** – Executing [out@sub-record-check:1] NoOp(“SIP/4080-00000002”, “Outbound Recording Check from 4080 to 10086”) in new stack**
** – Executing [out@sub-record-check:2] Set(“SIP/4080-00000002”, “RECMODE=dontcare”) in new stack**
** – Executing [out@sub-record-check:3] ExecIf(“SIP/4080-00000002”, “1?Goto(routewins)”) in new stack**
** – Goto (sub-record-check,out,7)**
** – Executing [out@sub-record-check:7] Gosub(“SIP/4080-00000002”, “recordcheck,1(dontcare,out,10086)”) in new stack**
** – Executing [recordcheck@sub-record-check:1] NoOp(“SIP/4080-00000002”, “Starting recording check against dontcare”) in new stack**
** – Executing [recordcheck@sub-record-check:2] Goto(“SIP/4080-00000002”, “dontcare”) in new stack**
** – Goto (sub-record-check,recordcheck,3)**
** – Executing [recordcheck@sub-record-check:3] Return(“SIP/4080-00000002”, “”) in new stack**
** – Executing [out@sub-record-check:8] Return(“SIP/4080-00000002”, “”) in new stack**
** – Executing [10086@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:3] ExecIf(“SIP/4080-00000002”, “0 ?Set(CDR(accountcode)=)”) in new stack**
** – Executing [10086@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:4] Set(“SIP/4080-00000002”, “MOHCLASS=default”) in new stack**
** – Executing [10086@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:5] Set(“SIP/4080-00000002”, “_NODEST=”) in new stack**
** – Executing [10086@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:6] Macro(“SIP/4080-00000002”, “dialout-trunk,3,10086,off”) in new stack**
** – Executing [s@macro-dialout-trunk:1] Set(“SIP/4080-00000002”, “DIAL_TRUNK=3”) in new stack**
** – Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/4080-00000002”, “0?sub-pincheck,s,1()”) in new stack**
** – Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/4080-00000002”, “0?disabletrunk,1”) in new stack**
** – Executing [s@macro-dialout-trunk:4] Set(“SIP/4080-00000002”, “DIAL_NUMBER=10086”) in new stack**
** – Executing [s@macro-dialout-trunk:5] Set(“SIP/4080-00000002”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack**
** – Executing [s@macro-dialout-trunk:6] Set(“SIP/4080-00000002”, “OUTBOUND_GROUP=OUT_3”) in new stack**
** – Executing [s@macro-dialout-trunk:7] Set(“SIP/4080-00000002”, “DIAL_TRUNK_OPTIONS=T”) in new stack**
** – Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/4080-00000002”, “1?nomax”) in new stack**
** – Goto (macro-dialout-trunk,s,10)**
** – Executing [s@macro-dialout-trunk:10] GotoIf(“SIP/4080-00000002”, “0?skipoutcid”) in new stack**
** – Executing [s@macro-dialout-trunk:11] Macro(“SIP/4080-00000002”, “outbound-callerid,3”) in new stack**
** – Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERPRES(name-pres)=)”) in new stack**
** – Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERPRES(num-pres)=)”) in new stack**
** – Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/4080-00000002”, “0?Set(REALCALLERIDNUM=4080)”) in new stack**
** – Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/4080-00000002”, “1?normcid”) in new stack**
** – Goto (macro-outbound-callerid,s,7)**
** – Executing [s@macro-outbound-callerid:7] Set(“SIP/4080-00000002”, “USEROUTCID=”) in new stack**
** – Executing [s@macro-outbound-callerid:8] Set(“SIP/4080-00000002”, “EMERGENCYCID=”) in new stack**
** – Executing [s@macro-outbound-callerid:9] Set(“SIP/4080-00000002”, “TRUNKOUTCID=”) in new stack**
** – Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/4080-00000002”, “1?trunkcid”) in new stack**
** – Goto (macro-outbound-callerid,s,15)**
** – Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERID(all)=)”) in new stack**
** – Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERID(all)=)”) in new stack**
** – Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERID(all)=)”) in new stack**
** – Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack**
** – Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/4080-00000002”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack**
** – Executing [s@macro-outbound-callerid:20] Set(“SIP/4080-00000002”, “CDR(outbound_cnum)=4080”) in new stack**
** – Executing [s@macro-outbound-callerid:21] Set(“SIP/4080-00000002”, “CDR(outbound_cnam)=4080”) in new stack**
** – Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/4080-00000002”, “0?sub-flp-3,s,1()”) in new stack**
** – Executing [s@macro-dialout-trunk:13] Set(“SIP/4080-00000002”, “OUTNUM=10086”) in new stack**
** – Executing [s@macro-dialout-trunk:14] Set(“SIP/4080-00000002”, “custom=SIP/test”) in new stack**
** – Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/4080-00000002”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack**
** – Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/4080-00000002”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack**
** – Executing [s@macro-dialout-trunk:17] Macro(“SIP/4080-00000002”, “dialout-trunk-predial-hook,”) in new stack**
** – Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/4080-00000002”, “”) in new stack**
** – Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/4080-00000002”, “0?skipcrm”) in new stack**
** – Executing [s@macro-dialout-trunk:19] Set(“SIP/4080-00000002”, “__CRM_DIRECTION=OUTBOUND”) in new stack**
** – Executing [s@macro-dialout-trunk:20] Set(“SIP/4080-00000002”, “__CRM_DESTINATION=10086”) in new stack**
** – Executing [s@macro-dialout-trunk:21] Set(“SIP/4080-00000002”, “__CRM_SOURCE=4080”) in new stack**
** – Executing [s@macro-dialout-trunk:22] AGI(“SIP/4080-00000002”, “sangomacrm.agi”) in new stack**
** – Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi**
sangomacrm.agi: LINKEDID: 1526440701.2
sangomacrm.agi: SOURCE: 4080
sangomacrm.agi: DESTINATION: 10086
sangomacrm.agi: DIRECTION: OUTBOUND
sangomacrm.agi: EXTTOCALL: **
sangomacrm.agi: START
sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php ‘eyJ1dWlkIjoiMTUyNjQ0MDcwMS4yIiwic291cmNlIjoiNDA4MCIsImRlc3RpbmF0aW9uIjoiMTAwODYiLCJkaXJlY3Rpb24iOiJPVVRCT1VORCIsInR5cGUiOiJTVEFSVCIsInp1bHVfdHlwZSI6IiIsImV4dHRvY2FsbCI6IiIsImNudW0iOiI0MDgwIiwiY25hbSI6IjQwODAiLCJjYWxscG9wIjpmYWxzZSwidm9pY2VtYWlsIjoiIn0=’ > /dev/null 2>&1 &
** – <SIP/4080-00000002>AGI Script sangomacrm.agi completed, returning 0
** – Executing [s@macro-dialout-trunk:23] Set(“SIP/4080-00000002”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack**
** – Executing [s@macro-dialout-trunk:24] NoOp(“SIP/4080-00000002”, “CRM Finished”) in new stack**
** – Executing [s@macro-dialout-trunk:25] GotoIf(“SIP/4080-00000002”, “0?bypass,1”) in new stack**
** – Executing [s@macro-dialout-trunk:26] ExecIf(“SIP/4080-00000002”, “1?Set(CONNECTEDLINE(num,i)=10086)”) in new stack**
** – Executing [s@macro-dialout-trunk:27] ExecIf(“SIP/4080-00000002”, “1?Set(CONNECTEDLINE(name,i)=CID:4080)”) in new stack**
** – Executing [s@macro-dialout-trunk:28] ExecIf(“SIP/4080-00000002”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)4080)”) in new stack**
** – Executing [s@macro-dialout-trunk:29] GotoIf(“SIP/4080-00000002”, “0?customtrunk”) in new stack**
** – Executing [s@macro-dialout-trunk:30] Dial(“SIP/4080-00000002”, “SIP/test/10086,300,T”) in new stack**
** == Using SIP RTP TOS bits 184**
** == Using SIP RTP CoS mark 5**
** – Called SIP/test/10086**
** – SIP/test-00000003 redirecting info has changed, passing it to SIP/4080-00000002**
** – SIP/test-00000003 is busy**
** == Everyone is busy/congested at this time (1:1/0/0)**
** – Executing [s@macro-dialout-trunk:31] NoOp(“SIP/4080-00000002”, “Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 19”) in new stack**
** – Executing [s@macro-dialout-trunk:32] GotoIf(“SIP/4080-00000002”, “0?continue,1:s-BUSY,1”) in new stack**
** – Goto (macro-dialout-trunk,s-BUSY,1)**
** – Executing [s-BUSY@macro-dialout-trunk:1] NoOp(“SIP/4080-00000002”, “Dial failed due to trunk reporting BUSY - giving up”) in new stack**
** – Executing [s-BUSY@macro-dialout-trunk:2] PlayTones(“SIP/4080-00000002”, “busy”) in new stack**
** – Executing [s-BUSY@macro-dialout-trunk:3] Busy(“SIP/4080-00000002”, “20”) in new stack**
** == Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on ‘SIP/4080-00000002’ in macro ‘dialout-trunk’**
** == Spawn extension (restrictedroute-c4ca4238a0b923820dcc509a6f75849b, 10086, 6) exited non-zero on ‘SIP/4080-00000002’**
** – Executing [h@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:1] Hangup(“SIP/4080-00000002”, “”) in new stack**
** == Spawn extension (restrictedroute-c4ca4238a0b923820dcc509a6f75849b, h, 1) exited non-zero on ‘SIP/4080-00000002’**
** – SIP/4080-00000002 Internal Gosub(crm-hangup,s,1) start**
** – Executing [s@crm-hangup:1] NoOp(“SIP/4080-00000002”, “Sending Hangup to CRM”) in new stack**
** – Executing [s@crm-hangup:2] NoOp(“SIP/4080-00000002”, “HANGUP CAUSE: 17”) in new stack**
** – Executing [s@crm-hangup:3] ExecIf(“SIP/4080-00000002”, “0?Set(__CRM_VOICEMAIL=)”) in new stack**
** – Executing [s@crm-hangup:4] NoOp(“SIP/4080-00000002”, “MASTER CHANNEL: 1526440701.2 = 1526440701.2”) in new stack**
** – Executing [s@crm-hangup:5] GotoIf(“SIP/4080-00000002”, “0?return”) in new stack**
** – Executing [s@crm-hangup:6] Set(“SIP/4080-00000002”, “__CRM_HANGUP=1”) in new stack**
** – Executing [s@crm-hangup:7] AGI(“SIP/4080-00000002”, “sangomacrm.agi”) in new stack**
** – Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi**
sangomacrm.agi: LINKEDID: 1526440701.2
sangomacrm.agi: SOURCE: 4080
sangomacrm.agi: DESTINATION: 10086
sangomacrm.agi: DIRECTION: OUTBOUND
sangomacrm.agi: EXTTOCALL: **
sangomacrm.agi: START
sangomacrm.agi: SCRIPT: php /var/www/html/admin/modules/sangomacrm/importOne.php ‘eyJ1dWlkIjoiMTUyNjQ0MDcwMS4yIiwic291cmNlIjoiNDA4MCIsImRlc3RpbmF0aW9uIjoiMTAwODYiLCJkaXJlY3Rpb24iOiJPVVRCT1VORCIsInR5cGUiOiJFTkQiLCJ6dWx1X3R5cGUiOiIiLCJleHR0b2NhbGwiOiIiLCJjbnVtIjoiNDA4MCIsImNuYW0iOiI0MDgwIiwiY2FsbHBvcCI6ZmFsc2UsInZvaWNlbWFpbCI6IiJ9’ > /dev/null 2>&1 &
** – <SIP/4080-00000002>AGI Script sangomacrm.agi completed, returning 0
** – Executing [s@crm-hangup:8] Return(“SIP/4080-00000002”, “”) in new stack**
** == Spawn extension (restrictedroute-c4ca4238a0b923820dcc509a6f75849b, h, 1) exited non-zero on ‘SIP/4080-00000002’**
** – SIP/4080-00000002 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=**
===========================================================================
The follow image is trunk configure:
I hope someone can help me solve this problem.
Thanks