Host Parameter Equivalent In Pjsip.conf
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:
To:
Contact:
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
From:
2 thoughts on - Host Parameter Equivalent In Pjsip.conf
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
It works, thanks a lot!
Maybe you could add this example to the sample pjsip.conf for others to see.