Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] host parameter equivalent in pjsip.conf


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





PostPosted: Tue Dec 08, 2015 11:28 am    Post subject: [asterisk-users] host parameter equivalent in pjsip.conf Reply with quote

Hi,

I’m trying to port our configuration form sip to pjsip channel and have following issue.

Sip.conf has a host parameter that sets the RURI to a given value. This functionality is needed in some of our scenarios where we need to send requests to specific IP address with specific domain in RURI.

I did not found an equivalent to the host parameter in pjsip configuration. Did I miss something?

All I could come with is to get the Route header set to the needed value, but that does not help us in our scenarios. Below are relevant config settings and resulting SIP REGISTER Request.

sip.conf:

host=test.com
outboundproxy=tcp://1.2.3.4
fromuser=+12345678
fromdomain=test.com

REGISTER sip:test.com SIP/2.0
From: <sip:+12345678@test.com>;tag=as5152122a
To: <sip:+12345678@test.com>
Contact: <sip:+12345678@4.3.2.1:5071;transport=TCP>
User-Agent: Asterisk PBX 13.6.0

pjsip.conf:

client_uri = sip:+12345678@test.com
server_uri = sip:test.com
outbound_proxy=sip:1.2.3.4\;transport=tcp

REGISTER [url=sip:1.2.3.4;transport=tcp]sip:1.2.3.4;transport=tcp[/url] SIP/2.0
From: <sip:+12345678@test.com>;tag=f47f3ed2-0975-4ff0-bd3b-bd5c38e594c4
To: <sip:+12345678@test.com>
Contact: <[url=sip:+12345678@4.3.2.1:60938]sip:+12345678@4.3.2.1:60938[/url]>
Route: <[url=sip:test.com]sip:test.com[/url]>
User-Agent: Asterisk PBX 13.6.0
Back to top
mjordan at digium.com
Guest





PostPosted: Tue Dec 08, 2015 11:38 am    Post subject: [asterisk-users] host parameter equivalent in pjsip.conf Reply with quote

On Tue, Dec 8, 2015 at 10:29 AM, xaled <xaled@web.de (xaled@web.de)> wrote:
Quote:

Hi,
 
I’m trying to port our configuration form sip to pjsip channel and have following issue.
 
Sip.conf has a host parameter that sets the RURI to a given value. This functionality is needed in some of our scenarios where we need to send requests to specific IP address with specific domain in RURI.
 
I did not found an equivalent to the host parameter in pjsip configuration. Did I miss something?
 
All I could come with is to get the Route header set to the needed value, but that does not help us in our scenarios. Below are relevant config settings and resulting SIP REGISTER Request.
 
sip.conf:
 
host=test.com
outboundproxy=tcp://1.2.3.4
fromuser=+12345678
fromdomain=test.com
 
REGISTER sip:test.com SIP/2.0
From: <sip:+12345678@test.com ([email]sip%3A%2B12345678@test.com[/email])>;tag=as5152122a
To: <sip:+12345678@test.com ([email]sip%3A%2B12345678@test.com[/email])>
Contact: <sip:+12345678@4.3.2.1:5071;transport=TCP>
User-Agent: Asterisk PBX 13.6.0
 
pjsip.conf:
 
client_uri = sip:+12345678@test.com ([email]sip%3A%2B12345678@test.com[/email])
server_uri = sip:test.com
outbound_proxy=sip:1.2.3.4\;transport=tcp
 
REGISTER sip:1.2.3.4;transport=tcp SIP/2.0
From: <sip:+12345678@test.com ([email]sip%3A%2B12345678@test.com[/email])>;tag=f47f3ed2-0975-4ff0-bd3b-bd5c38e594c4
To: <sip:+12345678@test.com ([email]sip%3A%2B12345678@test.com[/email])>
Contact: <sip:+12345678@4.3.2.1:60938>
Route: <sip:test.com>
User-Agent: Asterisk PBX 13.6.0



In order to preserve the request URI, you'll need to specify loose routing on the SIP URI for the outbound proxy:


outbound_proxy=sip:1.2.3.4\;transport=tcp\;lr



--
Matthew Jordan

Digium, Inc. | Director of Technology

445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
Back to top
xaled at web.de
Guest





PostPosted: Tue Dec 08, 2015 1:04 pm    Post subject: [asterisk-users] host parameter equivalent in pjsip.conf Reply with quote

It works, thanks a lot!
Maybe you could add this example to the sample pjsip.conf for others to see.


Quote:
In order to preserve the request URI, you'll need to specify loose routing on the SIP URI for the outbound proxy:

Quote:
outbound_proxy=sip:1.2.3.4\;transport=tcp\;lr
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