Yes, you're right!! There's a eavesdrop 779 matched first. Thank you so much!<br><br><div class="gmail_quote">On Mon, Jan 18, 2010 at 6:19 PM, Seven Du <span dir="ltr"><<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">from the log you can see that it routed to eavesdrop 779 but not<br>
fifo_in 779 as you expected. In other words, either there are two 779<br>
entries in your dialplan or your fifo_in 779 dialplan not been loaded<br>
into freeswitch. Did you run reloadxml after you edited the dialplan<br>
file?<br>
<div><div></div><div class="h5"><br>
2010/1/18 Jingwei Yang <<a href="mailto:jingwei.yang@gmail.com">jingwei.yang@gmail.com</a>>:<br>
> Yes, I'm able to see the inbound channel created:<br>
><br>
> freeswitch@localhost.localdomain> show channels<br>
> API CALL [show(channels)] output:<br>
> uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,write_codec,write_rate,secure,hostname,presence_id,presence_data<br>
> 6d347eaa-aea8-47e3-b915-8cfdf0f8fd9c,inbound,2010-01-19<br>
> 17:04:22,1263891862,skypiax/interface5,CS_EXECUTE,Jingwei,jingwei.yang,,779,eavesdrop,all,XML,default,L16,16000,L16,16000,,localhost.localdomain,,<br>
><br>
> Hmmm, may I know how you could tell it's a dialplan problem?<br>
><br>
> Regards,<br>
> -Jingwei<br>
><br>
> On Mon, Jan 18, 2010 at 3:25 PM, Seven Du <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br>
>><br>
>> did you happened to run "show channels" ?<br>
>><br>
>> clearly it's a dialplan problem other than a fifo one.<br>
>><br>
>><br>
>> Dialplan: skypiax/interface8 Regex (PASS) [eavesdrop]<br>
>> destination_number(779) =~ /^779$/ break=on-false<br>
>> Dialplan: skypiax/interface8 Action answer()<br>
>> Dialplan: skypiax/interface8 Action<br>
>> set(eavesdrop_indicate_failed=tone_stream://%(500, 0, 320))<br>
>> Dialplan: skypiax/interface8 Action<br>
>> set(eavesdrop_indicate_new=tone_stream://%(500, 0, 620))<br>
>> Dialplan: skypiax/interface8 Action<br>
>> set(eavesdrop_indicate_idle=tone_stream://%(250, 0, 920))<br>
>> Dialplan: skypiax/interface8 Action eavesdrop(all)<br>
>><br>
>><br>
>><br>
>> 2010/1/18 Jingwei Yang <<a href="mailto:jingwei.yang@gmail.com">jingwei.yang@gmail.com</a>>:<br>
>> > Logs submitted: <a href="http://pastebin.freeswitch.org/11836" target="_blank">http://pastebin.freeswitch.org/11836</a><br>
>> ><br>
>> > I was trying to check whether the call had been added into the queue via<br>
>> > telnet, but failed to find the fifo events. Here's my simplified<br>
>> > dialplan:<br>
>> ><br>
>> > <extension name="in_fifo"><br>
>> > <condition field="destination_number" expression="^779$"><br>
>> > <action application="answer"/><br>
>> > <action application="fifo" data="myq in undef undef"/><br>
>> > </condition><br>
>> > </extension><br>
>> ><br>
>> > Please advise where went wrong.<br>
>> ><br>
>> > Thanks and best regards,<br>
>> > -Jingwei<br>
>> ><br>
>> ><br>
>> > On Mon, Jan 18, 2010 at 11:42 AM, Seven Du <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br>
>> >><br>
>> >> better to pastebin your log.<br>
>> >><br>
>> >> 2010/1/18 Jingwei Yang <<a href="mailto:jingwei.yang@gmail.com">jingwei.yang@gmail.com</a>>:<br>
>> >> > Thanks for replying. This is my dialplan<br>
>> >> ><br>
>> >> > <extension name="in_fifo"><br>
>> >> > <condition field="destination_number" expression="^779$"><br>
>> >> > <action application="set" data="fifo_music=$${hold_music}"/><br>
>> >> > <action application="answer"/><br>
>> >> > <action application="fifo" data="myq in undef undef"/><br>
>> >> > </condition><br>
>> >> > </extension><br>
>> >> ><br>
>> >> > And I created a queue in fifo.conf.xml like this<br>
>> >> ><br>
>> >> > <fifo name="myq" importance="0"><br>
>> >> > <!--<member timeout="60" simo="1"<br>
>> >> > lag="20">{member_wait=nowait}user/1005@$${domain}</member>--><br>
>> >> > </fifo><br>
>> >> ><br>
>> >> > However, I'm still not able to see the incoming call get queued.<br>
>> >> ><br>
>> >> > freeswitch@localhost.localdomain> fifo list myq<br>
>> >> > API CALL [fifo(list myq)] output:<br>
>> >> > <fifo_report><br>
>> >> > <fifo name="myq" consumer_count="0" caller_count="0"<br>
>> >> > waiting_count="0"<br>
>> >> > importance="0"><br>
>> >> > <callers></callers><br>
>> >> > <consumers></consumers><br>
>> >> > </fifo><br>
>> >> > </fifo_report><br>
>> >> ><br>
>> >> > I tried both mod_skypiax and mod_dingaling, but with the same result.<br>
>> >> ><br>
>> >> > Regards,<br>
>> >> > -Jingwei<br>
>> >> ><br>
>> >> > On Sun, Jan 17, 2010 at 11:37 AM, Seven Du <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> 2010/1/15, Jingwei Yang <<a href="mailto:jingwei.yang@gmail.com">jingwei.yang@gmail.com</a>>:<br>
>> >> >> > Hi Guys,<br>
>> >> >> ><br>
>> >> >> > I'm implementing an ACD system using ESL and mod_fifo. Based on<br>
>> >> >> > what<br>
>> >> >> > Anthony<br>
>> >> >> > suggested in this post:<br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > <a href="http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg01652.html" target="_blank">http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg01652.html</a><br>
>> >> >> ><br>
>> >> >> > *You can make an event socket application that listens for FIFO<br>
>> >> >> > events<br>
>> >> >> > and<br>
>> >> >> > keeps track of what FIFOs are currently busy and when there are<br>
>> >> >> > people<br>
>> >> >> > waiting you can have that script generate a call to a group of SIP<br>
>> >> >> > phones so<br>
>> >> >> > when the first one answers, it sends them in as an agent where<br>
>> >> >> > they<br>
>> >> >> > can<br>
>> >> >> > field the calls.<br>
>> >> >> > *<br>
>> >> >> ><br>
>> >> >> > 1. How should I handle the concurrent issues? If I bridge a user<br>
>> >> >> > to<br>
>> >> >> > two<br>
>> >> >> > agents and both of them answers, how does FS take care of this<br>
>> >> >> > situation?<br>
>> >> >> > Will a slower agent get a busy tone automatically?<br>
>> >> >> ><br>
>> >> >><br>
>> >> >> I think it just follow the standard originate dialstring rules.<br>
>> >> >><br>
>> >> >> > 2. If the socket application is brought up after some users have<br>
>> >> >> > called<br>
>> >> >> > in,<br>
>> >> >> > what command should I use to check the busy queues? fifo list?<br>
>> >> >> ><br>
>> >> >> Yes. Perhaps you can also check the fifo db, either sqlite or ODBC.<br>
>> >> >><br>
>> >> >> > 3. Am I using fifo list and fifo count correctly?<br>
>> >> >> ><br>
>> >> >> > here's the testing dialplan:<br>
>> >> >> ><br>
>> >> >> > <extension name="in_fifo"><br>
>> >> >> > <condition field="destination_number" expression="^779$"><br>
>> >> >> > <action application="set"<br>
>> >> >> > data="fifo_music=$${hold_music}"/><br>
>> >> >> > <action application="answer"/><br>
>> >> >> > <action application="fifo" data="*myq *in"/><br>
>> >> >> > </condition><br>
>> >> >> > </extension><br>
>> >> >> ><br>
>> >> >> > when a call comes in and gets queued, these are the results of<br>
>> >> >> > some<br>
>> >> >> > commands<br>
>> >> >> > I tried.<br>
>> >> >> ><br>
>> >> >> > freeswitch@localhost.localdomain> fifo list<br>
>> >> >> > API CALL [fifo(list)] output:<br>
>> >> >> > <fifo_report><br>
>> >> >> > <fifo name="<a href="mailto:cool_fifo@192.168.1.104">cool_fifo@192.168.1.104</a>" consumer_count="0"<br>
>> >> >> > caller_count="0"<br>
>> >> >> > waiting_count="0" importance="0"><br>
>> >> >> > <callers></callers><br>
>> >> >> > <consumers></consumers><br>
>> >> >> > </fifo><br>
>> >> >> > </fifo_report><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > freeswitch@localhost.localdomain> fifo list myq<br>
>> >> >> > API CALL [fifo(list myq)] output:<br>
>> >> >> > <fifo_report></fifo_report><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > freeswitch@localhost.localdomain> fifo count myq<br>
>> >> >> > API CALL [fifo(count myq)] output:<br>
>> >> >> > none<br>
>> >> >> ><br>
>> >> >> > It seems *myq* doesn't get created at all? Please enlighten.<br>
>> >> >> ><br>
>> >> >> > Thanks and best regards,<br>
>> >> >> > -Jingwei<br>
>> >> >> ><br>
>> >> >> AFAIK, thant means the channel didn't queued in. Did you see any<br>
>> >> >> error<br>
>> >> >> logs? I think you need to remove the stars in <action<br>
>> >> >> application="fifo" data="*myq *in"/>.<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>
>> >> >><br>
>> >> >><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>
>> >> ><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>
>> >> ><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>
>> >> ><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>
>> >><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>
>> ><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>
>> ><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>
><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>
><br>
><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>
</div></div></blockquote></div><br>