[asterisk-users] Issue with Calling Name ID in SIP: Asterisk sets
Caller ID Number as Name if NO Name
Jean-Marc Salsa
jsalsa at gmail.com
Thu Mar 1 04:19:49 MST 2007
Hi,
fyi, I use Asterisk 1.2.9.1
In some scenarios, we receive call from PSTN without Callerd ID Name (which
is normal).
I would like to transfer this call to another softswitch. Again, I would
like to let this this CallerID Name Empty.
If I look at the logs, I can see
-- Executing Macro("SIP/localdomain.com-b79242f0", "set-callerid-name")
in new stack
-- Executing Set("SIP/localdomain.com-b79242f0", "CALLERNAME_TMP=") in
new stack
-- Executing GotoIf("SIP/localdomain.com-b79242f0", "1?format_empty|1")
in new stack
-- Goto (macro-set-callerid-name,format_empty,1)
-- Executing Set("SIP/localdomain.com-b79242f0", "CALLERNAME=") in new
stack
-- Executing Goto("SIP/localdomain.com-b79242f0", "set_callername|1") in
new stack
-- Goto (macro-set-callerid-name,set_callername,1)
-- Executing Set("SIP/localdomain.com-b79242f0", "CALLERID(name)=") in
new stack
So, it should be alright!
Then I forward the call:
-- Executing Dial("SIP/localdomain.com-b79242f0", "
SIP/990003726831598@<next-hop>|30") in new stack
And if I look into SIP debug mode:
Adding codec 0x8 (alaw) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
14 headers, 11 lines
Reliably Transmitting (no NAT) to XXX:5060:
INVITE sip:990003726831598 at XXX SIP/2.0
Via: SIP/2.0/UDPXXX:5060;branch=z9hG4bK6dfcce4c;rport
From: *"0037253415630"* <sip:0037253415630 at gsmduo.net>;tag=as4479803d
To: <sip:990003726831598 at XXX>
Contact: <sip:0037253415630 at XXX>
Call-ID: 71818cb7008312316bf367593767c3cc at gsmduo.net
CSeq: 102 INVITE
User-Agent: GSMDuo-VM
Max-Forwards: 70
Date: Thu, 01 Mar 2007 11:05:04 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
P-Asserted-Identity: <sip:0037253415630 at XXX>
Content-Type: application/sdp
Content-Length: 236
As you can see, name is set ! eventhough callerid(name)= ....
Is it a bug ?
How can I really clear this callerid(name) ?
How to prevent Asterisk to put back as Name, the number ?
Thanks for your kind return !
Regards,
Jean -Marc
-- Called 990003726831598 at cirpack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070301/e37256da/attachment.htm
More information about the asterisk-users
mailing list