[Freeswitch-users] Creating a dialer with Event socket

Michael Collins msc at freeswitch.org
Sun Mar 3 10:03:11 MSK 2013


On Sat, Mar 2, 2013 at 9:08 PM, Sayyed Mohammad Emami Razavi <
emamirazavi at gmail.com> wrote:

> Your answer is not helpful. Please describe me more helpful and answer my
> questions. Assume i use ictdialer! where is my answer? Why does FS tell me
> that notice and why did not my code work correctly. BTW i can program with
> LUA. Answer my question for more clarity. Thanks.
>
> His question about how you're handling events from FreeSWITCH is valid,
but it probably isn't the next step in the debugging process.

The first thing you need to do is to manually enter the the originate line
in fs_cli and confirm that it works:
bgapi originate
{origination_caller_id_name=Richard-Albuquerque,origination_caller_id_number=1001,ignore_early_media=true}sofia/gateway/trunk_2/223
228

If that works properly then open a second fs_cli and monitor events there.
Enter these commands to make your fs_cli session show events:
/log 0
/event plain all

That will spit out all events. You can narrow that down with the /filter
command if you wish, but I would make sure you know which events to filter
for before you do that. Capture the output in this session of fs_cli and
then go back to the other session of fs_cli and make your bgapi call again.
Once the call is successful then stop the capture and save that.

Next, set up the fs_cli with event monitor and then run your PHP script.
Capture all the events that are generated and compare them to the working
example. If you can find out what is different between the working and
non-working logs then you will at least know where to look next for the fix.

-MC

-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130302/50d7e1c6/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list