[asterisk-biz] auto-answering an originated call, dialplan / manager interface problem
Mueller, Alexander
am at a-m-i.de
Sun Nov 29 05:14:09 CST 2009
CS, that's my problem, exactly how you describe it:
>>> but why can't you redirect the AMI Originate to a dialplan script that uses the SipAddHeader?
After lots of experimenting, I now come from AMI into the dialplan by just calling "Action: Command\r\nCommand: console dial #*2000" from the AMI, where #* is the flag for originating (which is handled in the dialplan), and I'm in the dialplan, so far so good. I can set the SIPHeader there an ring the local phone (2000) via "Dial", the local phone takes the call automatically, fine.
But then I have only one leg, I have not yet found out how to connect this first leg inside the dialplan with the second leg.
How can this originating be done, what has to come after Dial in order to establish the outgoing call ?
I have read the description of "Dial()" several times now, hard to understand, it doesn't seem to offer a 2-leg-addressing (internal number and external number).
I also thought about creating call files in the "outgoing" directory, but then again the problem with the missing SIPAddHeader() will lead to failure.
Still unsolved ...
-----Ursprüngliche Nachricht-----
Von: asterisk-biz-bounces at lists.digium.com [mailto:asterisk-biz-bounces at lists.digium.com] Im Auftrag von c.savinovich at itntelecom.com
Gesendet: Samstag, 28. November 2009 03:33
An: asterisk-biz at lists.digium.com
Betreff: Re: [asterisk-biz] auto-answering an originated call, dialplan / manager interface problem
There is nothing like SipAddHeader in the AMI, but why can't you redirect
the AMI Originate to a dialplan script that uses the SipAddHeader?
CS
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-biz mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-biz
More information about the asterisk-biz
mailing list