Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] [asterisk-dev] Configuring Request URI with outbound proxyu


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





PostPosted: Wed Apr 13, 2016 3:53 pm    Post subject: [asterisk-users] [asterisk-dev] Configuring Request URI with Reply with quote

Hi Olle,

Redirecting the question to users mailing list.
Could you point out how can I dynamically pass both the SIP peer and request-URI in the dial command.
I want be able to use same SIP peer to route to different SIP end points.
I'm currently doing this 'Dial, SIP/peer/exten)', but this results in Reqeust-URI looking like this sip:exten@ipaddress_of_peer,
whereas I want to be able to somehow pass the SIP request URI to the Dial command, I tried passing it as part of Route header
in the Dial command and use Kamailio to do loose_route(), but I suppose this isn't the best solution.


Many thanks,
Nitesh


On Wed, Apr 13, 2016 at 10:17 PM, Olle E. Johansson <oej@edvina.net (oej@edvina.net)> wrote:
Quote:

Quote:
On 13 Apr 2016, at 22:05, Nitesh Bansal <nitesh.bansal@gmail.com (nitesh.bansal@gmail.com)> wrote:

Hello,

I want to use Asterisk to use Kamailio as an outbound proxy for routing calls to remote SIP end points, one option could be to use a default peer, but in my case, my outbound proxy can change 
based on the remote end point, so this option doesn't work.
And another problem is that I don't know how to configure Asterisk to prepare the Request-URI
based on the remote end point and not based on the outbound proxy address?


What is the best way to do it?




First, you are asking the wrong mailing list. This is not second-level support - this is for development and code questions.


If you are using chan_sip, there is a setting of outbound proxy per peer. There are settings
for domain - both in r-uri (host) and from URI domain. 


If you set host=example.com and outbound proxy to example.net the SIP request will
have example.com in the R-uri and send the request to example.net


Good luck working with Kamailio!


/Olle





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev
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