@-sign Gets Transmitted As %40 In Outgoing SIP Packets (CallerID)

Home » Asterisk Users » @-sign Gets Transmitted As %40 In Outgoing SIP Packets (CallerID)
Asterisk Users 2 Comments

Hi list,

I’m using Asterisk 11.25.0 and would like to set
“anonymous@anonymous.invalid” as outgoing caller ID via SIP:

Set(CALLERID(num)=anonymous@anonymous.invalid)

However, when I look at the outgoing packet with tcpdump I see that the
@ is not being transmitted correctly:

From: ;tag=as26264e65

My question is how can I get Asterisk to send a “@” instead of “%40”?

Thank you!
Markus

2 thoughts on - @-sign Gets Transmitted As %40 In Outgoing SIP Packets (CallerID)

  • The number is sent as the user portion in SIP. That can’t have the “@” in it, as that is invalid and against spec – it gets turned into “%40”. If what you ACTUALLY want is the user portion to be “anonymous” and the domain portion to be “anonymous.invalid” then you may be able to set the callerid presentation[1] to not be allowed:

    Set(CALLERID(pres)=prohib)

    Though I haven’t tested it on chan_sip in 11.

    [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALLERID