Discussion:
linphone and jaK message
Domenico Chierico
2012-08-31 12:01:25 UTC
Permalink
Seems that linphone sends to port 5060 some messages reporting "jaK"
inside for keepalive purpose.
Seems that this messages give troubles to the proxy.
I'm trying to fix this avoiding to parse this as SIP stuff

thanks
Domenico Chierico
Joegen Baclor
2012-08-31 16:20:37 UTC
Permalink
Post by Domenico Chierico
Seems that linphone sends to port 5060 some messages reporting "jaK"
inside for keepalive purpose.
Seems that this messages give troubles to the proxy.
I'm trying to fix this avoiding to parse this as SIP stuff
thanks
Domenico Chierico
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
What kind of trouble exactly?
Joegen Baclor
2012-08-31 16:31:45 UTC
Permalink
Post by Joegen Baclor
Post by Domenico Chierico
Seems that linphone sends to port 5060 some messages reporting "jaK"
inside for keepalive purpose.
Seems that this messages give troubles to the proxy.
I'm trying to fix this avoiding to parse this as SIP stuff
thanks
Domenico Chierico
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
What kind of trouble exactly?
Is jaK CLRF terminated? can you provide a pcap?
Domenico Chierico
2012-09-03 15:30:40 UTC
Permalink
here a preliminary patch

On Fri, Aug 31, 2012 at 2:01 PM, Domenico Chierico
Post by Domenico Chierico
Seems that linphone sends to port 5060 some messages reporting "jaK"
inside for keepalive purpose.
Seems that this messages give troubles to the proxy.
I'm trying to fix this avoiding to parse this as SIP stuff
thanks
Domenico Chierico
Joegen Baclor
2012-09-03 16:58:09 UTC
Permalink
Domenico,

Thanks for the patch. But no offence, having to check jaK string in the
stack layer is a bit off. How about this.

If (buffer_len <= 4 && buffer != "CRLFCRLF")
scram!;

Gerneric and still wintin specs for keep-alive.

Joegen
Post by Domenico Chierico
here a preliminary patch
On Fri, Aug 31, 2012 at 2:01 PM, Domenico Chierico
Post by Domenico Chierico
Seems that linphone sends to port 5060 some messages reporting "jaK"
inside for keepalive purpose.
Seems that this messages give troubles to the proxy.
I'm trying to fix this avoiding to parse this as SIP stuff
thanks
Domenico Chierico
Domenico Chierico
2012-09-03 17:07:23 UTC
Permalink
Great I think we could use stricter rules to discard non sip messages
before send it to the parser. For example the jaK message doesn't need a
reply so we can throw it away
On Sep 3, 2012 6:58 PM, "Joegen Baclor" <***@ezuce.com> wrote:
Joegen Baclor
2012-09-03 17:26:34 UTC
Permalink
Feel free to send a revised patch so we can commit it. Thanks!
Post by Domenico Chierico
Great I think we could use stricter rules to discard non sip messages
before send it to the parser. For example the jaK message doesn't need
a reply so we can throw it away
Domenico Chierico
2012-09-04 09:48:47 UTC
Permalink
what about if we considered valid sip message just above some size
limits, as example:

else if (res > 0) // got message, but not keep-alive

changed to res > 10

is this too bad designed?
Post by Joegen Baclor
Feel free to send a revised patch so we can commit it. Thanks!
Great I think we could use stricter rules to discard non sip messages before
send it to the parser. For example the jaK message doesn't need a reply so
we can throw it away
Loading...