[Freeswitch-users] Bridge destination returned from a python script?

Anthony Minessale anthony.minessale at gmail.com
Tue Jan 20 08:49:26 PST 2009


regardless of what you execute, if the execute is over and the call has not
been hungup by the app
it's considered success.  So you should be able to do a python script as
well just be sure to hangup on anything that does not meet the criteria.


On Mon, Jan 19, 2009 at 6:20 PM, Brian Deacon <bdeacon at highergear.com>wrote:

> Greetings my soon-to-be-BFF's  :)
>
> After the last 6 weeks or so thrashing about in the land of Asterisk, I
> must say I'm quite impressed with what I'm learning about FreeSwitch.
>
> So the scenario I'm trying to deal with is bridging a call between two
> not-internal endpoints where the numbers to connect are determined by
> database-fed business logic.
>
> The recipe here is very close to what I need:
>
> http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#exec_in_answer_confirm
>
> Except that I'm a language snob and would greatly prefer python to
> javascript.  :)
>
> So my minor question is can this line:
> <action application="set" data="group_confirm_file=javascript test.js"/>
> Become this line:
> <action application="set" data="group_confirm_file=python foo.bar.baz"/>
>
> But javascript isn't a deal-breaker.  I have two bridging scenarios that
> were too tricky for me in asterisk land.  (And my apologies, I'm new to
> telephony, so I don't have the lingo down).  Our FS server would be
> reachable by multiple 800 numbers.  Based on the number that was dialed
> to reach our FS server, we would look up an external phone number +
> extension to be part 1 of a bridge (which we would use the
> group_confirm_file script to make sure we had gotten past the IVR).  So
> for that scenario, how would I accomplish something like:
> <action application="bridge" data="
> ${someVariableSetByScript}"/>
> Can my foo.bar.baz script make a session.setVariable call that I could
> drop into data=""?
>
> My other scenario is similar, but we need to externally signal the FS
> server to place a call to phone + extension, confirm it was connected,
> and then bridge it to a DID.  Is XmlRpc the best (only?) way to poke FS
> into doing something?
>
> Thanks muchly!
>
> Brian
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090120/ba45af64/attachment-0002.html 


More information about the FreeSWITCH-users mailing list