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 <[email protected]> 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
>
--
_____________________________________________________________________
-- 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