[Freeswitch-users] howto originate fs call from webapp (python)

Alexander de Greiff alexander at degreiff.com
Tue Feb 24 13:09:50 PST 2009


hi all,

i come from asterisk an i am new to freeswitch. after my with days with freeswitch i am very excited!

but trying to migrate our deployment i have three challenges. one of them is:

i need to call freeswitch from a webapp (e.g. python) and pass number1 and number2. i then need freeswitch to call number1. as soon as it is picked up say a short confirmaton text, call number2 and bridge the two.

my first approach was to call via xml_rpc like described in the wiki but when i call like

 server.freeswitch.api("originate","sofia/gategay/gateway1/{number1} &bridge(sofia/gateway/gateway2/{number2})")

but in this case both numbers are called in parallel and the first number to pick up gets a ringback tone until the other number picks up. how can i get the sequence described above?

thanks for your help
alex




More information about the FreeSWITCH-users mailing list