Could you humor us and get sip traces of the blf working on a reboot w/ asterisk and not working with freeswitch? Put them in <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a> and drop the link in this thread.<div>
<br></div><div>Thanks,</div><div>MC<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 12:33 AM, Patrick Plattes <span dir="ltr">&lt;<a href="mailto:patrick.plattes@niemann-frey.info">patrick.plattes@niemann-frey.info</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi List :-),<br>
<br>
I&#39;m currently switching from Asterisk to FreeSWITCH. It&#39;s really hard<br>
work for an Asterisk user, but using Asterisk becomes more and more<br>
painful even for small installations (less than 100 sip users). I know<br>
FreeSWITCH is not a drop-in replacement for the Asterisk PBX, but I<br>
don&#39;t want to change the behaviour of the PBX for the users.<br>
<br>
It&#39;s a preconception in Germany that the American people like<br>
(especially for the X-mas time) kitsch. Everyone here know the<br>
American houses with a hole bunch of blinking lights. But those<br>
decorated hoses are nothing against our offices! Our phones have up to<br>
136 lights (BLFs). You often have to wear sunglasses at the office ;-)<br>
<br>
A typical usage of BLFs is to check if an agent is a member of the<br>
queue. I&#39;ve build a simple extension to add and delete a member. I can<br>
user &quot;presence in&quot; and &quot;presence out&quot; to enable or disable the BLF,<br>
but there is one big issue. After a reboot of the phone the the user<br>
is still a member of the queue, but the BLF is off. We are using hints<br>
at Asterisk to show the user if he is a member and it works even after<br>
a reboot - with &quot;presence&quot; at FreeSWITCH it works (of cause) not. Does<br>
anyone have an idea how to implement it?<br>
<br>
My current extension is just for testing and so I use mod_fifo. It<br>
shouldn&#39;t be a problem to use mod_callcenter. The phone calls<br>
&quot;queue-the_name_of_the_queue-the_name_of_the_user@pbxdomain&quot; eg.<br>
&quot;queue-sales_de-1000@freeswitch.cust&quot;<br>
<br>
So how implement BLF persistence?<br>
<br>
Thanks,<br>
 Patrick<br>
<br>
<br>
Colourized version: <a href="http://pastebin.com/ufJ7U930" target="_blank">http://pastebin.com/ufJ7U930</a><br>
<br>
<br>
<br>
&lt;extension name=&quot;Queue Management&quot;&gt;<br>
<br>
 &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^queue-(\w+)-(\d+)$&quot; break=&quot;on-false&quot;&gt;<br>
   &lt;action application=&quot;set&quot;<br>
data=&quot;queue_name=${regex(${destination_number}|^queue-(\w+)-(\d+)$|$1)}&quot;<br>
inline=&quot;true&quot;/&gt;<br>
   &lt;action application=&quot;set&quot;<br>
data=&quot;queue_user=${regex(${destination_number}|^queue-(\w+)-(\d+)$|$2)}&quot;<br>
inline=&quot;true&quot;/&gt;<br>
 &lt;/condition&gt;<br>
<br>
 &lt;condition field=&quot;${fifo(list ${queue_name}@${domain_name})}&quot;<br>
expression=&quot;${queue_user}&quot;&gt;<br>
   &lt;action application=&quot;answer&quot;/&gt;<br>
   &lt;action application=&quot;set&quot; data=&quot;result=${fifo_member(del<br>
${queue_name}@${domain_name}<br>
{fifo_member_wait=nowait}user/${queue_user} )}&quot;/&gt;<br>
   &lt;action application=&quot;log&quot; data=&quot;INFO Delete FIFO agent result: ${result}&quot;/&gt;<br>
   &lt;action application=&quot;log&quot; data=&quot;INFO User Logout: ${user_name}&quot;/&gt;<br>
   &lt;action application=&quot;sleep&quot; data=&quot;600&quot;/&gt;<br>
   &lt;action application=&quot;playback&quot; data=&quot;ivr/ivr-you_are_now_logged_out.wav&quot;/&gt;<br>
   &lt;action application=&quot;set&quot; data=&quot;result=${presence(out<br>
queue-${queue_name}-${queue_user}@${domain_name} inuse inuse)}&quot;/&gt;<br>
   &lt;action application=&quot;log&quot; data=&quot;INFO Presence OUT ${result}&quot;/&gt;<br>
   &lt;action application=&quot;hangup&quot;/&gt;<br>
<br>
   &lt;anti-action application=&quot;answer&quot;/&gt;<br>
   &lt;anti-action application=&quot;set&quot; data=&quot;result=${fifo_member(add<br>
${queue_name}@${domain_name}<br>
{fifo_member_wait=nowait}user/${queue_user} )}&quot;/&gt;<br>
   &lt;anti-action application=&quot;log&quot; data=&quot;INFO Add FIFO agent result: ${result}&quot;/&gt;<br>
   &lt;anti-action application=&quot;log&quot; data=&quot;INFO User Login: ${user_name}&quot;/&gt;<br>
   &lt;anti-action application=&quot;sleep&quot; data=&quot;600&quot;/&gt;<br>
   &lt;anti-action application=&quot;playback&quot;<br>
data=&quot;ivr/ivr-you_are_now_logged_in.wav&quot;/&gt;<br>
   &lt;anti-action application=&quot;set&quot; data=&quot;result=${presence(in<br>
queue-${queue_name}-${queue_user}@${domain_name} inuse inuse)}&quot;/&gt;<br>
   &lt;anti-action application=&quot;log&quot; data=&quot;INFO Presence IN ${result}&quot;/&gt;<br>
   &lt;anti-action application=&quot;hangup&quot;/&gt;<br>
 &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<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></div><br></div>