29 nov 2009 kl. 12.14 skrev Mueller, Alexander:

> 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 ...
> 

You have to learn about the local channel and how to use that from Originate. I 
think that's covered in the Asterisk book, downloadable from asteriskdocs.org 
and in many examples on the web.

Secondly, this mailing list is for Asterisk development - new code and issues 
with the Asterisk code. Your questions would get a faster and better answer on 
asterisk-users. Even if it's about development, it's about development of your 
own app, not about Asterisk.

Good luck in your Asterisk adventures!

Regards
/Olle
_______________________________________________
--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

Reply via email to