Help setting up the Request-Line URI

I’m using Asterisk and FreePBX with pjsip. I originate outbound calls (no inbound) and my Request-Line URI on outbound calls looks like below, missing the user part with the phone number in front of the IP address

INVITE sip:ServiceProviderIPAddress SIP/2.0

To: <sip:1234567890 at ServiceProviderIPAddress>

The sip trunk require no registration, or authentication, Service Provider enable access by ip address.
Calls complete fine but the Service Provider requires the Request-Line to be like To header and include the number. Where should I look to correct the Request-Line?
Thank you

What is the configuration? Do you have an outbound proxy set?

Yes. The outbound proxy set on the SIP trunk is “sip:ServiceProviderIPAddress”

You would need to set it to “sip:ServiceProviderIPAddress;lr” to enable loose routing and place a user in it.


I just appended ";lr” to the outbound proxy and tested but it did not make a difference. I saw other configuration examples had the outbound proxy set as “sip:;lr” so i tried that and it did the trick!
Thank you! Much appreciated!

I just noticed after my last post that the backslash between ip address and the semi-column does not show in the message. Probably you posted that correctly and your message did not show it as well. If other people might run into this, know there should be a backslash after the ip address, before the semi-column, in order for it to work.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.