[asterisk-users] Dial-out via AMI

Steve Totaro stotaro at totarotechnologies.com
Thu Apr 23 17:19:56 CDT 2009


On Thu, Apr 23, 2009 at 6:11 PM, Matt Riddell <lists at venturevoip.com> wrote:

> On 24/04/2009 2:24 a.m., Nhadie wrote:
> > Hi,
> >
> > i'm currently using Originate command on AMI, i can call a certain
> > channel like a SIP user SIP/1000 then once 1000 is answered it dials out
> > to amobile or landline.
> >
> > Would just like to know if i can use AMI to dialout to a mobile or
> > landline first (instead of SIP user) and once answered, dial another
> > mobile or landline again.
> >
> > If not is it possible to call a macro from the AMI? i think i can
> > probably use AGI for this, but i don't know if i can call a macro from
> > the AMI command.
>
> Asterisk will always dial the channel first then the
> context/extension/application etc.
>
> Couple of things to bear in mind - you won't be able to tell if the call
> is answered if you are using analogue lines.
>
> Action: Originate
> Channel: Zap/g1/12345
> Context: extensions
> Extension: 1000
> Priority: 1
>
> The above will call 12345 and when connected (either when the call
> starts with analogue or when it is connected with digital) it will go to
> extension 1000 in the context extensions, where you would have something
> like:
>
> [extensions]
> exten => _1XXX,1,Dial(SIP/${EXTEN})
>
> --
> Kind Regards,
>
> Matt Riddell
> Director
> _______________________________________________
>
> http://www.venturevoip.com (Great new VoIP end to end solution)
> http://www.venturevoip.com/news.php (Daily Asterisk News - html)
> http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
>
>

A much more scalable way to do this is to create and then FTP or move .call
files to the proper directory.  Depends how much you plan on banging on the
AMI.

-- 
Thanks,
Steve Totaro
+18887771888 (Toll Free)
+12409381212 (Cell)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090423/975d1343/attachment-0001.htm 


More information about the asterisk-users mailing list