Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ttbrowning at gmail.com
Guest





PostPosted: Wed Jun 18, 2008 5:34 pm    Post subject: [asterisk-users] Adding ;password=foo;method=bar to SIP uri Reply with quote

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
Back to top
eric at fnords.org
Guest





PostPosted: Wed Jun 18, 2008 8:12 pm    Post subject: [asterisk-users] Adding ;password=foo;method=bar to SIP uri Reply with quote

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:
Quote:

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.
Back to top
oej at edvina.net
Guest





PostPosted: Thu Jun 19, 2008 4:40 am    Post subject: [asterisk-users] Adding ;password=foo;method=bar to SIP uri Reply with quote

19 jun 2008 kl. 00.34 skrev Tom Browning:

Quote:

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 Smile
---
* Olle E. Johansson - oej at edvina.net
* Asterisk Training http://edvina.net/training/
Back to top
email at mattruby.com
Guest





PostPosted: Thu Jun 19, 2008 9:57 am    Post subject: [asterisk-users] Adding ;password=foo;method=bar to SIP uri Reply with quote

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:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services