Re: [asterisk-users] @-sign gets transmitted as %40 in outgoing SIP packets (CallerID)

2022-10-17 Thread Markus

Am 17.10.2022 um 15:07 schrieb Joshua C. Colp:
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)


Thank you very much, that was the solution! :)


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] @-sign gets transmitted as %40 in outgoing SIP packets (CallerID)

2022-10-17 Thread Joshua C. Colp
On Mon, Oct 17, 2022 at 10:02 AM Markus  wrote:

> 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"?
>

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

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] @-sign gets transmitted as %40 in outgoing SIP packets (CallerID)

2022-10-17 Thread Markus

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




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users