EXECUTE_ON_ANSWER with Bridge
Simple yet complicated issue I've been working on for about 48 hours. I could really use some assistance.... 1. I'm bridging calls via httapi and that is working fine. <execute action="$action" application="bridge" data="sofia/gateway/voipms/2145551212"></execute> 2. I want to be notified at my URL via CURL when, A: The call starts ringing and B: The call is answered. I'm using this code for that: <!-- Get a CURL post once call starts ringing (media begins) --> <!-- <execute application=\"export\" data=\"nolocal:execute_on_media=curl http://myurl.com/test3.php post event=RingRing&\${uuid}&state=\${state}&direction=\${direction}\"></execute> --> <!-- Get a CURL post once leg B answers --> <execute application=\"export\" data=\"nolocal:execute_on_answer=curl http://myurl.com/test3.php post event=RingRing_Answer&\${uuid}&state=\${state}&direction=\${direction}\"></execute> The problem comes because it's a bridge, as far as FreeSWITCH is concerned once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers". There must be a simple way around this, open to suggestions, thanks!
The problem comes because it's a bridge, as far as FreeSWITCH is concerned once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers".
Get second answer is not possible. No way to do it. Please look at monitor_early_media_ring <https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring> May be it will help.
Thanks Sergey, do you have any recommendations on an alternate way to place outbound calls besides bridge? On Thu, Aug 4, 2016 at 10:50 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
The problem comes because it's a bridge, as far as FreeSWITCH is concerned
once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers".
Get second answer is not possible. No way to do it. Please look at monitor_early_media_ring <https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring> May be it will help.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044
In such case it will change gateway and find that not generate answer signal and send signal "Ringing" or "Early media". пт, 5 авг. 2016 г. в 6:56, Don Hawkins <hawkins@hawkinsegroup.com>:
Thanks Sergey, do you have any recommendations on an alternate way to place outbound calls besides bridge?
On Thu, Aug 4, 2016 at 10:50 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
The problem comes because it's a bridge, as far as FreeSWITCH is
concerned once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers".
Get second answer is not possible. No way to do it. Please look at monitor_early_media_ring <https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring> May be it will help.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Also are you sure is answer signal generated by gateway? It may be PBX on remote side that send answer and generate (send) ring note to a-leg. пт, 5 авг. 2016 г. в 7:07, Sergey Safarov <s.safarov@gmail.com>:
In such case it will change gateway and find that not generate answer signal and send signal "Ringing" or "Early media".
пт, 5 авг. 2016 г. в 6:56, Don Hawkins <hawkins@hawkinsegroup.com>:
Thanks Sergey, do you have any recommendations on an alternate way to place outbound calls besides bridge?
On Thu, Aug 4, 2016 at 10:50 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
The problem comes because it's a bridge, as far as FreeSWITCH is
concerned once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers".
Get second answer is not possible. No way to do it. Please look at monitor_early_media_ring <https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring> May be it will help.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Sergey, It's like your thinking what I'm thinking. I just tested and it absolutely is all about the number I'm bridging with, so all said it's actually working properly. Thanks for your help! On Thu, Aug 4, 2016 at 11:08 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
Also are you sure is answer signal generated by gateway?
It may be PBX on remote side that send answer and generate (send) ring note to a-leg.
пт, 5 авг. 2016 г. в 7:07, Sergey Safarov <s.safarov@gmail.com>:
In such case it will change gateway and find that not generate answer signal and send signal "Ringing" or "Early media".
пт, 5 авг. 2016 г. в 6:56, Don Hawkins <hawkins@hawkinsegroup.com>:
Thanks Sergey, do you have any recommendations on an alternate way to place outbound calls besides bridge?
On Thu, Aug 4, 2016 at 10:50 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
The problem comes because it's a bridge, as far as FreeSWITCH is
concerned once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers".
Get second answer is not possible. No way to do it. Please look at monitor_early_media_ring <https://wiki.freeswitch.org/wiki/Variable_monitor_early_media_ring> May be it will help.
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044 ____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044
participants (2)
-
Don Hawkins
-
Sergey Safarov