[OpenSIPS-Users] Request URI in INVITE when using proxy
Filippo Zangheri
filippo.zangheri at yahoo.it
Fri Sep 19 10:42:52 CEST 2008
Hi all,
I'm trying to make two pjsua v0.9.0 applications inter-communicate using a proxy.
My configuration is:
[SIPUA_1] <======> [Proxy] <======> [SIPUA_2]
SIP UA 1 and 2 are two instances of pjsua v0.9.0, while Proxy is OpenSIPS v1.4.2
with default configuration file.
My experiment is conducted in the loopback address space SIP UA 1 and 2 have,
respectively, address 127.0.0.100:6000 and 127.0.0.200:7000; Proxy address is
127.0.0.10:5060.
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
The problem is that when a pjsua attempts to make a call, it transmits an INVITE
request that looks like that 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
...
And OpenSIPS replies 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
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?
Have you got any hints?
Thanks in advance.
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: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20080919/df3840ff/attachment.pgp
-------------- 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/df3840ff/attachment-0001.pgp
More information about the Users
mailing list