[OpenSIPS-Users] Request URI in INVITE when using proxy

Filippo Zangheri filippo.zangheri at yahoo.it
Fri Sep 19 13:35:09 CEST 2008


On 19/09/2008 13:28, Andrew Pogrebennyk wrote:
> Andrew Pogrebennyk wrote:
>> Filippo Zangheri wrote:
>>> Pjsua command line is:
>>>
>>>  $ ./pjsua-i686-pc-linux-gnu --ip-addr=127.0.0.100 --local-port=6000 --null-audio --outbound=sip:127.0.0.10
>>>  $ ./pjsua-i686-pc-linux-gnu --ip-addr=127.0.0.200 --local-port=7000 --null-audio --outbound=sip:127.0.0.10
>>>  [...]
>>>  INVITE sip:127.0.0.10 SIP/2.0
>>>  [...]
>>> Now, is it normal to have the proxy URI in the INVITE request 1st line, or
>>> is pjsua completely messed-up? Or is it a special way to make an INVITE, which
>>> OpenSIPS by default does not accept?
>>> 
>> Why don't you check yourself?
>> According to RFC 3261 SIP URI is not complete without hostport part:
>> SIP-URI          =  "sip:" [ userinfo ] hostport
>>                      uri-parameters [ headers ]
> 
> Sorry, I meant not hostport but userinfo part. OpenSIPS is only a proxy 
> so it can not process dialog forming request which doesn't contain 
> userinfo ;)
> 
>> I think what you are getting is the effect of having the outbound proxy 
>> set without setting the SIP URL to call. You won't need to set outbound 
>> proxy after SIP URL to call is set correctly. Just in case manual of 
>> pjsua is located at http://www.pjsip.org/pjsua.htm

Thank you.

Actually the problem is solved by explicitely setting the loose route prameter
in proxy URI, as Olle Frimanson told me previously (not on ml, though):

 --outbound "sip:127.0.0.10;lr"


Thank you guys!
Best regards.

-- 
Filippo Zangheri

GPG key ID: 0x6C1F2F2F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.opensips.org/pipermail/users/attachments/20080919/a99e2163/attachment.pgp 


More information about the Users mailing list