POTS line not display correct CID number for outbound

Hello everyone,

I have one of customers Asterisk having POTS lines as well as PRI line. when we make call it always using PRI trunk . I want to set in FreePBX so that some of extensions when they dial out should route through POTS line.
I have outbound route and Trunk separately for POTS lines but it still routing through PRI .

here is my Outbound and Trunk setup.



Thank you in Advance .

I’m confused because your subject doesn’t seem to match your body. What I think you really mean is that calls are not being routed over analogue lines, even though you intend that they should be.

Note that analogue FXO lines do not support the transmission of caller ID, only the reception.

Thanks for your reply. so here is the thing I have both Digital as well as Analog card in Asterisk system.
I have PRI lines with Digital card and POTS lines with Analog card.
when I dial out from any Extension it is going through PRI and showing up DID number associated with PRI. Instead I want for some extensions to make call from POTS lines. Is that possible?

Thank you in advance.

What are your ‘dial patterns’?
What are your users dialing?

My dial patterns is prefix 9 and NXXNXXXXXX. so to grab POTS lines someone need to dial 9 and then 10 digits number. Is that okay?

Can we presume you have standard 10/11 NANP dial pattern for directing calls through the PRI ?

Post a log of a an outbound call.

] Macro(“SIP/4100-000000b7”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] Set(“SIP/4100-000000b7”, “TOUCH_MONITOR=1639449795.359”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] Set(“SIP/4100-000000b7”, “AMPUSER=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] Set(“SIP/4100-000000b7”, “HOTDESCKCHAN=4100-000000b7”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] Set(“SIP/4100-000000b7”, “HOTDESKEXTEN=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] Set(“SIP/4100-000000b7”, “HOTDESKCALL=0”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] ExecIf(“SIP/4100-000000b7”, “0?Set(HOTDESKCALL=1)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:7] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(name)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:8] GotoIf(“SIP/4100-000000b7”, “0?report”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:9] ExecIf(“SIP/4100-000000b7”, “1?Set(REALCALLERIDNUM=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:10] Set(“SIP/4100-000000b7”, “AMPUSER=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:11] GotoIf(“SIP/4100-000000b7”, “0?limit”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:12] Set(“SIP/4100-000000b7”, “AMPUSERCIDNAME=CKMX Contest Lines”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/4100-000000b7”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:14] GotoIf(“SIP/4100-000000b7”, “0?report”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:15] Set(“SIP/4100-000000b7”, “AMPUSERCID=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:16] Set(“SIP/4100-000000b7”, “__DIAL_OPTIONS=Ttr”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:17] Set(“SIP/4100-000000b7”, “CALLERID(all)=“CKMX Contest Lines” <4100>”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:18] Set(“SIP/4100-000000b7”, “HOTDESCKCHAN=4100-000000b7”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:19] Set(“SIP/4100-000000b7”, “HOTDESKEXTEN=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:20] Set(“SIP/4100-000000b7”, “HOTDESKCALL=0”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:21] ExecIf(“SIP/4100-000000b7”, “0?Set(HOTDESKCALL=1)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:22] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(name)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:23] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(all)=”" < >)") in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:24] ExecIf(“SIP/4100-000000b7”, “0?Set(CUSDIAL=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:25] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(all)=“CKMX Contest Lines” <4100>)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:26] GotoIf(“SIP/4100-000000b7”, “0?limit”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:27] ExecIf(“SIP/4100-000000b7”, “1?Set(GROUP(concurrency_limit)=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:28] ExecIf(“SIP/4100-000000b7”, “0?Set(CHANNEL(language)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:29] NoOp(“SIP/4100-000000b7”, “Macro Depth is 1”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:30] GotoIf(“SIP/4100-000000b7”, “1?report2:macroerror”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (macro-user-callerid,s,31)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:31] GotoIf(“SIP/4100-000000b7”, “1?continue”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (macro-user-callerid,s,50)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:50] Set(“SIP/4100-000000b7”, “CALLERID(number)=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:51] Set(“SIP/4100-000000b7”, “CALLERID(name)=CKMX Contest Lines”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:52] GotoIf(“SIP/4100-000000b7”, “0?cnum”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:53] Set(“SIP/4100-000000b7”, “CDR(cnam)=CKMX Contest Lines”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:54] Set(“SIP/4100-000000b7”, “CDR(cnum)=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:55] Set(“SIP/4100-000000b7”, “CHANNEL(language)=en”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] Gosub(“SIP/4100-000000b7”, “sub-record-check,s,1(out,84032405758,dontcare)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] GotoIf(“SIP/4100-000000b7”, “0?initialized”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] Set(“SIP/4100-000000b7”, “__REC_STATUS=INITIALIZED”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] Set(“SIP/4100-000000b7”, “NOW=1639449795”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] Set(“SIP/4100-000000b7”, “__DAY=13”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] Set(“SIP/4100-000000b7”, “__MONTH=12”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] Set(“SIP/4100-000000b7”, “__YEAR=2021”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:7] Set(“SIP/4100-000000b7”, “__TIMESTR=20211213-194315”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:8] Set(“SIP/4100-000000b7”, “__FROMEXTEN=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:9] Set(“SIP/4100-000000b7”, “__MON_FMT=wav”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:10] NoOp(“SIP/4100-000000b7”, “Recordings initialized”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:11] ExecIf(“SIP/4100-000000b7”, “0?Set(ARG3=dontcare)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:12] Set(“SIP/4100-000000b7”, “REC_POLICY_MODE_SAVE=”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/4100-000000b7”, “0?Set(REC_STATUS=NO)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:14] GotoIf(“SIP/4100-000000b7”, “3?checkaction”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (sub-record-check,s,17)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:17] GotoIf(“SIP/4100-000000b7”, “1?sub-record-check,out,1”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (sub-record-check,out,1)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] NoOp(“SIP/4100-000000b7”, “Outbound Recording Check from 4100 to 84032405758”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] Set(“SIP/4100-000000b7”, “RECMODE=never”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/4100-000000b7”, “0?Goto(routewins)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] ExecIf(“SIP/4100-000000b7”, “0?Goto(routewins)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] Gosub(“SIP/4100-000000b7”, “recordcheck,1(never,out,84032405758)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] NoOp(“SIP/4100-000000b7”, “Starting recording check against never”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] Goto(“SIP/4100-000000b7”, “never”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (sub-record-check,recordcheck,14)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:14] Set(“SIP/4100-000000b7”, “__REC_POLICY_MODE=NEVER”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:15] Goto(“SIP/4100-000000b7”, “stoprec”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (sub-record-check,recordcheck,24)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:24] NoOp(“SIP/4100-000000b7”, “Stopping recording: out, 84032405758”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:25] Set(“SIP/4100-000000b7”, “__REC_STATUS=STOPPED”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:26] System(“SIP/4100-000000b7”, "/var/lib/asterisk/bin/stoprecording.php “SIP/4100-000000b7"”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:27] Return(“SIP/4100-000000b7”, “”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] Return(“SIP/4100-000000b7”, “”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/4100-000000b7”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] Set(“SIP/4100-000000b7”, “_ROUTEID=7”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] Set(“SIP/4100-000000b7”, “_ROUTENAME=Outboud_POTS”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] Set(“SIP/4100-000000b7”, “MOHCLASS=default”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:7] ExecIf(“SIP/4100-000000b7”, “0?Set(TRUNKCIDOVERRIDE=4032404100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:8] Set(“SIP/4100-000000b7”, “_CALLERIDNAMEINTERNAL=CKMX Contest Lines”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:9] Set(“SIP/4100-000000b7”, “_CALLERIDNUMINTERNAL=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:10] Set(“SIP/4100-000000b7”, “_EMAILNOTIFICATION=FALSE”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:11] Set(“SIP/4100-000000b7”, “_NODEST=”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:12] Macro(“SIP/4100-000000b7”, “dialout-trunk,3,4032405758,off”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] Set(“SIP/4100-000000b7”, “DIAL_TRUNK=3”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] ExecIf(“SIP/4100-000000b7”, “0?Set(DIAL_OPTIONS=tr)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] GosubIf(“SIP/4100-000000b7”, “0?sub-pincheck,s,1()”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(num)=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] GotoIf(“SIP/4100-000000b7”, “0?disabletrunk,1”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] Set(“SIP/4100-000000b7”, “DIAL_NUMBER=4032405758”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:7] Set(“SIP/4100-000000b7”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:8] Set(“SIP/4100-000000b7”, “OUTBOUND_GROUP=OUT_3”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:9] Set(“SIP/4100-000000b7”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:10] GotoIf(“SIP/4100-000000b7”, “0?nomax”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:11] GotoIf(“SIP/4100-000000b7”, “0?chanfull”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:12] GotoIf(“SIP/4100-000000b7”, “0?skipoutcid”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:13] Macro(“SIP/4100-000000b7”, “outbound-callerid,3”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] NoOp(“SIP/4100-000000b7”, “4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] NoOp(“SIP/4100-000000b7”, “”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] NoOp(“SIP/4100-000000b7”, “off”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] Set(“SIP/4100-000000b7”, “HOTDESCKCHAN=4100-000000b7”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:7] Set(“SIP/4100-000000b7”, “HOTDESKEXTEN=4100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:8] Set(“SIP/4100-000000b7”, “HOTDESKCALL=0”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:9] ExecIf(“SIP/4100-000000b7”, “0?Set(HOTDESKCALL=1)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:10] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(name)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:11] Set(“SIP/4100-000000b7”, “ALLOWTHISROUTE=NO”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:12] ExecIf(“SIP/4100-000000b7”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/4100-000000b7”, “0?Hangup()”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:14] ExecIf(“SIP/4100-000000b7”, “0?Set(REALCALLERIDNUM=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:15] ExecIf(“SIP/4100-000000b7”, “0?Set(AMPUSER=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:16] GotoIf(“SIP/4100-000000b7”, “1?normcid”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (macro-outbound-callerid,s,20)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:20] Set(“SIP/4100-000000b7”, “USEROUTCID=4032404100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:21] Set(“SIP/4100-000000b7”, “EMERGENCYCID=”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:22] ExecIf(“SIP/4100-000000b7”, “0?Set(EMERGENCYCID=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:23] Set(“SIP/4100-000000b7”, “TRUNKOUTCID=4032404100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:24] GotoIf(“SIP/4100-000000b7”, “1?trunkcid”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx_builtins.c: Goto (macro-outbound-callerid,s,30)
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:30] ExecIf(“SIP/4100-000000b7”, “1?Set(CALLERID(all)=4032404100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:31] ExecIf(“SIP/4100-000000b7”, “1?Set(CALLERID(all)=4032404100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:32] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(all)=)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:33] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(all)=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:34] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERID(all)=4100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:35] Set(“SIP/4100-000000b7”, “TIOHIDE=no”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:36] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:37] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:38] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:39] ExecIf(“SIP/4100-000000b7”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:40] Set(“SIP/4100-000000b7”, “CDR(outbound_cnum)=4032404100”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:41] Set(“SIP/4100-000000b7”, “CDR(outbound_cnam)=”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:14] GosubIf(“SIP/4100-000000b7”, “1?sub-flp-3,s,1()”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] ExecIf(“SIP/4100-000000b7”, “0?Set(TARGET_FLP_3=032405758)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] GotoIf(“SIP/4100-000000b7”, “0?match”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/4100-000000b7”, “0?Set(TARGET_FLP_3=032405758)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] GotoIf(“SIP/4100-000000b7”, “0?match”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] Return(“SIP/4100-000000b7”, “”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:15] Set(“SIP/4100-000000b7”, “OUTNUM=4032405758”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:16] Set(“SIP/4100-000000b7”, “custom=DAHDI/g0”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:17] ExecIf(“SIP/4100-000000b7”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:18] ExecIf(“SIP/4100-000000b7”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:19] Macro(“SIP/4100-000000b7”, “dialout-trunk-predial-hook,”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] MacroExit(“SIP/4100-000000b7”, “”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:20] GotoIf(“SIP/4100-000000b7”, “0?bypass,1”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:21] ExecIf(“SIP/4100-000000b7”, “1?Set(CONNECTEDLINE(num,i)=4032405758)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:22] ExecIf(“SIP/4100-000000b7”, “1?Set(CONNECTEDLINE(name,i)=CID:4032404100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:23] ExecIf(“SIP/4100-000000b7”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)4032404100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:24] GotoIf(“SIP/4100-000000b7”, “0?customtrunk”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:25] ExecIf(“SIP/4100-000000b7”, “0?Set(DIAL_TRUNK_OPTIONS=t)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:26] Set(“SIP/4100-000000b7”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:27] Dial(“SIP/4100-000000b7”, “DAHDI/g0/4032405758,300,Ttb(func-apply-sipheaders^s^1,(3))U(sub-send-obroute-email^4032405758^84032405758^3^1639449795^^4032404100)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] app_stack.c: DAHDI/i1/4032405758-2f Internal Gosub(func-apply-sipheaders,s,1(3)) start
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:1] NoOp(“DAHDI/i1/4032405758-2f”, “Applying SIP Headers to channel DAHDI/i1/4032405758-2f”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:2] Set(“DAHDI/i1/4032405758-2f”, “TECH=DAHDI”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:3] Set(“DAHDI/i1/4032405758-2f”, “SIPHEADERKEYS=Alert-Info”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] While(“DAHDI/i1/4032405758-2f”, “1”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:5] Set(“DAHDI/i1/4032405758-2f”, “sipheader=unset”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:6] ExecIf(“DAHDI/i1/4032405758-2f”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:7] ExecIf(“DAHDI/i1/4032405758-2f”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:8] ExecIf(“DAHDI/i1/4032405758-2f”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:9] ExecIf(“DAHDI/i1/4032405758-2f”, “0?SIPAddHeader(Alert-Info:unset)”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:10] EndWhile(“DAHDI/i1/4032405758-2f”, “”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:4] While(“DAHDI/i1/4032405758-2f”, “0”) in new stack
[2021-12-13 19:43:15] VERBOSE[4878][C-000000b8] pbx.c: Executing [[email protected]:11] Return(“DAHDI/i1/4032405758-2f”, “”) in new stack

I have Digital and Analog card both on Group 0(g0) . is that reason outbound calls use PRI g0 and dial out with PRI’s CID?

Separate trunks should be in separate groups or how will the server know how to separately route them ?

[email protected] is neither centrex nor NANPA recognizable

okay so i’ll try putting both on separate trunk.
Thanks you dicko.

They are separate trunks intrinsically, use separate groups to identify them. If there are more than one ‘line’ in the analog trunk and it has ‘hunting’, use G not g in the dial plan to reduce ‘glare’

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