Janu Mukherjee
2010-Jul-27 12:12 UTC
[asterisk-users] How to transfer a call to operator using FAGI asterisk
Hi, I have xlite client registered with a user. Now i dial an extension say 1500 which has the dial plan as follows. exten==>1500,1,AGI("localhost//hello.agi") So when i dial extenstion 1500 the script hello.agi is invoked which in turn plays a welcome message. I now want to transfer the call now to operator. How can i achieve this???Please help me in this regard Thanks & Regards, Jahnavi. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100727/9888426f/attachment.htm
Tzafrir Cohen
2010-Jul-27 13:30 UTC
[asterisk-users] How to transfer a call to operator using FAGI asterisk
On Tue, Jul 27, 2010 at 05:42:01PM +0530, Janu Mukherjee wrote:> Hi, > > I have xlite client registered with a user. Now i dial an extension say 1500 > which > has the dial plan as follows. > exten==>1500,1,AGI("localhost//hello.agi")Obviously this is not the dialplan you have, as this would fail to work.> So when i dial extenstion 1500 the script hello.agi is invoked which in turn > plays a welcome message. I now want to transfer the call now to operator.The operator is? Context? Extension? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Miguel Molina
2010-Jul-27 14:06 UTC
[asterisk-users] How to transfer a call to operator using FAGI asterisk
El 27/07/10 07:12, Janu Mukherjee escribi?:> > Hi, > > I have xlite client registered with a user. Now i dial an extension > say 1500 which > has the dial plan as follows. > exten==>1500,1,AGI("localhost//hello.agi") > > So when i dial extenstion 1500 the script hello.agi is invoked which > in turn > plays a welcome message. I now want to transfer the call now to operator. > How can i achieve this???Please help me in this regard > Thanks & Regards, > Jahnavi.Ok so you read Tzafrir's link hehe... not so urgent huh? This is easy, if you want to do this inside the AGI, use the AGI commands "set context", "set extension" and "set priority" to set where you want the call to continue when the AGI finishes. If you use a library to handle the AGI communication like Asterisk-Java or PHPAGI, there are one line commands to achieve this. Finally, if you don't have control of your AGI and you need to make the transfer outside the AGI, simply do a Goto after the AGI to transfer the call where you need. Even asterisk itself gives you help: *CLI> agi show set context *CLI> agi show set extension *CLI> agi show set priority Cheers, -- Ing. Miguel Molina Grupo de Tecnolog?a Millenium Phone Center