[Freeswitch-users] bgapi with two commands one by one

Dmitry Mordovin d.mordovin at dwide.com
Sat Sep 3 20:02:45 MSD 2016


Hello

I want to execute two commands with bgapi, but can't find solution in 
FreeSWITCH manual or google.

bgapi expand originate 
<leg_timeout=30,continue_on_fail=true>[origination_caller_id_name='test']sofia/gateway/first_supplier/12345 at first_supplier|[origination_caller_id_name='test']sofia/gateway/second_supplier/12345 at second_supplier 
00294539; curl http://127.0.0.1/cgi?e=originate_done

I want command 'curl' to be executed after 'originate' done (call 
disconnected).
Like linux shell can run commands one by one, just separate with ';'

Is it possible? If so, how can I do it?




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list