[asterisk-users] Adding ;password=foo;method=bar to SIP uri

Matthew Rubenstein email at mattruby.com
Thu Jun 19 09:57:22 CDT 2008


	Is there any reason that the SIP INVITE URL shouldn't conform to the
same syntax as RFC3986 standard URLs
( http://en.wikipedia.org/wiki/URI_scheme#Generic_syntax ), as specific
to SIP according to RFCs 3969 and 3261? That would be, according to

------------------------------------------------------------------------
sip:<user>[:<password>]@<host>[:<port>][;<uri-parameters>][?<headers>] 

examples:
sip:alice at atlanta.com?subject=project%20x&priority=urgent
sip:+1-212-555-1212:1234 at gateway.com;user=phone
------------------------------------------------------------------------

Like

sip:xyz:foo at abc.com;Authorization=bar+realm%3Dbaz

OR

sip:xyz:foo at abc.com;?Authorization:+bar;realm%3Dbaz

or something along those lines, as per
http://tools.ietf.org/html/rfc3261#page-194 ?



On Thu, 2008-06-19 at 03:38 -0500,
asterisk-users-request at lists.digium.com wrote:
> Date: Wed, 18 Jun 2008 18:34:15 -0400
> From: "Tom Browning" <ttbrowning at gmail.com>
> Subject: [asterisk-users] Adding ;password=foo;method=bar to SIP uri
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
>         <asterisk-users at lists.digium.com>
> Message-ID:
>         <b5de685d0806181534s49a4041dp4f01bcfcea2e1933 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> To send calls into a custom SER implementation, I need to be able to
> add
> some items to the URI that Asterisk will then send as part of the
> INVITE
> 
> 
> Asterisk dial   SIP/xyz at abc.com
> 
> needs to become
> 
> Asterisk dial SIP/xyz at abc.com;password=foo;method=bar
> 
> This is not a registration password.  It is a passsword associated
> with the
> destination xyz at location abc.com
> 
> Asterisk 1.4.18.1 seems to glue the data as part of the hostname and
> fail to
> lookup abc.com
> 
> Is there a way to manipulate the URI that will be sent in the INVITE
> to
> accomplish this?
> 
> Thanks in advance,
> 
> Tom
-- 

(C) Matthew Rubenstein




More information about the asterisk-users mailing list