Asterisk 1.4.21.2 / FreePBX 2.7
I’m having a problem with one of my servers where it isn’t setting CallerID on outbound calls - which causes the ITSP to use the default set for the account.
I’m not running into this anywhere else.
Here’s debug output for a follow-me call, though the problem is happening on any outbound call, not just follow-me:
Setup is:
Calling Party --------------> PiaF ------------------> Cellphone
CID: 1111111111… DID: 2222222222… Followme: 3333333333
CallerID seen at 3333333333 should be 1111111111, but instead is showing up as 2222222222
Asterisk log on the outbound follow-me call to 3333333333:
-- Executing [[email protected]:12] Macro("Local/[email protected],2", "outbound-callerid|4") in new stack
-- Executing [[email protected]:1] ExecIf("Local/[email protected],2", "1|SetCallerPres|allowed_not_screened") in new stack
-- Executing [[email protected]:2] ExecIf("Local/[email protected],2", "1|Set|REALCALLERIDNUM=1111111111") in new stack
-- Executing [[email protected]:3] GotoIf("Local/[email protected],2", "0?normcid") in new stack
-- Executing [[email protected]:4] Set("Local/[email protected],2", "USEROUTCID=1111111111") in new stack
-- Executing [[email protected]:5] GotoIf("Local/[email protected],2", "1?bypass") in new stack
-- Goto (macro-outbound-callerid,s,7)
-- Executing [[email protected]:7] Set("Local/[email protected],2", "EMERGENCYCID=") in new stack
-- Executing [[email protected]:8] Set("Local/[email protected],2", "TRUNKOUTCID="PIAF-CALLERID" <2222222222>") in new stack
-- Executing [[email protected]:9] GotoIf("Local/[email protected],2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [[email protected]:12] ExecIf("Local/[email protected],2", "1|Set|CALLERID(all)=PIAF-CALLERID <2222222222>") in new stack
-- Executing [[email protected]:13] ExecIf("Local/[email protected],2", "1|Set|CALLERID(all)=1111111111") in new stack
-- Executing [[email protected]:14] ExecIf("Local/[email protected],2", "0|Set|CALLERID(all)=") in new stack
-- Executing [[email protected]:15] ExecIf("Local/[email protected],2", "0|SetCallerPres|prohib_passed_screen") in new stack
Here’s the SIP INVITE being sent to the VSP on the follow-me call - note the From field has sip:vsp-acctname instead of sip:1111111111 - which is causing the voip provider to use the default callerID on the account (2222222222)
note: I removed <>'s around fields on the From:, To:, Contact:, and Remote-Party-ID: lines because the forum was discarding characters inside the <>s
Reliably Transmitting (NAT) to vtsp-server:5060:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.31.1.12:5060;branch=z9hG4bK2f7f92fc;rport
From: "1111111111" sip:[email protected];tag=as1a180910
To: sip:[email protected]
Contact: sip:[email protected]
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "1111111111" sip:[email protected];privacy=off;screen=no
Date: Fri, 29 Oct 2010 19:15:29 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 259
Any help in troubleshooting this great appreciated.