Hi,
I m trying to use perl script to generate call with a server asterik .
If I use telnet session to generate like this :
$telnet localhost 5038
Action: Login
Username: useroperator
Secret: password
Action: Originate
Context: context
Channel: Local/[EMAIL PROTECTED]
Exten: 221
Priority: 1
it works good :)
instead with a script perl like this :
....
use Net::Telnet ();
....
$tn->print("Action: Login\nUsername:$USERNAME\n Secret:$SECRET\n\n");
$tn->waitfor('/Authentication accept*/')
$tn->print("Action: Originate\n");
$tn->print("Context: context\n");
$tn->print("Channel: Local/[EMAIL PROTECTED] \n");
$tn->print("Exten: 221\n");
$tn->print("Priority: 1 \n\n");
....
i get this error from asterisk cli :
chan_local.c:498 local_alloc: No such extension/context
[EMAIL PROTECTED] creating local channel
channel.c:2491 __ast_request_and_dial: Unable to request channel
Local/[EMAIL PROTECTED]
and the call doesnt start.
What can i do to resolve this problem?
Thanks
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users