Callcentric outgoing caller ID no longer working

My FreePBX server is no longer sending the correct outgoing caller ID.

The installation worked flawlessly until a recent update.

Edited the /etc/sip_general_custom.conf file with

sendrpid = yes
trustrpid = no

I have outgoing routes that define different caller IDs depending on the route.
I connect to Callcentric with a single trunk.

I’m confused as it worked previously without a hitch.
DEBUG say it’s still passing the wrong callerID but nothing I change in extensions, trunks or outgoing routes seems to change it from the default caller ID.

Freepbx version 12.0.76.2
Asterisk Version 11.20.0

Hi,

Can you send the log with verosity (core set verbose 4) ?

Thank you,

Daniel Friedman
Trixton LTD.

-- Executing [[email protected]:1] Dial("SIP/101-0000000a", "SIP/906") in new stack

[2015-11-17 11:08:49] WARNING[20318][C-00000019]: chan_sip.c:6016 create_addr: Purely numeric hostname (906), and not a peer–rejecting!
[2015-11-17 11:08:49] WARNING[20318][C-00000019]: app_dial.c:2437 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:2] Set(“SIP/101-0000000a”, “ROUTEUSER=”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/101-0000000a”, “1?notblind”) in new stack
– Goto (from-internal,8155083124,6)
– Executing [[email protected]:6] GotoIf(“SIP/101-0000000a”, “0?,8155083124,2:outbound-allroutes,8155083124,2”) in new stack
– Goto (outbound-allroutes,8155083124,2)

Just noticed the WARNING on the second line as I call. It appears to be using a default route instead of the selected route. Could that be my issue?
I’m dialing an external number from my default extension. Where is the SIP/906 coming from? It’s a ring group that that extension is not in.

Hi,

I do not know what is this SIP/906, but you did not attached the whole log.
Please paste the whole log from dialling until the trunk dialling.

Thank you,

Daniel Friedman
Trixton LTD.

Number 8155083124 dialed from extension 101
outgoing route for that extension has caller ID forced to 18183015045 (registered with callcentric)
call completes but default caller ID 5132570597 shows up on the receiving phone
SIP/906 is a ringgroup with 231 as it’s only extension

-- Executing [[email protected]:1] Dial("SIP/101-0000000c", "SIP/906") in new stack

