Check out the call files. Easier to use and debug.

You can also telnet to port 5038 and do the AMI commands yourself to test.

Sent from my iPhone

On 2009-12-06, at 12:07 PM, Bruce N <[email protected]> wrote:


Hi Guys,

Just playing around to get php to dial an outside number through the broswer and to play a custom message.

I am using floAPI (http://www.phpclasses.org/browse/package/ 2521.html) and here is my dial request:


echo($sampleapi->request("COMMAND", array("COMMAND" => "originate SIP/$x extension 1...@from-internal")));

Vairable $x is what I pass to this and it dials the extension first, once picked up, then it connects to 1...@from-internal which is my custom message (tt-monkeys). This works nicely.

But if I do:   originate SIP/testTrunk/$x extension 1...@from-internal
The moment it starts ringing to $x through "testTrunk" it starts playing 1...@from-internal, hence if the outside party picks up after two rings then they miss hearing a great deal of the monkey noise. Basically, Asterisk can't tell channel status because it's not local to it. What is the workaround for this "if any"? maybe check channel status?

If there is a totally different way of doing this rather than using originate command then please enlighten me. I appreciate the feedback.

Thanks,
Bruce
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://go.microsoft.com/?linkid=9691816

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to