[asterisk-users] AMI + AGI for outbound click to dial

Matt Riddell lists at venturevoip.com
Mon May 4 22:23:11 CDT 2009


On 5/05/2009 1:10 p.m., J. G. wrote:
> Hey Gang,
> Trying to figure out how I can do the following (have each part working
> individually but drawing a blank on combining)
>
> 1) click on-screen which sends an AMI originate (works fine)
> 2) the originated call is to an internal extension that looks up the
> number to be dialed (works)
> 3) then via Perl, adding in a SIPAddHeader for answer-after=0.. (works
> separate from the above)
>
> What I can't figure out is how I can click on screen, either send an AMI
> originate or something, then have the SIP header added in and have it
> ring back my grandstream to auto-dial back out.

Instead of SIP/x for channel use Local/exten at context/n

where exten is an extension and context a context :)

[context]
exten => _X.,1,Answer()
exten => _X.,2,SipAddHeader(something)
exten => _X.,3,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)



More information about the asterisk-users mailing list