Failover problem with two pjsip

Ciao a tutti,
sono nuovo della community di Freepbx.
Ho un problema su un PBX con doppia linea con numeri diversi, se la linea 1 è già occupata da un’altra chiamata io dovrei essere in grado in automatico di chiamare attraverso la linea 2, su entrambi i trunk ho barrato la voce continua su occupato ed i due endpoints mi risultano correttamente collegati.
Non so più che prove fare.

Le linee passano per un gateway yeastar, per la precisione il ta410 e prese singolarmente le due linee funzionano.
La versione di freepbx è la 14.
Grazie mille


Hello to all,
I’m new to the Freepbx community.
I have a problem on a PBX with a double line with different numbers, if the line 1 is already occupied by another call I should automatically be able to call through line 2, on both trunks I have crossed the continuous on busy voice and the two endpoints are correctly connected to me.
I no longer know what proof to do.

The lines pass through a yeastar gateway, to be precise the ta410. The two lines singly work
The version of freepbx is 14.
Thanks so much

Tell us more about your trunks - technology, type, etc.

There should be logs available from /var/log/asterisk/full that will tell you what is happening when you try to connect to the second trunk.

Hello
sorry for the delay but unfortunately I was sick and I could not do what was required.

The firmware of the freepbx is 12.7.4-1801-3.sng7
Trunks are pjsip that point to the gateway via port 5060, both have the option continue if busy and the same audio codecs; I put the same dial patterns (X.)

The two trunks are
TA410_338 and TA410_512
and the output route in sequence has:
TA410_338
TA410_512

My doubt is the optional destination on congestion for now set to normal congestion

I attach the log of when I tried to make a call with the line already engaged in a previous call.
I replaced the first number called with firstcallnumber, the second number called: secondcallnumber and the cid numbers with the same logic

