Hi,
I'm getting an issue while executing AMI Originate.
I'm getting "extension does not exists" on Originate's Response, and on the
other hand Asterisk CLI say "fwrite() returned error: Broken pipe"
Please suggest me what is wrong.

Muhammad Faheem

### my originate code block ...
-----------------------------------------------------------------------------------------------
# ami-script.pl
my $astman = Asterisk::AMI->new(PeerAddr => '127.0.0.1', PeerPort =>
'5038', Username => 'faheem', Secret => 'secret');
                        die "Unable to connect to asterisk" unless
($astman);
                        my $resp_code = $astman->send_action({Action =>
'Originate',
                                                        Channel =>
'Local/11223344',
                                                        Context => 'users',
                                                        Exten => 100,
                                                        Priority =>1 });
                        sleep(2);
                        my $response = $astman->get_response($resp_code);
                        print $response->{'Response'} ."\n";
                        print $response->{'Message'} ."\n";
                        $astman->disconnect ();

####Script Output...
*Error*
*Extension does not exist*
--------------------------------------------------------------------------------------
;extensions.conf
;;; Asterisk Dialplan
[default]
exten => 11223344,1,NoOp("welcome")
exten => 11223344,n,Answer()
exten => h,1,NoOp("hangup...")

-----------------------------------------------------------------------------------------
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to