[asterisk-bugs] [JIRA] (ASTERISK-23257) sip.conf option pendantic=yes not working for dialed numbers with sign #

Walter Doekes (JIRA) noreply at issues.asterisk.org
Fri Feb 7 02:15:03 CST 2014


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

Walter Doekes commented on ASTERISK-23257:
------------------------------------------

{noformat}
      reserved    =  ";" / "/" / "?" / ":" / "@" / "&" / "=" / "+"
                     / "$" / ","
      unreserved  =  alphanum / mark
      mark        =  "-" / "_" / "." / "!" / "~" / "*" / "'"
                     / "(" / ")"
      escaped     =  "%" HEXDIG HEXDIG
      token       =  1*(alphanum / "-" / "." / "!" / "%" / "*"
                     / "_" / "+" / "`" / "'" / "~" )
      separators  =  "(" / ")" / "<" / ">" / "@" /
                     "," / ";" / ":" / "\" / DQUOTE /
                     "/" / "[" / "]" / "?" / "=" /
                     "{" / "}" / SP / HTAB
      word        =  1*(alphanum / "-" / "." / "!" / "%" / "*" /
                     "_" / "+" / "`" / "'" / "~" /
                     "(" / ")" / "<" / ">" /
                     ":" / "\" / DQUOTE /
                     "/" / "[" / "]" / "?" /
                     "{" / "}" )
{noformat}

And:

{noformat}
SIP-URI          =  "sip:" [ userinfo ] hostport
                    uri-parameters [ headers ]
SIPS-URI         =  "sips:" [ userinfo ] hostport
                    uri-parameters [ headers ]
userinfo         =  ( user / telephone-subscriber ) [ ":" password ] "@"
user             =  1*( unreserved / escaped / user-unreserved )
user-unreserved  =  "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
{noformat}

So. Notice how you construct the user-part, by combining unreserved / escaped / user-unreserved.

The "#" isn't in it.

So, pedantic does what it's supposed to do: send out valid SIP on the wire.

You'll need to fix your device. Make it escape the "#" by sending "%23" instead.

Example of my old SPA941 phone when dialing 123#456.

{noformat}
INVITE sip:123%23456 at voip...
{noformat}

Cheers.

Closing as not a bug.
                
> sip.conf option pendantic=yes not working for dialed numbers with sign #
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-23257
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23257
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Messaging
>    Affects Versions: 11.7.0
>         Environment: Centos 6.4 64 Bit
>            Reporter: Wilmar Campos
>            Assignee: Wilmar Campos
>
> Bug occurs when pedantic=yes option is active in sip.conf.
> To replicate just create an extension like:
> {noformat}
> exten => _12.,1,NoOP(SIP Call ${EXTEN}, ${CALLERID(all)})
> same => n,Dial(SIP/${EXTEN}@IP_PROVIDER,120,)
> same => n,Hangup
> {noformat}
> When user dial {{126060#1305777777}}, the provider receives the call like:
> {{126060%231305777777}}.
> Please use same default sip.conf and add only pedantic=yes.
> The flow of the call in signaling messages are:
> {noformat}
> customer -> asterisk SIP/SDP Request: INVITE sip:126060#13057777777 at asterisk_ip, with session description
> asterisk -> customer SIP Status: 100 Trying
> asterisk -> provider SIP/SDP Request: INVITE sip:126060%23130577777 at provider_ip, with session description
> {noformat}
> The issue is replicable with Asterisk 11.6.0 and 11.7.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list