On 18/09/2008 19:57, Filippo Zangheri wrote: > Hi all, > > I'm trying to make two pjsua v0.9.0 applications inter-communicate using a proxy. > > My configuration is: > > PJSUA_1 : --ip-addr=127.0.0.100 --local-port=6000 --null-audio --proxy=sip:127.0.0.10 > PJSUA_2 : --ip-addr=127.0.0.200 --local-port=7000 --null-audio > > Proxy (127.0.0.10:5060) is OpenSIPS v1.4.2 with default configuration file. > > All calls are originated by PJSUA_1. > > > 1. With the above parameters the two SIP UAs communicate directly. PJSUA_1 does not > transmit the INVITE request to the proxy, but to PJSUA_2. Is that correct behaviour? > > > 2. Adding outbound proxy parameter does not help: > > PJSUA_1 : --ip-addr=127.0.0.100 --local-port=6000 --null-audio --proxy=sip:127.0.0.10 \ > --outbound=sip:127.0.0.10 > PJSUA_2 : --ip-addr=127.0.0.200 --local-port=7000 --null-audio > > > Now the INVITE is sent to the proxy: > > INVITE sip:127.0.0.10 SIP/2.0 > Via: SIP/2.0/UDP 127.0.0.100:6000;rport;branch=z9hG4bKPjRbQXYA1J.-vZts25XVKp.O-DOrb8p.Oo > Max-Forwards: 70 > From: <sip:127.0.0.100>;tag=JZb1zvxWeh2TBgacIHAZpsOlGeWI8l02 > To: sip:127.0.0.200 > Contact: <sip:127.0.0.100:6000> > Call-ID: TyaN6HBpuEor5uhdqhmNMyqe1ajo8CBb > CSeq: 998 INVITE > Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE, OPTIONS > Supported: replaces, 100rel, norefersub > User-Agent: PJSUA v0.9.0-release/i686-pc-linux-gnu > Route: <sip:127.0.0.200:7000> > Content-Type: application/sdp > Content-Length: 456 > > Is it normal to have the proxy's URI in the first line? > > Anyway, the proxy answers this way: > > SIP/2.0 484 Address Incomplete > Via: SIP/2.0/UDP 127.0.0.100:6000;rport=6000;branch=z9hG4bKPjRbQXYA1J.-vZts25XVKp.O-DOrb8p.Oo;received=127.0.0.10 > From: <sip:127.0.0.100>;tag=JZb1zvxWeh2TBgacIHAZpsOlGeWI8l02 > To: sip:127.0.0.200;tag=3dd80deda90f5eedcb6114bfabf113a9.8449 > Call-ID: TyaN6HBpuEor5uhdqhmNMyqe1ajo8CBb > CSeq: 998 INVITE > Server: OpenSIPS (1.4.2-notls (i386/linux)) > Content-Length: 0 > > > 3. With the following configuration: > > PJSUA_1 : --ip-addr=127.0.0.100 --local-port=6000 --null-audio --outbound=sip:127.0.0.10 > PJSUA_2 : --ip-addr=127.0.0.200 --local-port=7000 --null-audio > > I get exactly the same behaviour as at point 2. > > INVITE sip:127.0.0.10 SIP/2.0 > Via: SIP/2.0/UDP 127.0.0.100:6000;rport;branch=z9hG4bKPjx2T1ygGUm8jEYrD523H8Ou4U53-FoTmx > Max-Forwards: 70 > From: <sip:127.0.0.100>;tag=HIcKnQVpUeEtubQeyZftK7Iiq6xg1Hd3 > To: sip:127.0.0.200 > Contact: <sip:127.0.0.100:6000> > Call-ID: Zw664qOghj0ftXEV7NnfD5vCIOhHBqq6 > CSeq: 27099 INVITE > Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, PUBLISH, REFER, MESSAGE, OPTIONS > Supported: replaces, 100rel, norefersub > User-Agent: PJSUA v0.9.0-release/i686-pc-linux-gnu > Route: <sip:127.0.0.200:7000> > Content-Type: application/sdp > Content-Length: 456 > > SIP/2.0 484 Address Incomplete > Via: SIP/2.0/UDP 127.0.0.100:6000;rport=6000;branch=z9hG4bKPjx2T1ygGUm8jEYrD523H8Ou4U53-FoTmx;received=127.0.0.10 > From: <sip:127.0.0.100>;tag=HIcKnQVpUeEtubQeyZftK7Iiq6xg1Hd3 > To: sip:127.0.0.200;tag=3dd80deda90f5eedcb6114bfabf113a9.d4c0 > Call-ID: Zw664qOghj0ftXEV7NnfD5vCIOhHBqq6 > CSeq: 27099 INVITE > Server: OpenSIPS (1.4.2-notls (i386/linux)) > Content-Length: 0 > > > So, what's wrong? I really don't know. I solved by appending the loose-route parameter in the outbound proxy URI: --outbound "sip:127.0.0.10;lr" 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.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080919/d69dd8c2/attachment.asc