Re: [asterisk-users] bridge 2 calls
I gues understood his email wrong. Seemed to be that he wante to make 2 calls via the web and bridge them. - Original Message - From: C. Savinovich c.savinov...@itntelecom.com To: 'Asterisk Users Mailing List - Non-Commercial Discussion' asterisk-users@lists.digium.com Sent: Thursday, January 15, 2009 2:46 AM Subject: Re: [asterisk-users] bridge 2 calls None of these examples actually create a 3-way call, which is, unless I am mistaken, the original request. An incoming/outgoing call gets bridged to a local channel alright, but then how do you bridge that call to yet another call?. I did try some alternatives and the only way I found is by using a meeting room. Not too elegant in my opinion although it works nicely. If anyone knows of a better way please tell me. CS -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dovid Bender Sent: Wednesday, January 14, 2009 6:45 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] bridge 2 calls I use post variables. I found this on the web. Forgot where I got it from (sorry that I can't give you credit). ?php //Connect to the Asterisk Manager $socket = fsockopen(127.0.0.1,5038, $errno, $errstr); fputs($socket, Action: Login\r\n); fputs($socket, UserName: username\r\n); fputs($socket, Secret: password\r\n); fputs($socket, Events: off\r\n\r\n); fputs($socket, \r\n\r\n); fputs($socket, Action: Originate\r\n); fputs($socket, Channel: SIP/.$_POST['first_call'].@my_peer\r\n); fputs($socket, Context: mycontext\r\n); fputs($socket, Exten: .$_POST['local_exten'].\r\n); fputs($socket, Priority: 1\r\n); fputs($socket, Callerid: 5551212\r\n); fputs($socket, Timeout: 10\r\n); fputs($socket, Variable: FOO=.$my_var.\r\n); fputs($socket, \r\n\r\n); fputs($socket, \r\n); fputs($socket, Action: Logoff\r\n\r\n); fclose($socket); ? - Original Message - From: Nick Wolf new...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, January 06, 2009 12:18 PM Subject: Re: [asterisk-users] bridge 2 calls I am also interested in establishing a three way conversation using a simple webpage. I wonder if anyone can provide some help on that. On Tue, Jan 6, 2009 at 7:29 AM, amit mehta amit.magn...@gmail.com wrote: Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
Thanks all. I think click to call can fulfill my purpose. On Thu, Jan 15, 2009 at 6:10 PM, Dovid Bender asteriskus...@dovid.net wrote: I gues understood his email wrong. Seemed to be that he wante to make 2 calls via the web and bridge them. - Original Message - From: C. Savinovich c.savinov...@itntelecom.com To: 'Asterisk Users Mailing List - Non-Commercial Discussion' asterisk-users@lists.digium.com Sent: Thursday, January 15, 2009 2:46 AM Subject: Re: [asterisk-users] bridge 2 calls None of these examples actually create a 3-way call, which is, unless I am mistaken, the original request. An incoming/outgoing call gets bridged to a local channel alright, but then how do you bridge that call to yet another call?. I did try some alternatives and the only way I found is by using a meeting room. Not too elegant in my opinion although it works nicely. If anyone knows of a better way please tell me. CS -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dovid Bender Sent: Wednesday, January 14, 2009 6:45 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] bridge 2 calls I use post variables. I found this on the web. Forgot where I got it from (sorry that I can't give you credit). ?php //Connect to the Asterisk Manager $socket = fsockopen(127.0.0.1,5038, $errno, $errstr); fputs($socket, Action: Login\r\n); fputs($socket, UserName: username\r\n); fputs($socket, Secret: password\r\n); fputs($socket, Events: off\r\n\r\n); fputs($socket, \r\n\r\n); fputs($socket, Action: Originate\r\n); fputs($socket, Channel: SIP/.$_POST['first_call'].@my_peer\r\n); fputs($socket, Context: mycontext\r\n); fputs($socket, Exten: .$_POST['local_exten'].\r\n); fputs($socket, Priority: 1\r\n); fputs($socket, Callerid: 5551212\r\n); fputs($socket, Timeout: 10\r\n); fputs($socket, Variable: FOO=.$my_var.\r\n); fputs($socket, \r\n\r\n); fputs($socket, \r\n); fputs($socket, Action: Logoff\r\n\r\n); fclose($socket); ? - Original Message - From: Nick Wolf new...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, January 06, 2009 12:18 PM Subject: Re: [asterisk-users] bridge 2 calls I am also interested in establishing a three way conversation using a simple webpage. I wonder if anyone can provide some help on that. On Tue, Jan 6, 2009 at 7:29 AM, amit mehta amit.magn...@gmail.com wrote: Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
I use post variables. I found this on the web. Forgot where I got it from (sorry that I can't give you credit). ?php //Connect to the Asterisk Manager $socket = fsockopen(127.0.0.1,5038, $errno, $errstr); fputs($socket, Action: Login\r\n); fputs($socket, UserName: username\r\n); fputs($socket, Secret: password\r\n); fputs($socket, Events: off\r\n\r\n); fputs($socket, \r\n\r\n); fputs($socket, Action: Originate\r\n); fputs($socket, Channel: SIP/.$_POST['first_call'].@my_peer\r\n); fputs($socket, Context: mycontext\r\n); fputs($socket, Exten: .$_POST['local_exten'].\r\n); fputs($socket, Priority: 1\r\n); fputs($socket, Callerid: 5551212\r\n); fputs($socket, Timeout: 10\r\n); fputs($socket, Variable: FOO=.$my_var.\r\n); fputs($socket, \r\n\r\n); fputs($socket, \r\n); fputs($socket, Action: Logoff\r\n\r\n); fclose($socket); ? - Original Message - From: Nick Wolf new...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, January 06, 2009 12:18 PM Subject: Re: [asterisk-users] bridge 2 calls I am also interested in establishing a three way conversation using a simple webpage. I wonder if anyone can provide some help on that. On Tue, Jan 6, 2009 at 7:29 AM, amit mehta amit.magn...@gmail.com wrote: Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
None of these examples actually create a 3-way call, which is, unless I am mistaken, the original request. An incoming/outgoing call gets bridged to a local channel alright, but then how do you bridge that call to yet another call?. I did try some alternatives and the only way I found is by using a meeting room. Not too elegant in my opinion although it works nicely. If anyone knows of a better way please tell me. CS -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dovid Bender Sent: Wednesday, January 14, 2009 6:45 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] bridge 2 calls I use post variables. I found this on the web. Forgot where I got it from (sorry that I can't give you credit). ?php //Connect to the Asterisk Manager $socket = fsockopen(127.0.0.1,5038, $errno, $errstr); fputs($socket, Action: Login\r\n); fputs($socket, UserName: username\r\n); fputs($socket, Secret: password\r\n); fputs($socket, Events: off\r\n\r\n); fputs($socket, \r\n\r\n); fputs($socket, Action: Originate\r\n); fputs($socket, Channel: SIP/.$_POST['first_call'].@my_peer\r\n); fputs($socket, Context: mycontext\r\n); fputs($socket, Exten: .$_POST['local_exten'].\r\n); fputs($socket, Priority: 1\r\n); fputs($socket, Callerid: 5551212\r\n); fputs($socket, Timeout: 10\r\n); fputs($socket, Variable: FOO=.$my_var.\r\n); fputs($socket, \r\n\r\n); fputs($socket, \r\n); fputs($socket, Action: Logoff\r\n\r\n); fclose($socket); ? - Original Message - From: Nick Wolf new...@gmail.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, January 06, 2009 12:18 PM Subject: Re: [asterisk-users] bridge 2 calls I am also interested in establishing a three way conversation using a simple webpage. I wonder if anyone can provide some help on that. On Tue, Jan 6, 2009 at 7:29 AM, amit mehta amit.magn...@gmail.com wrote: Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
HI... I found that there is a cmd called, bridge in 1.6. Does it work what I expect? How can I use it if it works as I can't find any information about it in web? On Tue, Jan 6, 2009 at 6:18 PM, Nick Wolf new...@gmail.com wrote: I am also interested in establishing a three way conversation using a simple webpage. I wonder if anyone can provide some help on that. On Tue, Jan 6, 2009 at 7:29 AM, amit mehta amit.magn...@gmail.com wrote: Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
I am also interested in establishing a three way conversation using a simple webpage. I wonder if anyone can provide some help on that. On Tue, Jan 6, 2009 at 7:29 AM, amit mehta amit.magn...@gmail.com wrote: Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] bridge 2 calls
Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
Check out the Manager interface. Rilawich Ango wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Alex Balashov Evariste Systems Web: http://www.evaristesys.com/ Tel: (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775 ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
On Tuesday 06 January 2009 00:11:22 Rilawich Ango wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Please see sample.call in the Asterisk source directory. -- Tilghman ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] bridge 2 calls
Hi Rilawich, I worked recently on it and that is why can give you the idea how i achived it. You can write an PHP script to get the number and name of the customer.You can phpself to the script.Then you can use an API script to use that number to orignate the call.The channel will be used to call the asterisk internal agent and the other line will call the number that was input by the customer and bridge the call. Hope this might help you. Regards, Amit Mehta Cell: +91 9898340962 On Tue, Jan 6, 2009 at 11:41 AM, Rilawich Ango maillist...@gmail.com wrote: Hi all, I want to build a web page for user to input a phone number. Then, the number will input to asterisk and it will makes call. At that moment, asterisk will make another call to a internal ext. Finally asterisk will bridge 2 calls together for conversion. Does asterisk can do it? How? Thanks, Ango ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users