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)