[Asterisk-Users] Script Perl Autodialer
Adam Goryachev
mailinglists at websitemanagers.com.au
Wed Apr 6 10:39:13 MST 2005
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 at websitemanagers.com.au
Fax: +61 2 9345 4396 www.websitemanagers.com.au
More information about the asterisk-users
mailing list