Hello everybody, I am trying to use in a script perl, the originate action on a zap channel?.. $TelnetClient->print ("Action: Originate"); $TelnetClient->print ("Channel: Zap/$zap/$number"); $TelnetClient->print ("Context: out"); $TelnetClient->print ("Exten: s"); $TelnetClient->print ("Priority: 1"); $TelnetClient->print ("Variable: var1=$var1|var2=$var2"); $TelnetClient->print (""); The problem is that when opening the zap channel, originate thinks that the call has been answered and send the call to the beginning of the context out. And what I really want is to make this but when the destiny person answered and not when the zap channel opens. So what can I do to solve it ou?
On Wed, 2005-04-06 at 14:28 -0300, Maximiliano J. Goldsmid wrote:> Hello everybody, > > I am trying to use in a script perl, the originate action on a zap channel?.. > > $TelnetClient->print ("Action: Originate"); > $TelnetClient->print ("Channel: Zap/$zap/$number"); > $TelnetClient->print ("Context: out"); > $TelnetClient->print ("Exten: s"); > $TelnetClient->print ("Priority: 1"); > $TelnetClient->print ("Variable: var1=$var1|var2=$var2"); > $TelnetClient->print (""); > > > The problem is that when opening the zap channel, originate thinks > that the call has been answered and send the call to the beginning of > the context out. And what I really want is to make this but when the > destiny person answered and not when the zap channel opens. > > > So what can I do to solve it ou?Use a channel that supports answer supervision, eg, ISDN/PRI/etc. Search google for "asterisk answer supervision" Maybe also attempt (if you are in the US) the callprogress=yes option. Regards, Adam -- -- Adam Goryachev Website Managers Ph: +61 2 9345 4395 adam@websitemanagers.com.au Fax: +61 2 9345 4396 www.websitemanagers.com.au
Hi,> The problem is that when opening the zap channel, originate thinks > that the call has been answered and send the call to the beginning of > the context out. And what I really want is to make this but when the > destiny person answered and not when the zap channel opens. >as already in the docs, on analog zap interfaces you simply cannot do that, since on analog there's no way (apart dsp) to guess when the called party has answered> > So what can I do to solve it ou?go digital (isdn bri/pri, voip, whatever) Matteo --