<div dir="ltr"><div dir="ltr">On Mon, Oct 17, 2022 at 10:02 AM Markus <<a href="mailto:universe@truemetal.org">universe@truemetal.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list,<br>
<br>
I'm using Asterisk 11.25.0 and would like to set <br>
"anonymous@anonymous.invalid" as outgoing caller ID via SIP:<br>
<br>
Set(CALLERID(num)=anonymous@anonymous.invalid)<br>
<br>
However, when I look at the outgoing packet with tcpdump I see that the <br>
@ is not being transmitted correctly:<br>
<br>
From: <sip:anonymous%40anonymous.invalid@x.x.x.x>;tag=as26264e65<br>
<br>
My question is how can I get Asterisk to send a "@" instead of "%40"?<br></blockquote><div><br></div><div>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:</div><div><br></div><div>Set(CALLERID(pres)=prohib)</div><div><br></div><div>Though I haven't tested it on chan_sip in 11.</div></div><div><br></div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALLERID">https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALLERID</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>