Amar Akshat
2011-Nov-15 06:01 UTC
[asterisk-users] Calling an independent gateway from asterisk
Hello, I have a testing scenario at hand. I want to make a call from Asterisk CLI or AMI to an external network gateway. Is this possible. Let me explain the use case. Asterisk server (say 192.168.5.10) has few registered endpoints or softphone. Now an external gateway (say my-example.com or XXX.XXX.XXX.XXX:5060), listening for SIP invites, but this gateway is not registered with Asterisk, can I send out SIP invites (call) to this external gateway, without having to register on Asterisk. -- Thank you... Amar Akshat Please excuse any spelling mistakes, as this email was sent from a "not so good" mobile device.
Sammy Govind
2011-Nov-15 06:13 UTC
[asterisk-users] Calling an independent gateway from asterisk
Hey, Though your requirements are unclear and below may not exactly fit your specs unless you give some more usage details. if your gateway requires no authentication, yes you can do this by writing a dialplan extension like below exten => calling-togw,1,NOOP(I'll be getting some variables from AMI caller) same => n,DIAL(SIP/${CALLTHIS}@my-example.com) Now, in the AMI script you need to do the following. 1- Connect to asterisk, 2- Set the variable CALLTHIS as the destination you want to dial-out 3- use the Originate-AMI<http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate>action properly. Regards, Sammy On Tue, Nov 15, 2011 at 11:01 AM, Amar Akshat <amar.akshat at gmail.com> wrote:> Hello, > I have a testing scenario at hand. I want to make a call from Asterisk > CLI or AMI to an external network gateway. Is this possible. > Let me explain the use case. > > Asterisk server (say 192.168.5.10) has few registered endpoints or > softphone. > Now an external gateway (say my-example.com or XXX.XXX.XXX.XXX:5060), > listening for SIP invites, but this gateway is not registered with > Asterisk, > > can I send out SIP invites (call) to this external gateway, without > having to register on Asterisk. > > -- > > Thank you... > > Amar Akshat > > Please excuse any spelling mistakes, as this email was sent from a > "not so good" mobile device. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111115/a3dad373/attachment.htm>
Bruce Ferrell
2011-Nov-15 07:36 UTC
[asterisk-users] Calling an independent gateway from asterisk
Amar, In general, gateways don't register. They are simply defined as a peer and calls are routed to them in the dialplan. When I do this I usually use the local channel to get to the dialing contexts. Get in touch if you need a more detailed example Bruce Ferrell On 11/14/2011 10:01 PM, Amar Akshat wrote:> Hello, > I have a testing scenario at hand. I want to make a call from Asterisk > CLI or AMI to an external network gateway. Is this possible. > Let me explain the use case. > > Asterisk server (say 192.168.5.10) has few registered endpoints or softphone. > Now an external gateway (say my-example.com or XXX.XXX.XXX.XXX:5060), > listening for SIP invites, but this gateway is not registered with > Asterisk, > > can I send out SIP invites (call) to this external gateway, without > having to register on Asterisk. >