<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Or maybe even share the script as a recipe?<br><br>Sent from my iPhone</div><div><br>On Apr 14, 2013, at 4:08 AM, "Dave R. Kompel" &lt;<a href="mailto:drk@drkngs.net">drk@drkngs.net</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style>
<div>This is great info, but what I think what he was asking is how to make the PRESENCE_OUT. It's one of the things I have not been able to figure out from the wiki... Maybe you could give an example?</div>
<div>&nbsp;</div>
<div>--Dave</div><br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<hr>
<b>From:</b> Colin Mason [<a href="mailto:cmason@frontiernetworks.ca">mailto:cmason@frontiernetworks.ca</a>]<br><b>To:</b> FreeSWITCH Users Help [<a href="mailto:freeswitch-users@lists.freeswitch.org">mailto:freeswitch-users@lists.freeswitch.org</a>]<br><b>Sent:</b> Sat, 13 Apr 2013 22:15:05 -0700<br><b>Subject:</b> Re: [Freeswitch-users] Setting custom presence/BLF<br><br>Yes this can be done. I used this for a call centre application with Linksys 504G phones. I wrote a python script that is always running and uses ESL to listen for certain events and then changes the color/status of the BLF depending on whether the agent is logged in or out of the mod_callcenter queue.<br><br>I listen for 2 custom events that are called from the dialplan:<br>&lt;action application="event" data="Event-Subclass=blf::red,Event-Name=CUSTOM,username=${caller_id_number}"/&gt;<br><br>blf::green<br>blf::red<br><br>I also listen for 2 normal events:<br><br>sofia::register<br>PRESENCE_PROBE<br><br>When one of the custom BLF events is received I craft a PRESENCE_OUT events which sends a NOTIFY to the phones and changes the BLF color. <br><br>The reason I have to listen to the register and presence_probe events is because FreeSWITCH will override the BLF if I don't. When I receive one of these events I use mod_callcenter API commands to check if the agent is logged in or out and change the color of the BLF accordingly with a PRESENCE_OUT (notify) event.<br><br>Hope this helps.<br><br>Colin<br><br><br><br>-----Original Message-----<br>From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of François<br>Sent: Friday, April 12, 2013 7:03 AM<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Subject: [Freeswitch-users] Setting custom presence/BLF<br><br>Hello,<br><br>Is it possible to modify the presence/BLF status of a specific directory user, or of a virtual one?<br><br>Can it be done with ESL + custom presence event? Is there an API to check/set presence status of a user (to use with an empty "virtual" user just for BLF light)?<br><br>The purpose would be to control BLF lights on the phones to show custom status like:<br>- show presence of endpoints connected to another FS<br>- light up if at least one of several phones (department) is in a call<br>- light up if coffee is ready<br>- ...<br><br>Thanks,<br>François.<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 <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-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><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-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br></blockquote>
<style>
</style>

<div>&nbsp;</div>
<div>&nbsp;</div></div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>