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

Reply via email to