Tom Browning
2008-Jun-18 22:34 UTC
[asterisk-users] Adding ;password=foo;method=bar to SIP uri
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080618/cceea0ff/attachment.htm
Eric "ManxPower" Wieling
2008-Jun-19 01:12 UTC
[asterisk-users] Adding ;password=foo;method=bar to SIP uri
Asterisk allows you to add custom SIP headers. SER is a *very* powerful SIP proxy. I imagine you should be able to make SER translate those headers into the URI as it routes the SIP packet. Tom Browning wrote:> > 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 <mailto:xyz at abc.com> > > needs to become > > Asterisk dial SIP/xyz at abc.com <mailto: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 <http://abc.com> > > Asterisk 1.4.18.1 <http://1.4.18.1> seems to glue the data as part of > the hostname and fail to lookup abc.com <http://abc.com> > > Is there a way to manipulate the URI that will be sent in the INVITE to > accomplish this?-- Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, T-1, PRI, Frame Relay, Linux, and network design. Based near Birmingham, AL. Now accepting clients worldwide.
Johansson Olle E
2008-Jun-19 09:40 UTC
[asterisk-users] Adding ;password=foo;method=bar to SIP uri
19 jun 2008 kl. 00.34 skrev Tom Browning:> > 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?From doc/channelvariables.txt ${SIP_URI_OPTIONS} * additional options to add to the URI for an outgoing call /Olle :-) --- * Olle E. Johansson - oej at edvina.net * Asterisk Training http://edvina.net/training/
Matthew Rubenstein
2008-Jun-19 14:57 UTC
[asterisk-users] Adding ;password=foo;method=bar to SIP uri
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