[asterisk-users] CALLERID(num) not working
Jim Dickenson
dickenson at cfmc.com
Wed Mar 3 08:22:20 CST 2010
I am having a problem setting the caller ID that shows when I make an outbound call over my PRI line. If I make a call from a SIP phone registered with the Asterisk box the PRI is connected to the correct ID shows on my cell phone. If I make a call from an IAX trunk connected asterisk box calling the same number as call one and setting the caller ID to the same number as call one the caller ID shown on my cell phone is the default caller ID for the PRI line.
The system the PRI line is connected to is running Asterisk 1.6.0.13.
Here are the two calls as shown on the CLI of the asterisk box with the PRI line. The first works and the second does not.
[2010-03-02 13:32:09.520] == Using SIP RTP TOS bits 184
[2010-03-02 13:32:09.520] == Using SIP RTP CoS mark 5
[2010-03-02 13:32:09.520] == Using SIP VRTP TOS bits 136
[2010-03-02 13:32:09.520] == Using SIP VRTP CoS mark 6
[2010-03-02 13:32:09.617] -- Executing [91111111111 at context:1] Set("SIP/username-114ffe50", "MyChan=SIP") in new stack
[2010-03-02 13:32:09.617] -- Executing [91111111111 at context:2] GotoIf("SIP/username-114ffe50", "0?ISLOCAL") in new stack
[2010-03-02 13:32:09.618] -- Executing [91111111111 at context:3] GotoIf("SIP/username-114ffe50", "0?DODIAL") in new stack
[2010-03-02 13:32:09.618] -- Executing [91111111111 at context:4] Macro("SIP/username-114ffe50", "outgoing,""") in new stack
[2010-03-02 13:32:09.618] -- Executing [s at macro-outgoing:1] GotoIf("SIP/username-114ffe50", "1?NEEDUSER:HAVEUSER") in new stack
[2010-03-02 13:32:09.618] -- Goto (macro-outgoing,s,2)
[2010-03-02 13:32:09.618] -- Executing [s at macro-outgoing:2] Macro("SIP/username-114ffe50", "getmyUserID") in new stack
[2010-03-02 13:32:09.619] -- Executing [s at macro-getmyUserID:1] GotoIf("SIP/username-114ffe50", "1?FROMCHAN") in new stack
[2010-03-02 13:32:09.619] -- Goto (macro-getmyUserID,s,4)
[2010-03-02 13:32:09.619] -- Executing [s at macro-getmyUserID:4] Set("SIP/username-114ffe50", "MyChan=SIP/username") in new stack
[2010-03-02 13:32:09.619] -- Executing [s at macro-getmyUserID:5] Set("SIP/username-114ffe50", "__UserID=username") in new stack
[2010-03-02 13:32:09.619] -- Executing [s at macro-getmyUserID:6] GotoIf("SIP/username-114ffe50", "0?NOUSER") in new stack
[2010-03-02 13:32:09.620] -- Executing [s at macro-getmyUserID:7] Goto("SIP/username-114ffe50", "done") in new stack
[2010-03-02 13:32:09.620] -- Goto (macro-getmyUserID,s,12)
[2010-03-02 13:32:09.620] -- Executing [s at macro-getmyUserID:12] Verbose("SIP/username-114ffe50", "2,getmyUserID set ID to username") in new stack
[2010-03-02 13:32:09.620] == getmyUserID set ID to username
[2010-03-02 13:32:09.621] -- Executing [s at macro-outgoing:3] Set("SIP/username-114ffe50", "DB(users/username/LDNumber)=91111111111") in new stack
[2010-03-02 13:32:09.624] -- Executing [s at macro-outgoing:4] Set("SIP/username-114ffe50", "DB(users/username/LDContext)=context") in new stack
[2010-03-02 13:32:09.624] -- Executing [s at macro-outgoing:5] Set("SIP/username-114ffe50", "RCStatus=0") in new stack
[2010-03-02 13:32:09.624] -- Executing [s at macro-outgoing:6] Verbose("SIP/username-114ffe50", "2,Record Call Status: 0") in new stack
[2010-03-02 13:32:09.624] == Record Call Status: 0
[2010-03-02 13:32:09.624] -- Executing [s at macro-outgoing:7] GotoIf("SIP/username-114ffe50", "0?Record:NoRecord") in new stack
[2010-03-02 13:32:09.625] -- Goto (macro-outgoing,s,12)
[2010-03-02 13:32:09.625] -- Executing [s at macro-outgoing:12] Verbose("SIP/username-114ffe50", "2,Not going to record the call") in new stack
[2010-03-02 13:32:09.625] == Not going to record the call
[2010-03-02 13:32:09.625] -- Executing [s at macro-outgoing:13] NoOp("SIP/username-114ffe50", "") in new stack
[2010-03-02 13:32:09.625] -- Executing [91111111111 at context:5] Goto("SIP/username-114ffe50", "DODIAL") in new stack
[2010-03-02 13:32:09.625] -- Goto (context,91111111111,7)
[2010-03-02 13:32:09.625] -- Executing [91111111111 at context:7] Set("SIP/username-114ffe50", "CALLERID(num)=2222222222") in new stack
[2010-03-02 13:32:09.625] -- Executing [91111111111 at context:8] Dial("SIP/username-114ffe50", "Dahdi/G1/1111111111,40,g") in new stack
[2010-03-02 13:32:09.626] -- Requested transfer capability: 0x00 - SPEECH
[2010-03-02 13:32:09.626] -- Called G1/1111111111
[2010-03-02 13:32:09.778] -- DAHDI/23-1 is proceeding passing it to SIP/username-114ffe50
[2010-03-02 13:32:12.426] -- DAHDI/23-1 is making progress passing it to SIP/username-114ffe50
[2010-03-02 13:32:20.285] -- DAHDI/23-1 answered SIP/username-114ffe50
[2010-03-02 13:32:21.976] -- Channel 0/23, span 1 got hangup request, cause 16
[2010-03-02 13:32:21.990] -- Hungup 'DAHDI/23-1'
[2010-03-02 13:32:21.991] -- Executing [91111111111 at context:9] Verbose("SIP/username-114ffe50", "2,Dahdi call just got status ANSWER") in new stack
[2010-03-02 13:32:21.991] == Dahdi call just got status ANSWER
[2010-03-02 13:32:21.991] -- Executing [91111111111 at context:10] Hangup("SIP/username-114ffe50", "") in new stack
[2010-03-02 13:32:21.991] == Spawn extension (context, 91111111111, 10) exited non-zero on 'SIP/username-114ffe50'
[2010-03-02 13:32:21.991] -- Executing [h at context:1] Verbose("SIP/username-114ffe50", "2,Hangup SIP/username-114ffe50 with cause 16") in new stack
[2010-03-02 13:32:21.991] == Hangup SIP/username-114ffe50 with cause 16
[2010-03-02 13:32:21.991] -- Executing [h at context:2] ExecIf("SIP/username-114ffe50", "0?Set(DB(conf//haveadmin)=no)") in new stack
[2010-03-02 13:31:36.130] -- Accepting AUTHENTICATED call from <from ip address>:
> requested format = gsm,
> requested prefs = (gsm),
> actual format = gsm,
> host prefs = (gsm),
> priority = mine
[2010-03-02 13:31:36.130] -- Executing [myextn:2222222222:1111111111:30 at context:1] Verbose("IAX2/trunk-12353", "2,myextn gets myextn:2222222222:1111111111:30") in new stack
[2010-03-02 13:31:36.130] == myextn gets myextn:2222222222:1111111111:30
[2010-03-02 13:31:36.130] -- Executing [myextn:2222222222:1111111111:30 at context:2] Set("IAX2/trunk-12353", "MyCallerID=2222222222") in new stack
[2010-03-02 13:31:36.130] -- Executing [myextn:2222222222:1111111111:30 at context:3] GotoIf("IAX2/trunk-12353", "0?NoCID") in new stack
[2010-03-02 13:31:36.130] -- Executing [myextn:2222222222:1111111111:30 at context:4] Set("IAX2/trunk-12353", "CALLERID(num)=2222222222") in new stack
[2010-03-02 13:31:36.130] -- Executing [myextn:2222222222:1111111111:30 at context:5] Goto("IAX2/trunk-12353", "GetNum") in new stack
[2010-03-02 13:31:36.131] -- Goto (context,myextn:2222222222:1111111111:30,7)
[2010-03-02 13:31:36.131] -- Executing [myextn:2222222222:1111111111:30 at context:7] Set("IAX2/trunk-12353", "MyNumber=1111111111") in new stack
[2010-03-02 13:31:36.131] -- Executing [myextn:2222222222:1111111111:30 at context:8] Set("IAX2/trunk-12353", "MyTime=30") in new stack
[2010-03-02 13:31:36.131] -- Executing [myextn:2222222222:1111111111:30 at context:9] Dial("IAX2/trunk-12353", "Dahdi/G1/1111111111,30,g") in new stack
[2010-03-02 13:31:36.131] -- Requested transfer capability: 0x00 - SPEECH
[2010-03-02 13:31:36.131] -- Called G1/1111111111
[2010-03-02 13:31:36.277] -- DAHDI/23-1 is proceeding passing it to IAX2/trunk-12353
[2010-03-02 13:31:39.126] -- DAHDI/23-1 is making progress passing it to IAX2/trunk-12353
[2010-03-02 13:31:45.831] -- DAHDI/23-1 answered IAX2/trunk-12353
[2010-03-02 13:31:48.777] -- Channel 0/23, span 1 got hangup request, cause 16
[2010-03-02 13:31:48.797] -- Hungup 'DAHDI/23-1'
[2010-03-02 13:31:48.797] -- Executing [myextn:2222222222:1111111111:30 at context:10] Verbose("IAX2/trunk-12353", "2,Dahdi call just got status ANSWER") in new stack
[2010-03-02 13:31:48.797] == Dahdi call just got status ANSWER
[2010-03-02 13:31:48.797] -- Executing [myextn:2222222222:1111111111:30 at context:11] Hangup("IAX2/trunk-12353", "") in new stack
[2010-03-02 13:31:48.797] == Spawn extension (context, myextn:2222222222:1111111111:30, 11) exited non-zero on 'IAX2/trunk-12353'
[2010-03-02 13:31:48.798] -- Executing [h at context:1] Verbose("IAX2/trunk-12353", "2,Hangup IAX2/trunk-12353 with cause 16") in new stack
[2010-03-02 13:31:48.798] == Hangup IAX2/trunk-12353 with cause 16
[2010-03-02 13:31:48.798] -- Executing [h at context:2] ExecIf("IAX2/trunk-12353", "0?Set(DB(conf//haveadmin)=no)") in new stack
Any ideas as to what might cause this behavior?
--
Jim Dickenson
mailto:dickenson at cfmc.com
CfMC
http://www.cfmc.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100303/0fbe75ac/attachment.htm
More information about the asterisk-users
mailing list