[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:14] Set("PJSIP/1001-000009d2", "OUTNUM=firstnumbercall") in new stack        <- Start First call
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:15] Set("PJSIP/1001-000009d2", "custom=PJSIP") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:16] ExecIf("PJSIP/1001-000009d2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:17] ExecIf("PJSIP/1001-000009d2", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:18] Macro("PJSIP/1001-000009d2", "dialout-trunk-predial-hook,") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:1] MacroExit("PJSIP/1001-000009d2", "") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/1001-000009d2", "0?skipcrm") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:20] Set("PJSIP/1001-000009d2", "__CRM_DIRECTION=OUTBOUND") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:21] Set("PJSIP/1001-000009d2", "__CRM_DESTINATION=firstnumbercall") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:22] Set("PJSIP/1001-000009d2", "__CRM_SOURCE=1001") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:23] AGI("PJSIP/1001-000009d2", "sangomacrm.agi") in new stack
[2018-02-17 08:13:14] VERBOSE[11924][C-000003a9] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] res_agi.c: <PJSIP/1001-000009d2>AGI Script sangomacrm.agi completed, returning 0
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:24] Set("PJSIP/1001-000009d2", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:25] NoOp("PJSIP/1001-000009d2", "CRM Finished") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:26] GotoIf("PJSIP/1001-000009d2", "0?bypass,1") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:27] ExecIf("PJSIP/1001-000009d2", "1?Set(CONNECTEDLINE(num,i)=firstnumbercall)") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:28] ExecIf("PJSIP/1001-000009d2", "1?Set(CONNECTEDLINE(name,i)=CID:NUMEROCID)") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:29] ExecIf("PJSIP/1001-000009d2", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)NUMEROCID)") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:30] GotoIf("PJSIP/1001-000009d2", "0?customtrunk") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:31] Dial("PJSIP/1001-000009d2", "PJSIP/[email protected]_338,300,T") in new stack
[2018-02-17 08:13:15] VERBOSE[11924][C-000003a9] app_dial.c: Called PJSIP/[email protected]_338
[2018-02-17 08:13:18] VERBOSE[11924][C-000003a9] app_dial.c: PJSIP/TA410_338-000009d3 answered PJSIP/1001-000009d2
[2018-02-17 08:13:18] VERBOSE[11936][C-000003a9] bridge_channel.c: Channel PJSIP/TA410_338-000009d3 joined 'simple_bridge' basic-bridge <16bc4b1e-98df-41c8-b70e-532c42eaa35b>
[2018-02-17 08:13:18] VERBOSE[11924][C-000003a9] bridge_channel.c: Channel PJSIP/1001-000009d2 joined 'simple_bridge' basic-bridge <16bc4b1e-98df-41c8-b70e-532c42eaa35b>
[2018-02-17 08:13:41] VERBOSE[23798] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.1.248'
[2018-02-17 08:13:41] VERBOSE[23798] netsock2.c: Using SIP RTP Audio TOS bits 184
[2018-02-17 08:13:41] VERBOSE[23798] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
[2018-02-17 08:13:41] VERBOSE[23798] netsock2.c: Using SIP RTP Audio CoS mark 5
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] Macro("PJSIP/1111-000009d4", "user-callerid,LIMIT") in new stack    <- Start Second call
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] Set("PJSIP/1111-000009d4", "TOUCH_MONITOR=1518855221.2698") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] Set("PJSIP/1111-000009d4", "AMPUSER=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] GotoIf("PJSIP/1111-000009d4", "0?report") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/1111-000009d4", "1?Set(REALCALLERIDNUM=1111)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] Set("PJSIP/1111-000009d4", "AMPUSER=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] GotoIf("PJSIP/1111-000009d4", "0?limit") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] Set("PJSIP/1111-000009d4", "AMPUSERCIDNAME=Prova") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:8] ExecIf("PJSIP/1111-000009d4", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:9] GotoIf("PJSIP/1111-000009d4", "0?report") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:10] Set("PJSIP/1111-000009d4", "AMPUSERCID=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:11] Set("PJSIP/1111-000009d4", "__DIAL_OPTIONS=HhTtr") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:12] Set("PJSIP/1111-000009d4", "CALLERID(all)="Prova" <1111>") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:13] GotoIf("PJSIP/1111-000009d4", "0?limit") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:14] ExecIf("PJSIP/1111-000009d4", "1?Set(GROUP(concurrency_limit)=1111)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:15] ExecIf("PJSIP/1111-000009d4", "0?Set(CHANNEL(language)=)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:16] NoOp("PJSIP/1111-000009d4", "Macro Depth is 1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:17] GotoIf("PJSIP/1111-000009d4", "1?report2:macroerror") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-user-callerid,s,19)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/1111-000009d4", "1?continue") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-user-callerid,s,37)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:37] Set("PJSIP/1111-000009d4", "CALLERID(number)=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:38] Set("PJSIP/1111-000009d4", "CALLERID(name)=Prova") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:39] GotoIf("PJSIP/1111-000009d4", "0?cnum") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:40] Set("PJSIP/1111-000009d4", "CDR(cnam)=Prova") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:41] Set("PJSIP/1111-000009d4", "CDR(cnum)=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:42] Set("PJSIP/1111-000009d4", "CHANNEL(language)=it") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] Set("PJSIP/1111-000009d4", "ROUTEUSER=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] Set("PJSIP/1111-000009d4", "ROUTEUSER=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] GotoIf("PJSIP/1111-000009d4", "1?notblind") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (from-internal,secondnumbercall,7)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] GotoIf("PJSIP/1111-000009d4", "1?restrictedroute-c22c60349630d688cef20a3fd708ad87,secondnumbercall,2:outbound-allroutes,secondnumbercall,2") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (restrictedroute-c22c60349630d688cef20a3fd708ad87,secondnumbercall,2)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:2] Gosub("PJSIP/1111-000009d4", "sub-record-check,s,1(out,secondnumbercall,dontcare)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/1111-000009d4", "0?initialized") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] Set("PJSIP/1111-000009d4", "__REC_STATUS=INITIALIZED") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] Set("PJSIP/1111-000009d4", "NOW=1518855221") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] Set("PJSIP/1111-000009d4", "__DAY=17") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] Set("PJSIP/1111-000009d4", "__MONTH=02") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] Set("PJSIP/1111-000009d4", "__YEAR=2018") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] Set("PJSIP/1111-000009d4", "__TIMESTR=20180217-081341") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:8] Set("PJSIP/1111-000009d4", "__FROMEXTEN=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:9] Set("PJSIP/1111-000009d4", "__MON_FMT=wav") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:10] NoOp("PJSIP/1111-000009d4", "Recordings initialized") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:11] ExecIf("PJSIP/1111-000009d4", "0?Set(ARG3=dontcare)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:12] Set("PJSIP/1111-000009d4", "REC_POLICY_MODE_SAVE=") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/1111-000009d4", "0?Set(REC_STATUS=NO)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/1111-000009d4", "3?checkaction") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (sub-record-check,s,17)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:17] GotoIf("PJSIP/1111-000009d4", "1?sub-record-check,out,1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (sub-record-check,out,1)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "Outbound Recording Check from 1111 to secondnumbercall") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] Set("PJSIP/1111-000009d4", "RECMODE=dontcare") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/1111-000009d4", "1?Goto(routewins)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (sub-record-check,out,7)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] Gosub("PJSIP/1111-000009d4", "recordcheck,1(dontcare,out,secondnumbercall)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "Starting recording check against dontcare") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] Goto("PJSIP/1111-000009d4", "dontcare") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] Return("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:8] Return("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:3] ExecIf("PJSIP/1111-000009d4", "0 ?Set(CDR(accountcode)=)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:4] Set("PJSIP/1111-000009d4", "MOHCLASS=default") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:5] Set("PJSIP/1111-000009d4", "_NODEST=") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:6] Macro("PJSIP/1111-000009d4", "dialout-trunk,1,secondnumbercall,,on") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] Set("PJSIP/1111-000009d4", "DIAL_TRUNK=1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] GosubIf("PJSIP/1111-000009d4", "0?sub-pincheck,s,1()") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERID(num)=1111)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] GotoIf("PJSIP/1111-000009d4", "0?disabletrunk,1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] Set("PJSIP/1111-000009d4", "DIAL_NUMBER=secondnumbercall") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] Set("PJSIP/1111-000009d4", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] Set("PJSIP/1111-000009d4", "OUTBOUND_GROUP=OUT_1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:8] Set("PJSIP/1111-000009d4", "DIAL_TRUNK_OPTIONS=T") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:9] GotoIf("PJSIP/1111-000009d4", "0?nomax") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:10] GotoIf("PJSIP/1111-000009d4", "0?chanfull") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:11] GotoIf("PJSIP/1111-000009d4", "0?skipoutcid") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:12] Macro("PJSIP/1111-000009d4", "outbound-callerid,1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] NoOp("PJSIP/1111-000009d4", "off") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(name-pres)=)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(num-pres)=)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] ExecIf("PJSIP/1111-000009d4", "0?Set(REALCALLERIDNUM=1111)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] GotoIf("PJSIP/1111-000009d4", "1?normcid") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-outbound-callerid,s,11)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:11] Set("PJSIP/1111-000009d4", "USEROUTCID=") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:12] Set("PJSIP/1111-000009d4", "EMERGENCYCID=") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:13] Set("PJSIP/1111-000009d4", "TRUNKOUTCID=NUMEROCID") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/1111-000009d4", "1?trunkcid") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-outbound-callerid,s,19)
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:19] ExecIf("PJSIP/1111-000009d4", "1?Set(CALLERID(all)=NUMEROCID)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:20] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERID(all)=)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:21] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERID(all)=)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:22] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:23] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:24] Set("PJSIP/1111-000009d4", "CDR(outbound_cnum)=NUMEROCID") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:25] Set("PJSIP/1111-000009d4", "CDR(outbound_cnam)=") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:13] GosubIf("PJSIP/1111-000009d4", "1?sub-flp-1,s,1()") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] ExecIf("PJSIP/1111-000009d4", "1?Return()") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:14] Set("PJSIP/1111-000009d4", "OUTNUM=secondnumbercall") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:15] Set("PJSIP/1111-000009d4", "custom=PJSIP") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]-dialout-trunk:16] ExecIf("PJSIP/1111-000009d4", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:17] ExecIf("PJSIP/1111-000009d4", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:18] Macro("PJSIP/1111-000009d4", "dialout-trunk-predial-hook,") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] MacroExit("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/1111-000009d4", "0?skipcrm") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:20] Set("PJSIP/1111-000009d4", "__CRM_DIRECTION=OUTBOUND") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:21] Set("PJSIP/1111-000009d4", "__CRM_DESTINATION=secondnumbercall") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:22] Set("PJSIP/1111-000009d4", "__CRM_SOURCE=1111") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:23] AGI("PJSIP/1111-000009d4", "sangomacrm.agi") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] res_agi.c: <PJSIP/1111-000009d4>AGI Script sangomacrm.agi completed, returning 0
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:24] Set("PJSIP/1111-000009d4", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:25] NoOp("PJSIP/1111-000009d4", "CRM Finished") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:26] GotoIf("PJSIP/1111-000009d4", "0?bypass,1") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:27] ExecIf("PJSIP/1111-000009d4", "1?Set(CONNECTEDLINE(num,i)=secondnumbercall)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:28] ExecIf("PJSIP/1111-000009d4", "1?Set(CONNECTEDLINE(name,i)=CID:NUMEROCID)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:29] ExecIf("PJSIP/1111-000009d4", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)NUMEROCID)") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:30] GotoIf("PJSIP/1111-000009d4", "0?customtrunk") in new stack
[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:31] Dial("PJSIP/1111-000009d4", "PJSIP/[email protected]_338,300,T") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] app_dial.c: Called PJSIP/[email protected]_338
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:32] NoOp("PJSIP/1111-000009d4", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:33] GotoIf("PJSIP/1111-000009d4", "1?continue,1:s-CHANUNAVAIL,1") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] ExecIf("PJSIP/1111-000009d4", "1?Set(CALLERID(number)=1111)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:7] Macro("PJSIP/1111-000009d4", "dialout-trunk,2,secondnumbercall,,on") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] Set("PJSIP/1111-000009d4", "DIAL_TRUNK=2") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] GosubIf("PJSIP/1111-000009d4", "0?sub-pincheck,s,1()") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERID(num)=1111)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] GotoIf("PJSIP/1111-000009d4", "0?disabletrunk,1") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] Set("PJSIP/1111-000009d4", "DIAL_NUMBER=secondnumbercall") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] Set("PJSIP/1111-000009d4", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] Set("PJSIP/1111-000009d4", "OUTBOUND_GROUP=OUT_2") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:8] Set("PJSIP/1111-000009d4", "DIAL_TRUNK_OPTIONS=T") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:9] GotoIf("PJSIP/1111-000009d4", "0?nomax") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:10] GotoIf("PJSIP/1111-000009d4", "0?chanfull") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:11] GotoIf("PJSIP/1111-000009d4", "0?skipoutcid") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:12] Macro("PJSIP/1111-000009d4", "outbound-callerid,2") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "1111") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] NoOp("PJSIP/1111-000009d4", "off") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(name-pres)=)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(num-pres)=)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] ExecIf("PJSIP/1111-000009d4", "0?Set(REALCALLERIDNUM=1111)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] GotoIf("PJSIP/1111-000009d4", "1?normcid") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-outbound-callerid,s,11)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:11] Set("PJSIP/1111-000009d4", "USEROUTCID=") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:12] Set("PJSIP/1111-000009d4", "EMERGENCYCID=") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:13] Set("PJSIP/1111-000009d4", "TRUNKOUTCID=SECONDNUMBERCID") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/1111-000009d4", "1?trunkcid") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-outbound-callerid,s,19)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:19] ExecIf("PJSIP/1111-000009d4", "1?Set(CALLERID(all)=SECONDNUMBERCID)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:20] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERID(all)=)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:21] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERID(all)=)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:22] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:23] ExecIf("PJSIP/1111-000009d4", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:24] Set("PJSIP/1111-000009d4", "CDR(outbound_cnum)=SECONDNUMBERCID") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:25] Set("PJSIP/1111-000009d4", "CDR(outbound_cnam)=") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:13] GosubIf("PJSIP/1111-000009d4", "1?sub-flp-2,s,1()") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] ExecIf("PJSIP/1111-000009d4", "1?Return()") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:14] Set("PJSIP/1111-000009d4", "OUTNUM=secondnumbercall") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:15] Set("PJSIP/1111-000009d4", "custom=PJSIP") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:16] ExecIf("PJSIP/1111-000009d4", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:17] ExecIf("PJSIP/1111-000009d4", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:18] Macro("PJSIP/1111-000009d4", "dialout-trunk-predial-hook,") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] MacroExit("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/1111-000009d4", "1?skipcrm") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-dialout-trunk,s,25)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:25] NoOp("PJSIP/1111-000009d4", "CRM Finished") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:26] GotoIf("PJSIP/1111-000009d4", "0?bypass,1") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:27] ExecIf("PJSIP/1111-000009d4", "1?Set(CONNECTEDLINE(num,i)=secondnumbercall)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:28] ExecIf("PJSIP/1111-000009d4", "1?Set(CONNECTEDLINE(name,i)=CID:SECONDNUMBERCID)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:29] ExecIf("PJSIP/1111-000009d4", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)SECONDNUMBERCID)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:30] GotoIf("PJSIP/1111-000009d4", "0?customtrunk") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:31] Dial("PJSIP/1111-000009d4", "PJSIP/[email protected]_512,300,T") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] app_dial.c: Called PJSIP/[email protected]_512
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:32] NoOp("PJSIP/1111-000009d4", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:33] GotoIf("PJSIP/1111-000009d4", "1?continue,1:s-CHANUNAVAIL,1") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] ExecIf("PJSIP/1111-000009d4", "1?Set(CALLERID(number)=1111)") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]7:8] Macro("PJSIP/1111-000009d4", "outisbusy,") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] Progress("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] GotoIf("PJSIP/1111-000009d4", "0?emergency,1") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] GotoIf("PJSIP/1111-000009d4", "0?intracompany,1") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] Playback("PJSIP/1111-000009d4", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] file.c: <PJSIP/1111-000009d4> Playing 'all-circuits-busy-now.ulaw' (language 'it')
[2018-02-17 08:13:44] VERBOSE[11982][C-000003aa] file.c: <PJSIP/1111-000009d4> Playing 'please-try-call-later.ulaw' (language 'it')
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] Congestion("PJSIP/1111-000009d4", "20") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] app_macro.c: Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'PJSIP/1111-000009d4' in macro 'outisbusy'
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Spawn extension (restrictedroute-c22c60349630d688cef20a3fd708ad87, secondnumbercall, 8) exited non-zero on 'PJSIP/1111-000009d4'
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] Hangup("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Spawn extension (restrictedroute-c22c60349630d688cef20a3fd708ad87, h, 1) exited non-zero on 'PJSIP/1111-000009d4'
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] app_stack.c: PJSIP/1111-000009d4 Internal Gosub(crm-hangup,s,1) start
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1111-000009d4", "Sending Hangup to CRM") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/1111-000009d4", "HANGUP CAUSE: 34") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/1111-000009d4", "0?Set(__CRM_VOICEMAIL=)") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:4] NoOp("PJSIP/1111-000009d4", "MASTER CHANNEL: 1518855221.2698 = 1518855221.2698") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/1111-000009d4", "0?return") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:6] Set("PJSIP/1111-000009d4", "__CRM_HANGUP=1") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:7] AGI("PJSIP/1111-000009d4", "sangomacrm.agi") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] res_agi.c: <PJSIP/1111-000009d4>AGI Script sangomacrm.agi completed, returning 0
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:8] Return("PJSIP/1111-000009d4", "") in new stack
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] app_stack.c: Spawn extension (restrictedroute-c22c60349630d688cef20a3fd708ad87, h, 1) exited non-zero on 'PJSIP/1111-000009d4'
[2018-02-17 08:13:47] VERBOSE[11982][C-000003aa] app_stack.c: PJSIP/1111-000009d4 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] bridge_channel.c: Channel PJSIP/1001-000009d2 left 'simple_bridge' basic-bridge <16bc4b1e-98df-41c8-b70e-532c42eaa35b>
[2018-02-17 08:13:51] VERBOSE[11936][C-000003a9] bridge_channel.c: Channel PJSIP/TA410_338-000009d3 left 'simple_bridge' basic-bridge <16bc4b1e-98df-41c8-b70e-532c42eaa35b>
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] app_macro.c: Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on 'PJSIP/1001-000009d2' in macro 'dialout-trunk'
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Spawn extension (restrictedroute-c22c60349630d688cef20a3fd708ad87, firstnumbercall, 6) exited non-zero on 'PJSIP/1001-000009d2'
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:1] Hangup("PJSIP/1001-000009d2", "") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Spawn extension (restrictedroute-c22c60349630d688cef20a3fd708ad87, h, 1) exited non-zero on 'PJSIP/1001-000009d2'
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] app_stack.c: PJSIP/1001-000009d2 Internal Gosub(crm-hangup,s,1) start
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/1001-000009d2", "Sending Hangup to CRM") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/1001-000009d2", "HANGUP CAUSE: 16") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/1001-000009d2", "0?Set(__CRM_VOICEMAIL=)") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:4] NoOp("PJSIP/1001-000009d2", "MASTER CHANNEL: 1518855194.2696 = 1518855194.2696") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/1001-000009d2", "0?return") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:6] Set("PJSIP/1001-000009d2", "__CRM_HANGUP=1") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:7] AGI("PJSIP/1001-000009d2", "sangomacrm.agi") in new stack
[2018-02-17 08:13:51] VERBOSE[11924][C-000003a9] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2018-02-17 08:13:52] VERBOSE[11924][C-000003a9] res_agi.c: <PJSIP/1001-000009d2>AGI Script sangomacrm.agi completed, returning 0
[2018-02-17 08:13:52] VERBOSE[11924][C-000003a9] pbx.c: Executing [[email protected]:8] Return("PJSIP/1001-000009d2", "") in new stack
[2018-02-17 08:13:52] VERBOSE[11924][C-000003a9] app_stack.c: Spawn extension (restrictedroute-c22c60349630d688cef20a3fd708ad87, h, 1) exited non-zero on 'PJSIP/1001-000009d2'
[2018-02-17 08:13:52] VERBOSE[11924][C-000003a9] app_stack.c: PJSIP/1001-000009d2 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

