Discussion:
[Freeswitch-users] SIP OPTIONS
Michael B
2011-07-11 07:43:56 UTC
Permalink
Hello, Our carrier by default sends us a SIP OPTIONS message at certain
intervals to ensure we are alive. Is there anyway I can configure Freeswitch
to respond to this with 200OK or similar? I have read that FS is able to do
this itself via a SIP PING, but can't find anything that talks about the
other way, i.e. FS being the one to receive the OPTIONS. Any advice would be
greatly appreciated.

--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/SIP-OPTIONS-tp6570046p6570046.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
Steven Ayre
2011-07-11 15:32:40 UTC
Permalink
Yes... just load mod_sofia as normal.
It will repond to these OPTIONS requests with 200 OK by default, as long as
there is a sip profile configured for that IP:port.

-Steve
Post by Michael B
Hello, Our carrier by default sends us a SIP OPTIONS message at certain
intervals to ensure we are alive. Is there anyway I can configure Freeswitch
to respond to this with 200OK or similar? I have read that FS is able to do
this itself via a SIP PING, but can't find anything that talks about the
other way, i.e. FS being the one to receive the OPTIONS. Any advice would be
greatly appreciated.
--
http://freeswitch-users.2379917.n2.nabble.com/SIP-OPTIONS-tp6570046p6570046.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110711/d65fefb5/attachment-0001.html
Steven Ayre
2011-07-11 15:38:33 UTC
Permalink
By the way, ANY standards-compliant SIP server should respond to the OPTIONS
with a usable response.
From RFC3261, Section 11 says: "All UAs MUST support the OPTIONS method."
And Section 12 says "The response code chosen MUST be the same that would
have been chosen had the request been an INVITE."

The RFC suggests that can mean it would return user busy etc (FS treats most
replies to the ping as success). In practice I usually only see servers
replying with 200 OK or 403 Forbidden (not logged in).

In the case of FS it would return 200 OK because any more precise response
code requires going to the dialplan to process the call to determine the
user busy etc result.

-Steve
Yes... just load mod_sofia as normal.
It will repond to these OPTIONS requests with 200 OK by default, as long as
there is a sip profile configured for that IP:port.
-Steve
Post by Michael B
Hello, Our carrier by default sends us a SIP OPTIONS message at certain
intervals to ensure we are alive. Is there anyway I can configure Freeswitch
to respond to this with 200OK or similar? I have read that FS is able to do
this itself via a SIP PING, but can't find anything that talks about the
other way, i.e. FS being the one to receive the OPTIONS. Any advice would be
greatly appreciated.
--
http://freeswitch-users.2379917.n2.nabble.com/SIP-OPTIONS-tp6570046p6570046.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110711/90b16cea/attachment.html
Continue reading on narkive:
Loading...