Asterisk equivalent Bridge() function implementation
Asterisk v1.6.x uses its new Bridge() function to bridge an existing outbound call with a new incoming call. Using AGI with this http://www.pmarks.net/posted_links/google-voice-dialout.agi Google Voice DialOut Python scripts for Asterisk to simulate a WEB click2call, the Asterisk Bridge() function is a perfect tool to let an Asterisk PBX system to transprently bridge its outbound call with an incoming Google Voice call. I sure would like to use the Python scripts on my FS too, but plainly don't have the knowledge on how to do this. Has anyone done this before and can offer some help to achieve this? Thank you. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
look at uuid_bridge API and intercept dial-plan app. On Fri, Jul 16, 2010 at 12:53 PM, mazilo <Nabble@slickdeals.endjunk.com>wrote:
Asterisk v1.6.x uses its new Bridge() function to bridge an existing outbound call with a new incoming call. Using AGI with this http://www.pmarks.net/posted_links/google-voice-dialout.agi Google Voice DialOut Python scripts for Asterisk to simulate a WEB click2call, the Asterisk Bridge() function is a perfect tool to let an Asterisk PBX system to transprently bridge its outbound call with an incoming Google Voice call. I sure would like to use the Python scripts on my FS too, but plainly don't have the knowledge on how to do this. Has anyone done this before and can offer some help to achieve this?
Thank you.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Anthony Minessale wrote:
look at uuid_bridge API and intercept dial-plan app.
Many thanks for your quick response. Being a FS noob, I have no idea how to procced, unfortunately. The closest I could find is from this http://olegh.ath.cx/fs/gvfs.html blog which uses a call parking facility. I hope someone here will be able to at least provide some examples on how to use uuid_bridge API to bridge an outbound call with an incoming Google Voice call using this http://www.pmarks.net/posted_links/google-voice-dialout.agi Google Voice DialOut Python scripts. Thank you. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
On Sat, Jul 17, 2010 at 5:23 AM, mazilo <Nabble@slickdeals.endjunk.com>wrote:
Anthony Minessale wrote:
look at uuid_bridge API and intercept dial-plan app.
Many thanks for your quick response.
Being a FS noob, I have no idea how to procced, unfortunately. The closest I could find is from this http://olegh.ath.cx/fs/gvfs.html blog which uses a call parking facility. I hope someone here will be able to at least provide some examples on how to use uuid_bridge API to bridge an outbound call with an incoming Google Voice call using this http://www.pmarks.net/posted_links/google-voice-dialout.agi Google Voice DialOut Python scripts.
Thank you.
I'm not a big Python guy but it seems to me the script you reference is the opposite of what you've asked for - it originates a call via GV by logging in to the web interface and issuing a click-to-call. Can you rephrase your question, this time without any references to existing scripts? Just list what you are trying to accomplish with general terms. List out the steps of the call flow. We can probably point you in the right direction. My guess is that FreeSWITCH makes this really easy whereas Asterisk makes it really complicated and that you might be expecting this to be a much more involved endeavor than it really is. -MC
mercutioviz wrote:
I'm not a big Python guy but it seems to me the script you reference is the opposite of what you've asked for - it originates a call via GV by logging in to the web interface and issuing a click-to-call. Yes, the Python scripts file will perform a login to a Google Voice site and then emulates a Google Voice click-2-call function to place a call to any PSTN network. Once Google Voice receives such instructions, it will first simultaneously place an outbound call to the phones listed/selected in the Forwards to section on its Settings folder, i.e. a Gizmo5 account configured on a local FreeSWITCH server. When the receiving picks up the phone, then Google Voice will place another outbound call to the destionation number dialed by the click-2-call function. What Asterisk's Bridge() function does is to bridge the incoming calls from Google Voice with the existing (on-going) outbound calls to Google Voice by means of the Python scripts file. I am sure this can be done through FreeSWITCH. However, being a newbie here, this is rather impossible for me to visualize how to write/craft such a dialplan context. I hope someone here will be able to help. If this has been done, I sure will appreciate some pointers to the links to download the dialplan context.
Thank you. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
Mazilo, I personally don't get what you are trying to accomplish. But there is certainly nothing you do with * you won't do with FS. It's quite the opposite :) David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 24/07/2010 à 02:33, mazilo a écrit :
mercutioviz wrote:
I'm not a big Python guy but it seems to me the script you reference is the opposite of what you've asked for - it originates a call via GV by logging in to the web interface and issuing a click-to-call. Yes, the Python scripts file will perform a login to a Google Voice site and then emulates a Google Voice click-2-call function to place a call to any PSTN network. Once Google Voice receives such instructions, it will first simultaneously place an outbound call to the phones listed/selected in the Forwards to section on its Settings folder, i.e. a Gizmo5 account configured on a local FreeSWITCH server. When the receiving picks up the phone, then Google Voice will place another outbound call to the destionation number dialed by the click-2-call function. What Asterisk's Bridge() function does is to bridge the incoming calls from Google Voice with the existing (on-going) outbound calls to Google Voice by means of the Python scripts file. I am sure this can be done through FreeSWITCH. However, being a newbie here, this is rather impossible for me to visualize how to write/ craft such a dialplan context. I hope someone here will be able to help. If this has been done, I sure will appreciate some pointers to the links to download the dialplan context.
Thank you.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... 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
On Fri, Jul 23, 2010 at 5:33 PM, mazilo <Nabble@slickdeals.endjunk.com>wrote:
mercutioviz wrote:
I'm not a big Python guy but it seems to me the script you reference is the opposite of what you've asked for - it originates a call via GV by logging in to the web interface and issuing a click-to-call. Yes, the Python scripts file will perform a login to a Google Voice site and then emulates a Google Voice click-2-call function to place a call to any PSTN network. Once Google Voice receives such instructions, it will first simultaneously place an outbound call to the phones listed/selected in the Forwards to section on its Settings folder, i.e. a Gizmo5 account configured on a local FreeSWITCH server.
Okay, this part makes sense...
When the receiving picks up the phone, then Google Voice will place another outbound call to the destionation number dialed by the click-2-call function.
As does this...
What Asterisk's Bridge() function does is to bridge the incoming calls from Google Voice with the existing (on-going) outbound calls to Google Voice by means of the Python scripts file.
This is where you lost us. What existing call is being bridged to? I count only two calls: from GV back to the user (via Gizmo or whatever contact number the user has) from GV to PSTN (to reach the called party) I'm assuming that the ultimate result of the above is that the user will be talking to the destination: GV user <--> Called party Where is the outgoing call to GV? Is there a third call that we're not aware of? If so, what is its purpose?
I am sure this can be done through FreeSWITCH. However, being a newbie here, this is rather impossible for me to visualize how to write/craft such a dialplan context. I hope someone here will be able to help. If this has been done, I sure will appreciate some pointers to the links to download the dialplan context.
I'm sure it can be done, we just need some clarification. -MC
mercutioviz wrote:
What Asterisk's Bridge() function does is to bridge the incoming calls from Google Voice with the existing (on-going) outbound calls to Google Voice by means of the Python scripts file.
This is where you lost us. What existing call is being bridged to? I count only two calls: from GV back to the user (via Gizmo or whatever contact number the user has) from GV to PSTN (to reach the called party)
I'm assuming that the ultimate result of the above is that the user will be talking to the destination: GV user <--> Called party
Where is the outgoing call to GV? Is there a third call that we're not aware of? If so, what is its purpose? You are right. Let's see if I can manage to explain it better.
When I pick up a phone (connected to a Linksys PAP2v2 unit configured as an extension to my asterisk device) and dial a US PSTN number, one of the dialplans intercepts to execute the Google Voice Dialer scripts file using an AGI function. AGI locally creates (on my asterisk system) a SIP channel ID (SIP/1005-00000049) as shown below while the scripts perform two functions, i.e. to emulate a login process to Google Voice account and to interact with the Google Voice's click2call function to place an outbound call to a US PSTN network (dialed number). When Google Voice receives the click2call action, it performs two calls, i.e. an outbound call to the number listed on the forwarding to folder (in this case, my Gizmo5 number) and then another outbound call to the dialed number (a US PSTN number). The later part will be executed once the former outbound call to my Gizmo5 number has been established between Google Voice and the telephone unit connected to my Linksys PAP2v2 unit (configured as an extension to my asterisk device). When my asterisk system receives the incoming call on its Gizmo5 trunk, the asterisk Bridge() function assosociates and assigns this incoming call to the existing call with a SIP channel ID (SIP/1005-00000049). At this time, I will hear the calling tone (or even busy signals). When the callee party picks up his/her phone, then the conversation starts between the caller and callee (like business as usual). I am sure FreeSWITCH can do this better than Asterisk. The problem with me being a newbie to FreeSWITCH is I don't know how to do this. I am hoping someone who has done this will be able to help. After all, the Google Voice DialOut Python scripts file can be freely downloaded/read from http://www.pmarks.net/posted_links/google-voice-dialout.agi here . -- Launched AGI Script /usr/lib/asterisk/agi-bin/google-voice-dialer.agi <SIP/1005-00000049>AGI Tx >> agi_request: google-voice-dialer.agi <SIP/1005-00000049>AGI Tx >> agi_channel: SIP/1005-00000049 <SIP/1005-00000049>AGI Tx >> agi_language: en <SIP/1005-00000049>AGI Tx >> agi_type: SIP <SIP/1005-00000049>AGI Tx >> agi_uniqueid: 1280239277.95 <SIP/1005-00000049>AGI Tx >> agi_version: 1.6.2.9 <SIP/1005-00000049>AGI Tx >> agi_callerid: 1005 <SIP/1005-00000049>AGI Tx >> agi_calleridname: 11 <SIP/1005-00000049>AGI Tx >> agi_callingpres: 0 <SIP/1005-00000049>AGI Tx >> agi_callingani2: 0 <SIP/1005-00000049>AGI Tx >> agi_callington: 0 <SIP/1005-00000049>AGI Tx >> agi_callingtns: 0 <SIP/1005-00000049>AGI Tx >> agi_dnid: 1404XXXXXXX <SIP/1005-00000049>AGI Tx >> agi_rdnis: unknown <SIP/1005-00000049>AGI Tx >> agi_context: phones <SIP/1005-00000049>AGI Tx >> agi_extension: 1404XXXXXXX <SIP/1005-00000049>AGI Tx >> agi_priority: 13 <SIP/1005-00000049>AGI Tx >> agi_enhanced: 0.0 <SIP/1005-00000049>AGI Tx >> agi_accountcode: <SIP/1005-00000049>AGI Tx >> agi_threadid: 65546 <SIP/1005-00000049>AGI Tx >> agi_arg_1: <USERNAME> <SIP/1005-00000049>AGI Tx >> agi_arg_2: <PASSWORD> <SIP/1005-00000049>AGI Tx >> agi_arg_3: 747XXXXXXX <SIP/1005-00000049>AGI Tx >> agi_arg_4: 404XXXXXXX <SIP/1005-00000049>AGI Tx >> ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
BTW, This actually makes sense now that you spelled it out. Most likely you just need uuid_bridge. If you know the uuid's of the two channels then you can do whatever you want... -MC On Tue, Jul 27, 2010 at 7:46 AM, mazilo <Nabble@slickdeals.endjunk.com>wrote:
mercutioviz wrote:
What Asterisk's Bridge() function does is to bridge the incoming calls from Google Voice with the existing (on-going) outbound calls to Google Voice by means of the Python scripts file.
This is where you lost us. What existing call is being bridged to? I count only two calls: from GV back to the user (via Gizmo or whatever contact number the user has) from GV to PSTN (to reach the called party)
I'm assuming that the ultimate result of the above is that the user will be talking to the destination: GV user <--> Called party
Where is the outgoing call to GV? Is there a third call that we're not aware of? If so, what is its purpose? You are right. Let's see if I can manage to explain it better.
When I pick up a phone (connected to a Linksys PAP2v2 unit configured as an extension to my asterisk device) and dial a US PSTN number, one of the dialplans intercepts to execute the Google Voice Dialer scripts file using an AGI function. AGI locally creates (on my asterisk system) a SIP channel ID (SIP/1005-00000049) as shown below while the scripts perform two functions, i.e. to emulate a login process to Google Voice account and to interact with the Google Voice's click2call function to place an outbound call to a US PSTN network (dialed number). When Google Voice receives the click2call action, it performs two calls, i.e. an outbound call to the number listed on the forwarding to folder (in this case, my Gizmo5 number) and then another outbound call to the dialed number (a US PSTN number). The later part will be executed once the former outbound call to my Gizmo5 number has been established between Google Voice and the telephone unit connected to my Linksys PAP2v2 unit (configured as an extension to my asterisk device). When my asterisk system receives the incoming call on its Gizmo5 trunk, the asterisk Bridge() function assosociates and assigns this incoming call to the existing call with a SIP channel ID (SIP/1005-00000049). At this time, I will hear the calling tone (or even busy signals). When the callee party picks up his/her phone, then the conversation starts between the caller and callee (like business as usual).
I am sure FreeSWITCH can do this better than Asterisk. The problem with me being a newbie to FreeSWITCH is I don't know how to do this. I am hoping someone who has done this will be able to help. After all, the Google Voice DialOut Python scripts file can be freely downloaded/read from http://www.pmarks.net/posted_links/google-voice-dialout.agi here .
-- Launched AGI Script /usr/lib/asterisk/agi-bin/google-voice-dialer.agi <SIP/1005-00000049>AGI Tx >> agi_request: google-voice-dialer.agi <SIP/1005-00000049>AGI Tx >> agi_channel: SIP/1005-00000049 <SIP/1005-00000049>AGI Tx >> agi_language: en <SIP/1005-00000049>AGI Tx >> agi_type: SIP <SIP/1005-00000049>AGI Tx >> agi_uniqueid: 1280239277.95 <SIP/1005-00000049>AGI Tx >> agi_version: 1.6.2.9 <SIP/1005-00000049>AGI Tx >> agi_callerid: 1005 <SIP/1005-00000049>AGI Tx >> agi_calleridname: 11 <SIP/1005-00000049>AGI Tx >> agi_callingpres: 0 <SIP/1005-00000049>AGI Tx >> agi_callingani2: 0 <SIP/1005-00000049>AGI Tx >> agi_callington: 0 <SIP/1005-00000049>AGI Tx >> agi_callingtns: 0 <SIP/1005-00000049>AGI Tx >> agi_dnid: 1404XXXXXXX <SIP/1005-00000049>AGI Tx >> agi_rdnis: unknown <SIP/1005-00000049>AGI Tx >> agi_context: phones <SIP/1005-00000049>AGI Tx >> agi_extension: 1404XXXXXXX <SIP/1005-00000049>AGI Tx >> agi_priority: 13 <SIP/1005-00000049>AGI Tx >> agi_enhanced: 0.0 <SIP/1005-00000049>AGI Tx >> agi_accountcode: <SIP/1005-00000049>AGI Tx >> agi_threadid: 65546 <SIP/1005-00000049>AGI Tx >> agi_arg_1: <USERNAME> <SIP/1005-00000049>AGI Tx >> agi_arg_2: <PASSWORD> <SIP/1005-00000049>AGI Tx >> agi_arg_3: 747XXXXXXX <SIP/1005-00000049>AGI Tx >> agi_arg_4: 404XXXXXXX <SIP/1005-00000049>AGI Tx >>
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... 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
mercutioviz wrote:
BTW,
This actually makes sense now that you spelled it out. Most likely you just need uuid_bridge.
This was exactly pointed out by Anthony Minessale on this response as shown ablove. If you know the uuid's of the two channels then you can do
whatever you want... The problem with a newbie like me is it is very hard trying to understand and/or learn FS without studying from some examples even though the wiki on http://wiki.freeswitch.org/wiki/Mod_commands#uuid_bridge uuid_bridge has explained it (unfortunately, no samples/examples ). Iwas hoping someone here who has implemented this can show me his/her dialplan on how to achieve this.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
buy the book ! ----- Original Message ----- From: "mazilo" <Nabble@slickdeals.endjunk.com> To: <freeswitch-users@lists.freeswitch.org> Sent: Thursday, July 29, 2010 8:27 PM Subject: Re: [Freeswitch-users] Asterisk equivalent Bridge() functionimplementation
mercutioviz wrote:
BTW,
This actually makes sense now that you spelled it out. Most likely you just need uuid_bridge.
This was exactly pointed out by Anthony Minessale on this response as shown ablove.
If you know the uuid's of the two channels then you can do
whatever you want... The problem with a newbie like me is it is very hard trying to understand and/or learn FS without studying from some examples even though the wiki on http://wiki.freeswitch.org/wiki/Mod_commands#uuid_bridge uuid_bridge has explained it (unfortunately, no samples/examples ). Iwas hoping someone here who has implemented this can show me his/her dialplan on how to achieve this.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... 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
Madovsky wrote:
buy the book !
If you already have the book, can you please kindly point to me on which page uuid_bridge is listed, especially with examples to show a newbie how to use it? I failed to find such a listing, let alone the example(s). Thank you. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
Google foo weak with this one it is. http://wiki.freeswitch.org/wiki/Mod_commands#uuid_bridge /b On Jul 30, 2010, at 8:11 AM, mazilo wrote:
If you already have the book, can you please kindly point to me on which page uuid_bridge is listed, especially with examples to show a newbie how to use it? I failed to find such a listing, let alone the example(s).
Thank you.
Brian West wrote:
Google foo weak with this one it is.
Yes and that's exactly what I mentioned above the post by Madovsky who said to buy the book. Unfortunately, information on such a link will not help a newbie like me. As such, I posted to ask for help and am getting no where from experts here, unfortunately. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
I think a basic understanding of FreeSWITCH would assist you so buying the book would actually help you better understand FreeSWITCH. Nobody can help you unless you make some effort and want to learn about FreeSWITCH... we don't have the magic matrix knowledge transporter thingy whopper. /b On Jul 30, 2010, at 9:36 AM, mazilo wrote:
Yes and that's exactly what I mentioned above the post by Madovsky who said to buy the book. Unfortunately, information on such a link will not help a newbie like me. As such, I posted to ask for help and am getting no where from experts here, unfortunately.
Brian West wrote:
I think a basic understanding of FreeSWITCH would assist you ...
Thank you. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
Brian West wrote:
'Do' and 'Listen' should be added to that list.
OK. Thanks for the pointers and will check those out. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
mercutioviz wrote:
If you know the uuid's of the two channels then you can do whatever you want... Exactly. Unfortunately, I don't know how to find out the uuid of the two channels, especially through a dialplan context. If anyone knows and would like to shed some light on this, it sure will help.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Asterisk-equivalent-Bridge-fun... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (6)
-
Anthony Minessale
-
Brian West
-
David Ponzone
-
Madovsky
-
mazilo
-
Michael Collins