Creating a dialer with Event socket
Dialer means an FS that calls to the number and plays some sounds for him/her and returns back him/her responses(interactive Dialplans). I try to make a dialer with PHP but FS results me: 2013-03-02 22:51:59.882940 [NOTICE] switch_channel.c:968 New Channel sofia/sipinterface_1/223 [7482c392-836e-11e2-8fcd-cdbbeee93600] 2013-03-02 22:52:00.382972 [NOTICE] sofia.c:6381 Hangup sofia/sipinterface_1/223 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE] 2013-03-02 22:52:00.403240 [NOTICE] switch_core_session.c:1517 Session 35 (sofia/sipinterface_1/223) Ended 2013-03-02 22:52:00.403240 [NOTICE] switch_core_session.c:1521 Close Channel sofia/sipinterface_1/223 [CS_DESTROY] My php code is: $this->_fs = new ESLconnection('192.168.54.68', '8021', 'ClueCon'); $eslEvent = $this->_fs->sendRecv('bgapi originate {origination_caller_id_name=Richard-Albuquerque,origination_caller_id_number=1001,ignore_early_media=true}sofia/gateway/trunk_2/223 228') What is the problem? Can i create a dialer with PHP and Event socket?
You are making an asynchronous call (bgapi), how are you processing the messages returned by FS? You can look at ICTDialer for an example of what you are trying to do. Guillermo Sent from my iPhone On 02/03/2013, at 13:11, Sayyed Mohammad Emami Razavi <emamirazavi@gmail.com> wrote:
Dialer means an FS that calls to the number and plays some sounds for him/her and returns back him/her responses(interactive Dialplans). I try to make a dialer with PHP but FS results me: 2013-03-02 22:51:59.882940 [NOTICE] switch_channel.c:968 New Channel sofia/sipinterface_1/223 [7482c392-836e-11e2-8fcd-cdbbeee93600] 2013-03-02 22:52:00.382972 [NOTICE] sofia.c:6381 Hangup sofia/sipinterface_1/223 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE] 2013-03-02 22:52:00.403240 [NOTICE] switch_core_session.c:1517 Session 35 (sofia/sipinterface_1/223) Ended 2013-03-02 22:52:00.403240 [NOTICE] switch_core_session.c:1521 Close Channel sofia/sipinterface_1/223 [CS_DESTROY]
My php code is: $this->_fs = new ESLconnection('192.168.54.68', '8021', 'ClueCon'); $eslEvent = $this->_fs->sendRecv('bgapi originate {origination_caller_id_name=Richard-Albuquerque,origination_caller_id_number=1001,ignore_early_media=true}sofia/gateway/trunk_2/223 228')
What is the problem? Can i create a dialer with PHP and Event socket? _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Guillermo Ruiz Camauer
-
Sayyed Mohammad Emami Razavi