linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-users] LinPhone sends OPTIONS twice (ignores first response)


From: Jonathan Couper-Smartt
Subject: [Linphone-users] LinPhone sends OPTIONS twice (ignores first response)
Date: Wed, 26 Feb 2014 17:01:50 +1300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi LinPhonePhiles,

I'm working on a little SIP User Agent and using LinPhone to test it. I see that LinPhone sends an option request. But no matter how I reply, it sends a second one 500ms later.

        It is sending:

OPTIONS sip:address@hidden:5060 SIP/2.0
Via: SIP/2.0/TCP 10.42.2.100:5160;rport;branch=z9hG4bK848915671
Accept: application/sdp
From: <sip:address@hidden:5160>;tag=1819050992
Max-Forwards: 70
User-Agent: Linphone/3.5.2 (eXosip2/3.6.0)
Content-Length: 0
Call-ID: 672072404
CSeq: 20 OPTIONS
To: "Test Call" <sip:address@hidden:5060>

        I am responding:

405 Method Not Supported
Via: SIP/2.0/TCP 10.42.2.100:5160;rport;branch=z9hG4bK1327273533
From: <sip:address@hidden:5160>;tag=308055490
Allow: INVITE,CANCEL,ACK,BYE,OPTIONS,INFO
Content-Length: 0
Call-ID: 2109809327
CSeq: 20 OPTIONS
To: "Test Call" <sip:address@hidden:5060>

        According to the LinPhone debug...

message: Call 0x13a1620: moving from state LinphoneCallIdle to LinphoneCallOutgoingInit
message: allocating transaction resource 6 2109809327
message: allocating NICT context
message: DNS resolution with 10.42.2.100:5060
message: getaddrinfo returned the following addresses:
message: 10.42.2.100 port 5060
message: New binding with 10.42.2.100:5060
message: socket node:10.42.2.100 , socket 20, family:2 set to non blocking mode
message: socket node:10.42.2.100 , socket 20 [pos=0], family:2, connected
message: socket node:10.42.2.100 , socket 20 [pos=0], connected
message: Message sent: (to dest=10.42.2.100:5060)
OPTIONS sip:address@hidden:5060 SIP/2.0
Via: SIP/2.0/TCP 10.42.2.100:5160;rport;branch=z9hG4bK1327273533
From: <sip:address@hidden:5160>;tag=308055490
To: "Test Call" <sip:address@hidden:5060>
Call-ID: 2109809327
CSeq: 20 OPTIONS
Accept: application/sdp
Max-Forwards: 70
User-Agent: Linphone/3.5.2 (eXosip2/3.6.0)
Content-Length: 0


message: cb_sndoptions (id=6)
message: keep alive: 2
message: tcp_tl_keepalive socket node:10.42.2.100:5060 , socket 20 [pos=0], connected
message: eXosip: timer sec:0 usec:509994!
message: socket 10.42.2.100:5060: read 282 bytes
message: keep alive: 0
message: tcp_tl_keepalive socket node:10.42.2.100:5060 , socket 20 [pos=0], connected
message: eXosip: timer sec:0 usec:485816!
message: reusing connection (to dest=10.42.2.100:5060)
message: socket node:10.42.2.100 , socket 20 [pos=0], connected
message: Message sent: (to dest=10.42.2.100:5060)
OPTIONS sip:address@hidden:5060 SIP/2.0
Via: SIP/2.0/TCP 10.42.2.100:5160;rport;branch=z9hG4bK1327273533
From: <sip:address@hidden:5160>;tag=308055490
To: "Test Call" <sip:address@hidden:5060>
Call-ID: 2109809327
CSeq: 20 OPTIONS
Accept: application/sdp
Max-Forwards: 70
User-Agent: Linphone/3.5.2 (eXosip2/3.6.0)
Content-Length: 0


message: cb_sndreq_retransmission (id=6)
message: keep alive: 1
message: tcp_tl_keepalive socket node:10.42.2.100:5060 , socket 20 [pos=0], connected
message: eXosip: Reseting timer to 10s before waking up!
message: socket 10.42.2.100:5060: read 282 bytes
message: keep alive: 0
message: tcp_tl_keepalive socket node:10.42.2.100:5060 , socket 20 [pos=0], connected
message: eXosip: Reseting timer to 10s before waking up!
message: Contact has been fixed using local ip to sip:address@hidden:5160
warning: cannot set noise gate mode to [0] because no volume send
message: allocating transaction resource 7 1423503153
message: allocating ICT context
message: Call 0x13a1620: moving from state LinphoneCallOutgoingInit to LinphoneCallOutgoingProgress
message: reusing connection (to dest=10.42.2.100:5060)
message: socket node:10.42.2.100 , socket 20 [pos=0], connected
message: Message sent: (to dest=10.42.2.100:5060)
INVITE sip:address@hidden:5060 SIP/2.0

...So it is receiving my response of 282 bytes, but ignores it and just sends the OPTIONS again!

I have tried a 200 OK with some SDP data to try and placate it, but LinPhone is never satisfied!

        Any suggestions on how I can make LinPhone happy on the first OPTIONS?

        J.

--
--
Jonathan Couper-Smartt
N-Squared Software
Fixed: +64 6 358 1140
Mobile: +64 27 733 9716



reply via email to

[Prev in Thread] Current Thread [Next in Thread]