<div dir="ltr"><a href="https://jira.freeswitch.org/browse/FS-2731">https://jira.freeswitch.org/browse/FS-2731</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 1:38 PM, Kevin Wormington <span dir="ltr"><<a href="mailto:kworm@missouri-telecom.com" target="_blank">kworm@missouri-telecom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm trying out the "feature synchronization" functionality of the new<br>
.73 beta firmware for the T46G that allows the phone to notify<br>
FreeSWITCH of DND and Forwarding status. The phone is using SUBSCRIBE<br>
messages to do this (example below) and FS processes them in<br>
sofia_presence.c and generates a SWITCH_EVENT_PHONE_FEATURE_SUBSCRIBE<br>
event. I don't see that this event is handled anywhere in mod_sofia. I<br>
would like to add a configurable feature at let FS emulate key system<br>
behavior and in the case of DND update the presence to be DND/Busy so<br>
the BLF lights on other UA would indicate busy. I know this is not<br>
necessarily what BLF means but most old key systems have this behaviour.<br>
<br>
I have not made an extensive review of mod_sofia but I would think this<br>
would be implemented there where the csta stuff is. I can play around<br>
with it, but wanted to see if anyone else had an opinion on it or if I'm<br>
completely missing some other way to do it other than using ESL to catch<br>
events and send new ones.<br>
<br>
Here is an example of DND being activated:<br>
------------------------------------------------------------------------<br>
SUBSCRIBE <a href="http://sip:1000@192.168.1.175:5060" target="_blank">sip:1000@192.168.1.175:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.1.106:5062;branch=z9hG4bK2975756387<br>
From: <<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>>;tag=2420321046<br>
To: <<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>>;tag=YKBD9deNLnnN<br>
Call-ID: <a href="mailto:3592119465@192.168.1.106">3592119465@192.168.1.106</a><br>
CSeq: 5 SUBSCRIBE<br>
Contact: <<a href="http://sip:1000@192.168.1.106:5062" target="_blank">sip:1000@192.168.1.106:5062</a>><br>
Authorization: Digest username="1000", realm="192.168.1.175",<br>
nonce="71a73470-5561-11e4-9781-81e6a6ef6342",<br>
uri="<a href="http://sip:1000@192.168.1.175:5060" target="_blank">sip:1000@192.168.1.175:5060</a>",<br>
response="78e97ccca503de4e7490b0bbbf2f35ef", algorithm=MD5,<br>
cnonce="0a4f113b", qop=auth, nc=00000004<br>
Content-Type: application/x-as-feature-event+xml<br>
Max-Forwards: 70<br>
User-Agent: Yealink SIP-T46G 28.73.0.16<br>
Expires: 3630<br>
Event: as-feature-event<br>
Content-Length: 185<br>
<br>
<?xml version="1.0" encoding="ISO-8859-1"?><SetDoNotDisturb<br>
xmlns="<a href="http://www.ecma-international.org/standards/ecma-323/csta/ed3" target="_blank">http://www.ecma-international.org/standards/ecma-323/csta/ed3</a>"><doNotDisturbOn>true</doNotDisturbOn></SetDoNotDisturb><br>
<br>
<br>
<br>
And turning off:<br>
------------------------------------------------------------------------<br>
SUBSCRIBE <a href="http://sip:1000@192.168.1.175:5060" target="_blank">sip:1000@192.168.1.175:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.1.106:5062;branch=z9hG4bK264963740<br>
From: <<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>>;tag=2420321046<br>
To: <<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>>;tag=YKBD9deNLnnN<br>
Call-ID: <a href="mailto:3592119465@192.168.1.106">3592119465@192.168.1.106</a><br>
CSeq: 6 SUBSCRIBE<br>
Contact: <<a href="http://sip:1000@192.168.1.106:5062" target="_blank">sip:1000@192.168.1.106:5062</a>><br>
Authorization: Digest username="1000", realm="192.168.1.175",<br>
nonce="71a73470-5561-11e4-9781-81e6a6ef6342",<br>
uri="<a href="http://sip:1000@192.168.1.175:5060" target="_blank">sip:1000@192.168.1.175:5060</a>",<br>
response="4042dfcf7590c1d5187aa4b260275991", algorithm=MD5,<br>
cnonce="0a4f113b", qop=auth, nc=00000005<br>
Content-Type: application/x-as-feature-event+xml<br>
Max-Forwards: 70<br>
User-Agent: Yealink SIP-T46G 28.73.0.16<br>
Expires: 3630<br>
Event: as-feature-event<br>
Content-Length: 186<br>
<br>
<?xml version="1.0" encoding="ISO-8859-1"?><SetDoNotDisturb<br>
xmlns="<a href="http://www.ecma-international.org/standards/ecma-323/csta/ed3" target="_blank">http://www.ecma-international.org/standards/ecma-323/csta/ed3</a>"><doNotDisturbOn>false</doNotDisturbOn></SetDoNotDisturb><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div>
</div>