[2015-11-17 11:16:38] WARNING[26179][C-0000001d]: chan_sip.c:6016 create_addr: Purely numeric hostname (906), and not a peer–rejecting!
[2015-11-17 11:16:38] WARNING[26179][C-0000001d]: app_dial.c:2437 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:2] Set(“SIP/101-0000000c”, “ROUTEUSER=”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/101-0000000c”, “1?notblind”) in new stack
– Goto (from-internal,8155083124,6)
– Executing [[email protected]:6] GotoIf(“SIP/101-0000000c”, “0?,8155083124,2:outbound-allroutes,8155083124,2”) in new stack
– Goto (outbound-allroutes,8155083124,2)
– Executing [[email protected]:2] Gosub(“SIP/101-0000000c”, “sub-record-check,s,1(out,8155083124,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/101-0000000c”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/101-0000000c”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/101-0000000c”, “NOW=1447776998”) in new stack
– Executing [[email protected]:4] Set(“SIP/101-0000000c”, “__DAY=17”) in new stack
– Executing [[email protected]:5] Set(“SIP/101-0000000c”, “__MONTH=11”) in new stack
– Executing [[email protected]:6] Set(“SIP/101-0000000c”, “__YEAR=2015”) in new stack
– Executing [[email protected]heck:7] Set(“SIP/101-0000000c”, “__TIMESTR=20151117-111638”) in new stack
– Executing [[email protected]:8] Set(“SIP/101-0000000c”, “__FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:9] Set(“SIP/101-0000000c”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/101-0000000c”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/101-0000000c”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/101-0000000c”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/101-0000000c”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/101-0000000c”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/101-0000000c”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“SIP/101-0000000c”, “Outbound Recording Check from unknown to 8155083124”) in new stack
– Executing [[email protected]:2] Set(“SIP/101-0000000c”, “RECMODE=”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/101-0000000c”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“SIP/101-0000000c”, “recordcheck,1(dontcare,out,8155083124)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/101-0000000c”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“SIP/101-0000000c”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“SIP/101-0000000c”, “”) in new stack
– Executing [[email protected]:8] Return(“SIP/101-0000000c”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/101-0000000c”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/101-0000000c”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/101-0000000c”, “1?Set(TRUNKCIDOVERRIDE=15132570597)”) in new stack
– Executing [[email protected]:6] Set(“SIP/101-0000000c”, “_NODEST=”) in new stack
– Executing [[email protected]:7] Macro(“SIP/101-0000000c”, “dialout-trunk,2,18155083124,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/101-0000000c”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/101-0000000c”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/101-0000000c”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/101-0000000c”, “DIAL_NUMBER=18155083124”) in new stack
– Executing [[email protected]:5] Set(“SIP/101-0000000c”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:6] Set(“SIP/101-0000000c”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/101-0000000c”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/101-0000000c”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/101-0000000c”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/101-0000000c”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [[email protected]:11] Macro(“SIP/101-0000000c”, “outbound-callerid,2”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/101-0000000c”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/101-0000000c”, “1?Set(REALCALLERIDNUM=101)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/101-0000000c”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/101-0000000c”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/101-0000000c”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/101-0000000c”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/101-0000000c”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [[email protected]:14] ExecIf(“SIP/101-0000000c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/101-0000000c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/101-0000000c”, “1?Set(CALLERID(all)=15132570597)”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/101-0000000c”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:18] Set(“SIP/101-0000000c”, “CDR(outbound_cnum)=15132570597”) in new stack
– Executing [[email protected]:19] Set(“SIP/101-0000000c”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/101-0000000c”, “1?sub-flp-2,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/101-0000000c”, “0?Return()”) in new stack
– Executing [[email protected]:2] Return(“SIP/101-0000000c”, “”) in new stack
– Executing [[email protected]:13] Set(“SIP/101-0000000c”, “OUTNUM=18155083124”) in new stack
– Executing [[email protected]:14] Set(“SIP/101-0000000c”, “custom=SIP/5132570597”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/101-0000000c”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/101-0000000c”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/101-0000000c”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/101-0000000c”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/101-0000000c”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/101-0000000c”, “0?Set(CONNECTEDLINE(num,i)=18155083124)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/101-0000000c”, “0?Set(CONNECTEDLINE(name,i)=CID:15132570597)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/101-0000000c”, “0?customtrunk”) in new stack
– Executing [[email protected]:22] Dial(“SIP/101-0000000c”, “SIP/5132570597/18155083124,300,Tt”) in new stack
== Using SIP RTP TOS bits 184

Hi,

You are ommiting a 1 from your callerid:
(Executing [[email protected]:22] Dial("SIP/101-0000000c", "SIP/5132570597/18155083124,300,Tt")

Your callerid was set to 15132570597:
Executing [[email protected]:5] ExecIf("SIP/101-0000000c", "1?Set(TRUNKCIDOVERRIDE=15132570597)") in new stack

Check your trunk and outbound routes rules.

Thank you,

Daniel Friedman
Trixton LTD.

Screen Grab of config in FreePBX

Not sure what changed, but this all use to work until some time a few weeks ago. Only real changes to the setup have been editing extension_custom.conf

Hi,

Where are the trunk and outbound routes manipulation rules? paste here the extensions_custom.conf.

Thank you,

Daniel Friedman
Trixton LTD.

Found it…

There was a random entry in my extensions_custom.conf file

[pagegroup]
exten => _X.,1,Dial(SIP/906)

the [pagegroup] header was preceeded by some garbage strings and as a result, EVERYTHING was routed to SIP/906 (my old pagegroup)

Thank you Daniel for your help…

Hi,

You’re welcome. I have just pointed to the right direction. You have solved the problem.

Thank you,

Daniel Friedman
Trixton LTD.