linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] No response to OPTIONS or INFO messages?


From: Kevin Cross
Subject: Re: [Linphone-developers] No response to OPTIONS or INFO messages?
Date: Fri, 1 Oct 2010 09:20:22 -0400

Hi,

The OPTIONS that I am talking about are after the call is stablished. OPTIONS used as a method of keeping the router bindings (ie http://www.ag-projects.com/content/view/151/176/ ).
It is easy to reproduce, you can download a free trial of this well known commercial softphone : http://www.mirial.com/products/Mirial_collaterals/MirialSoftphone_download.html and make a call to linphone.
You will see Mirial drop the call after around 30 seconds because none of the OPTIONS are being answered.

The wireshark capture shows multiple packets of this form :

>         > OPTIONS sip:address@hidden SIP/2.0
>         > To: <sip:address@hidden>;tag=2063506250
>         > From: "user004"
>         <sip:address@hidden>;tag=DLc57bafead1;epid=0x1ede7e0
>         > CSeq: 4 OPTIONS
>         > Call-ID: 1119294776
>         > Max-Forwards: 70
>         > Via: SIP/2.0/UDP
>         192.168.100.19:5060;branch=z9hG4bK-98abd6bea2-DL
>         > Contact: "user004" <sip:address@hidden:5060>
>         > Content-Length: 0

being sent to linphone and linphone does not ack any of them.

My dirty fix was basically (coreapi/sal_eXosip2.c):

@@ -1188,6 +1199,15 @@ static void call_message_new(Sal *sal, eXosip_event_t *ev){
         eXosip_unlock();
       }

     }
+    if(MSG_IS_OPTIONS(ev->request)){
+      eXosip_lock();
+      eXosip_call_build_answer(ev->tid,200,&ans);
+      if (ans)
+        eXosip_call_send_answer(ev->tid,200,ans);
+      eXosip_unlock();
+    }

But I am not sure if it is entirely correct, but it allowed me at least to keep the calls alive.

Thanks,
K

On Fri, Oct 1, 2010 at 3:58 AM, Simon Morlat <address@hidden> wrote:
Hi,

Linphone do answer to OPTIONS message (it even sends them). If you are
still seeing this problem of unanswered OPTIONS, please send a log
because it is surely a problem I'm not aware of, nor able to reproduce.
Thanks

SImon

Le vendredi 17 septembre 2010 à 09:28 -0400, Kevin Cross a écrit :
> Tested the INFO fix and it works :)
> I did not see the OPTIONS fix on the repo yet, but wanted to make a
> quick comment about it.
> Mirial (and apparently several other end-points) uses OPTIONS as
> keep-alive, so when it does not see a response to several of them it
> terminates the call.
>
> Thanks,
> K
>
> On Fri, Sep 17, 2010 at 3:39 AM, Simon Morlat
> <address@hidden> wrote:
>         Hi Claudio,
>
>         Thanks for reporting. I'm fixing the problem.
>
>         Simon
>
>         Le lundi 13 septembre 2010 à 10:29 -0400, Kevin Cross a
>         écrit :
>
>         > Hello,
>         >
>         > I was testing linphone against other endpoints and by
>         looking at the
>         > trace I noticed that linphone does not reply to INFO msgs
>         with media
>         > control messages it cannot handle.
>         > This causes the other endpoint to continuously send the same
>         packet
>         > during the session.
>         >
>         > INFO sip:address@hidden SIP/2.0
>         > Content-Type: application/media_control+xml
>         > Content-Length: 163
>         > To: <sip:address@hidden>;tag=2063506250
>         > From: "user004"
>         <sip:address@hidden>;tag=DLc57bafead1;epid=0x1ede7e0
>         > CSeq: 1 INFO
>         > Call-ID: 1119294776
>         > Max-Forwards: 70
>         > Via: SIP/2.0/UDP
>         192.168.100.19:5060;branch=z9hG4bK-2e4a9fa1ed-DL
>         > Contact: "user004" <sip:address@hidden:5060>
>         >
>         > <?xml version="1.0"
>         >
>         encoding="utf-8" ?><media_control><vc_primitive><to_encoder><change_bitrate>408400</change_bitrate></to_encoder></vc_primitive></media_control>
>         >
>         >
>         > Also, linphone did not response to an std OPTIONS request
>         causing the
>         > other endpoint to continuously send the OPTIONS msg.
>         >
>         > OPTIONS sip:address@hidden SIP/2.0
>         > To: <sip:address@hidden>;tag=2063506250
>         > From: "user004"
>         <sip:address@hidden>;tag=DLc57bafead1;epid=0x1ede7e0
>         > CSeq: 4 OPTIONS
>         > Call-ID: 1119294776
>         > Max-Forwards: 70
>         > Via: SIP/2.0/UDP
>         192.168.100.19:5060;branch=z9hG4bK-98abd6bea2-DL
>         > Contact: "user004" <sip:address@hidden:5060>
>         > Content-Length: 0
>         >
>         >
>         > All the calls where made using the other endpoint private ip
>         address
>         > on a private network.
>         >
>         > I am not a VoIP expert by any means but shouldn't those
>         packets be
>         > acknowledge in some way? A quick look at the RFC shows
>         several ways of
>         > responding.
>         >
>         > Thanks,
>         > Claudio
>
>         > _______________________________________________
>         > Linphone-developers mailing list
>         > address@hidden
>         > http://lists.nongnu.org/mailman/listinfo/linphone-developers
>
>
>
>         _______________________________________________
>         Linphone-developers mailing list
>         address@hidden
>         http://lists.nongnu.org/mailman/listinfo/linphone-developers
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers



_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

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