I had to split the log in two posts, sorry for the length!

I’m not familiar with that particular gateway, but from looking at the logs, both calls are trying to go out through the same trunk, 338.

In any case, I think that your confusion comes from the fact that you should configure the gateway as one unique trunk and let the gateway decide which specific line to use, almost all gateways can do that.

Take a look at the gateway’s manual and search for Port group, create one group with all the ports in it, select round-robin mode and on the IP-to-Port route specify the group ID instead of a specific port, that way the gateway will decide which port to use for outbound calls.

1 Like

on the trunk I set the output through the ta410_338 and in failover on the trunk ta410_512, the second call should first try the ta_338 if it is free dial the number otherwise go to ta410_512 and dial the number.

initially he composes

[2018-02-17 08:13:41] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:31] Dial("PJSIP/1111-000009d4", "PJSIP/[email protected]_338,300,T") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] app_dial.c: Called PJSIP/[email protected]_338

and at the end, finding the ta410_338 occupied:

[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] pbx.c: Executing [[email protected]:31] Dial("PJSIP/1111-000009d4", "PJSIP/[email protected]_512,300,T") in new stack
[2018-02-17 08:13:42] VERBOSE[11982][C-000003aa] app_dial.c: Called PJSIP/[email protected]_512

but at the call comes the announcement that all the circuits are busy.

Thanks for the tip, tomorrow I try to look at the manual of the gateway! It has the ability to make port groups, maybe I try to make a port group

in the gateway I created two different trunks to manage the two numbers, always called, for my convenience, ta410_338 and ta410_512 with the end of the phone number and created ip_to_port so that the ta410_338 of the freepbx goes into the ta410_338 of the gateway and the ta410_512 goes in his ta410_512

I tried to do as recommended, it seems that everything works properly! The gateway sends calls to the free port it finds! thank you so much!
The topic, for me, can be closed

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