Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Using Python to open a channel to outgoin


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
francisco.gastiazoro a...
Guest





PostPosted: Wed Oct 29, 2008 2:02 pm    Post subject: [Freeswitch-users] Using Python to open a channel to outgoin Reply with quote

Hi guys,

I what I want to do is based on what one of the register extension dials,
contact another registered user but before bridging both legs i want to play
a file into the egress side, if possible using python

Example:

call Flow:

SIP Phone A --> FreeSwitch --> SIP Phone B.

sequence:

a) SIP PHONE A dials "777"
b) a dialplan is executed based on the user-context, as a condition is
matched, then we starts a script ( python is the one i chose )
c) The scripts starts to run and it need to contact the SIP Phone B. when
the channel to B is open, I need to play a prompt "test.wav" to SIP PHONE B,
when the prompt is over i do the bridging between SIP PHONE A and SIP PHONE
B. If the SIP PHONE B hungs up during the prompt, both channels have to end.

I tried with something like:

newsession = Session("sofia/internal/221144@201.216.201.133")
if ( newsession.ready() ):
newsession.execute("playback","test1.wav")

but it doesn't work...

Do you have some ideas for this... or it is impossible to achieve...

--
View this message in context: http://www.nabble.com/Using-Python-to-open-a-channel-to-outgoing-leg-and-play-a-prompt-tp20233448p20233448.html
Sent from the Freeswitch-users mailing list archive at Nabble.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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services