<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">&lt;<a href="mailto:kworm@missouri-telecom.com" target="_blank">kworm@missouri-telecom.com</a>&gt;</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&#39;m trying out the &quot;feature synchronization&quot; 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&#39;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&#39;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: &lt;<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>&gt;;tag=2420321046<br>
    To: &lt;<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>&gt;;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: &lt;<a href="http://sip:1000@192.168.1.106:5062" target="_blank">sip:1000@192.168.1.106:5062</a>&gt;<br>
    Authorization: Digest username=&quot;1000&quot;, realm=&quot;192.168.1.175&quot;,<br>
nonce=&quot;71a73470-5561-11e4-9781-81e6a6ef6342&quot;,<br>
uri=&quot;<a href="http://sip:1000@192.168.1.175:5060" target="_blank">sip:1000@192.168.1.175:5060</a>&quot;,<br>
response=&quot;78e97ccca503de4e7490b0bbbf2f35ef&quot;, algorithm=MD5,<br>
cnonce=&quot;0a4f113b&quot;, 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>
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;&lt;SetDoNotDisturb<br>
xmlns=&quot;<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>&quot;&gt;&lt;doNotDisturbOn&gt;true&lt;/doNotDisturbOn&gt;&lt;/SetDoNotDisturb&gt;<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: &lt;<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>&gt;;tag=2420321046<br>
    To: &lt;<a href="mailto:sip%3A1000@192.168.1.175">sip:1000@192.168.1.175</a>&gt;;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: &lt;<a href="http://sip:1000@192.168.1.106:5062" target="_blank">sip:1000@192.168.1.106:5062</a>&gt;<br>
    Authorization: Digest username=&quot;1000&quot;, realm=&quot;192.168.1.175&quot;,<br>
nonce=&quot;71a73470-5561-11e4-9781-81e6a6ef6342&quot;,<br>
uri=&quot;<a href="http://sip:1000@192.168.1.175:5060" target="_blank">sip:1000@192.168.1.175:5060</a>&quot;,<br>
response=&quot;4042dfcf7590c1d5187aa4b260275991&quot;, algorithm=MD5,<br>
cnonce=&quot;0a4f113b&quot;, 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>
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;&lt;SetDoNotDisturb<br>
xmlns=&quot;<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>&quot;&gt;&lt;doNotDisturbOn&gt;false&lt;/doNotDisturbOn&gt;&lt;/SetDoNotDisturb&gt;<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>