[asterisk-bugs] [JIRA] (ASTERISK-29644) pgsjip: Can't register to sip if username has "@" in string

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Tue Sep 14 04:41:34 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256290#comment-256290 ] 

Joshua C. Colp commented on ASTERISK-29644:
-------------------------------------------

It appears the bug you have submitted is against a rather old version of a supported branch of Asterisk. There have been many issues fixed between the version you are using and the current version of your branch. Please test with the latest version in your Asterisk branch and report whether the issue persists.

Please see the Asterisk Versions [1] wiki page for info on which versions of Asterisk are supported.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions



> pgsjip: Can't register to sip if username has "@" in string
> -----------------------------------------------------------
>
>                 Key: ASTERISK-29644
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29644
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_outbound_registration
>    Affects Versions: 16.2.1
>         Environment: Ubuntu 20.04.2 LTS
>            Reporter: George Kissandrakis
>
> https://github.com/pjsip/pjproject/issues/2814
> My SIP provider uses usernames that include @
> The full string (in chan_sip) is
> register => +XXXXXXXXXX at sip.server.com:PASSWORD:+XXXXXXXXXX at sip.server.com@sip.server.com:5060
> register => fromuser㊙️username at host
> fromuser and username are +XXXXXXXXXX at sip.server.com
> This works fine no problems here
> When I try to migrate to res_pjsip it seems that it has a problem dealing with @ in username
> I tried to backslash @ and tried to replace it with %40 (hex value) but again no luck
> Provider told me that I send only the +XXXXXXXXXX part
> I did not find any documetation neither a working example on this
> Steps to reproduce
> create a sip trunk with @ at username
> PJSIP version
> 2.5.0
> Context
> Ubuntu 20.04
> Asterisk 16.2.1 (shipped with Ubuntu)
> pjsip version. Whatever is shipped with asterisk. No way to identify it. Should be 2.5.0
> [mytrunk]
> type=registration
> retry_interval = 20
> max_retries = 0
> expiration = 120
> transport = transport-udp
> outbound_auth=mytrunk
> server_uri=sip:sip.server.com:5060
> client_uri=sip:+NNNNNNNN at sip.server.com@sip.server.com:506
> [mytrunk]
> type=auth
> auth_type=userpass
> username=+NNNNNNNN at sip.server.com
> password=PASSWORD



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list