[solved] Extension Outbound CID not working - Bug 10424

Hi @all

I’m working with the latest FPBX13-beta and I’m facing a problem concerning the outbound CID.
In brief: The extension CID is either not set or is overwritten by the outCID of the route.
The trace of a sample call is attached. I’m not sure where the mistake is - either in the beta or with my configuration…

Best wishes

Bastolino

PS: OutboundCID is okay after routing, so I don’t think it’s a trunk problem
PPS: Trace of a sample call; Numbers and stuff changed to some numbers.

-- Executing [001234567890@from-internal:1] Macro("PJSIP/222-00000044", "user-callerid,LIMIT") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/222-00000044", "TOUCH_MONITOR=1443957362.161") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/222-00000044", "AMPUSER=222") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("PJSIP/222-00000044", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("PJSIP/222-00000044", "1?Set(REALCALLERIDNUM=222)") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/222-00000044", "AMPUSER=222") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("PJSIP/222-00000044", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("PJSIP/222-00000044", "AMPUSERCIDNAME=Zentrale / RZ") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/222-00000044", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("PJSIP/222-00000044", "AMPUSERCID=222") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/222-00000044", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("PJSIP/222-00000044", "CALLERID(all)="Zentrale / RZ" <222>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("PJSIP/222-00000044", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/222-00000044", "1?Set(GROUP(concurrency_limit)=222)") in new stack
-- Executing [s@macro-user-callerid:14] GosubIf("PJSIP/222-00000044", "7?sub-ccss,s,1(from-internal,)") in new stack
-- Executing [s@sub-ccss:1] ExecIf("PJSIP/222-00000044", "0?Return()") in new stack
-- Executing [s@sub-ccss:2] Set("PJSIP/222-00000044", "CCSS_SETUP=TRUE") in new stack
-- Executing [s@sub-ccss:3] GosubIf("PJSIP/222-00000044", "0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)") in new stack
-- Executing [monitor_default@sub-ccss:1] GotoIf("PJSIP/222-00000044", "0?is_exten") in new stack
-- Executing [monitor_default@sub-ccss:2] StackPop("PJSIP/222-00000044", "") in new stack
-- Executing [monitor_default@sub-ccss:3] Return("PJSIP/222-00000044", "FALSE") in new stack
-- Executing [s@macro-user-callerid:15] ExecIf("PJSIP/222-00000044", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/222-00000044", "1?continue") in new stack
-- Goto (macro-user-callerid,s,30)
-- Executing [s@macro-user-callerid:30] Set("PJSIP/222-00000044", "CALLERID(number)=222") in new stack
-- Executing [s@macro-user-callerid:31] Set("PJSIP/222-00000044", "CALLERID(name)=Zentrale / RZ") in new stack
-- Executing [s@macro-user-callerid:32] Set("PJSIP/222-00000044", "CDR(cnum)=222") in new stack
-- Executing [s@macro-user-callerid:33] Set("PJSIP/222-00000044", "CDR(cnam)=Zentrale / RZ") in new stack
-- Executing [s@macro-user-callerid:34] Set("PJSIP/222-00000044", "CHANNEL(language)=de") in new stack
-- Executing [s@macro-user-callerid:35] GosubIf("PJSIP/222-00000044", "0?app-check-classofservce,s,1()") in new stack
-- Executing [001234567890@from-internal:2] Set("PJSIP/222-00000044", "ROUTEUSER=222") in new stack
-- Executing [001234567890@from-internal:3] GotoIf("PJSIP/222-00000044", "1?notblind") in new stack
-- Goto (from-internal,001234567890,6)
-- Executing [001234567890@from-internal:6] GotoIf("PJSIP/222-00000044", "1?restrictedroute-4001e76e5949268aa984e328877cbffd,001234567890,2:outbound-allroutes,001234567890,2") in new stack
-- Goto (restrictedroute-4001e76e5949268aa984e328877cbffd,001234567890,2)
-- Executing [001234567890@restrictedroute-4001e76e5949268aa984e328877cbffd:2] Gosub("PJSIP/222-00000044", "sub-record-check,s,1(out,001234567890,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/222-00000044", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/222-00000044", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/222-00000044", "NOW=1443957362") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/222-00000044", "__DAY=04") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/222-00000044", "__MONTH=10") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/222-00000044", "__YEAR=2015") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/222-00000044", "__TIMESTR=20151004-131602") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/222-00000044", "__FROMEXTEN=222") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/222-00000044", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/222-00000044", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/222-00000044", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/222-00000044", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/222-00000044", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/222-00000044", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/222-00000044", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("PJSIP/222-00000044", "Outbound Recording Check from 222 to 001234567890") in new stack
-- Executing [out@sub-record-check:2] Set("PJSIP/222-00000044", "RECMODE=dontcare") in new stack
-- Executing [out@sub-record-check:3] ExecIf("PJSIP/222-00000044", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("PJSIP/222-00000044", "recordcheck,1(dontcare,out,001234567890)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/222-00000044", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/222-00000044", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("PJSIP/222-00000044", "") in new stack
-- Executing [out@sub-record-check:8] Return("PJSIP/222-00000044", "") in new stack
-- Executing [001234567890@restrictedroute-4001e76e5949268aa984e328877cbffd:3] ExecIf("PJSIP/222-00000044", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [001234567890@restrictedroute-4001e76e5949268aa984e328877cbffd:4] Set("PJSIP/222-00000044", "MOHCLASS=default") in new stack
-- Executing [001234567890@restrictedroute-4001e76e5949268aa984e328877cbffd:5] ExecIf("PJSIP/222-00000044", "1?Set(TRUNKCIDOVERRIDE="Hotel XYZ" <65320>)") in new stack
-- Executing [001234567890@restrictedroute-4001e76e5949268aa984e328877cbffd:6] Set("PJSIP/222-00000044", "_NODEST=") in new stack
-- Executing [001234567890@restrictedroute-4001e76e5949268aa984e328877cbffd:7] Macro("PJSIP/222-00000044", "dialout-trunk,1,01234567890,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("PJSIP/222-00000044", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("PJSIP/222-00000044", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("PJSIP/222-00000044", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("PJSIP/222-00000044", "DIAL_NUMBER=01234567890") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("PJSIP/222-00000044", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("PJSIP/222-00000044", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("PJSIP/222-00000044", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("PJSIP/222-00000044", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("PJSIP/222-00000044", "DIAL_TRUNK_OPTIONS=Tt") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("PJSIP/222-00000044", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("PJSIP/222-00000044", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("PJSIP/222-00000044", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:3] ExecIf("PJSIP/222-00000044", "0?Set(REALCALLERIDNUM=222)") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("PJSIP/222-00000044", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,7)
-- Executing [s@macro-outbound-callerid:7] Set("PJSIP/222-00000044", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("PJSIP/222-00000044", "EMERGENCYCID=Zentrale / RZ") in new stack
-- Executing [s@macro-outbound-callerid:9] Set("PJSIP/222-00000044", "TRUNKOUTCID="Hotel XYZ" <65320>") in new stack
-- Executing [s@macro-outbound-callerid:10] GotoIf("PJSIP/222-00000044", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,15)
-- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/222-00000044", "1?Set(CALLERID(all)="Hotel XYZ" <65320>)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("PJSIP/222-00000044", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("PJSIP/222-00000044", "1?Set(CALLERID(all)=Hotel XYZ <65320>)") in new stack
-- Executing [s@macro-outbound-callerid:18] ExecIf("PJSIP/222-00000044", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:19] ExecIf("PJSIP/222-00000044", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:20] Set("PJSIP/222-00000044", "CALLERID(name)=") in new stack
-- Executing [s@macro-outbound-callerid:21] Set("PJSIP/222-00000044", "CDR(outbound_cnum)=65320") in new stack
-- Executing [s@macro-outbound-callerid:22] Set("PJSIP/222-00000044", "CDR(outbound_cnam)=") in new stack

[2015-10-04 13:16:02] WARNING[1847]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)
– Executing [s@macro-dialout-trunk:12] GosubIf(“PJSIP/222-00000044”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“PJSIP/222-00000044”, “OUTNUM=01234567890”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“PJSIP/222-00000044”, “custom=SIP/bs01bri01”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“PJSIP/222-00000044”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“PJSIP/222-00000044”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“PJSIP/222-00000044”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“PJSIP/222-00000044”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“PJSIP/222-00000044”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“PJSIP/222-00000044”, “1?Set(CONNECTEDLINE(num,i)=01234567890)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“PJSIP/222-00000044”, “1?Set(CONNECTEDLINE(name,i)=CID:65320)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“PJSIP/222-00000044”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)65320)”) in new stack
– Executing [s@macro-dialout-trunk:22] GotoIf(“PJSIP/222-00000044”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:23] Dial(“PJSIP/222-00000044”, “SIP/bs01bri01/01234567890,300,Tt”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/bs01bri01/01234567890
– SIP/bs01bri01-0000002d is making progress passing it to PJSIP/222-00000044
> 0x7fe154abe250 – Probation passed - setting RTP source address to 10.1.1.3:50042
[2015-10-04 13:16:02] WARNING[19936][C-00000045]: translate.c:392 framein: no samples for g722tolin
> 0x7fe1553c1070 – Probation passed - setting RTP source address to 10.2.0.2:6008
– SIP/bs01bri01-0000002d is ringing
== Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on ‘PJSIP/222-00000044’ in macro ‘dialout-trunk’
== Spawn extension (restrictedroute-4001e76e5949268aa984e328877cbffd, 001234567890, 7) exited non-zero on ‘PJSIP/222-00000044’
– Executing [h@restrictedroute-4001e76e5949268aa984e328877cbffd:1] Hangup(“PJSIP/222-00000044”, “”) in new stack
== Spawn extension (restrictedroute-4001e76e5949268aa984e328877cbffd, h, 1) exited non-zero on ‘PJSIP/222-00000044’

There is an open bug here:
http://issues.freepbx.org/browse/FREEPBX-10424

Can you confirm it’s the same bug?

Thanks for that quick reply!
Yes, after a bit of testing: It’s the same issue, behaves exactly as described.
After the changes the right CID is presented to trunk.

1 Like

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