[asterisk-bugs] [Asterisk 0016717]: Orinate calls using AMI on version 1.4.29 broken.

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Feb 6 21:00:21 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16717 
====================================================================== 
Reported By:                flujan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16717
Category:                   Applications/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.29 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-27 09:08 CST
Last Modified:              2010-02-06 21:00 CST
====================================================================== 
Summary:                    Orinate calls using AMI on version 1.4.29 broken.
Description: 
The Originate command in the AMI does not deliver the calls to the correct
extension/context.

Asterisk dials, the phone answers, the call is not delivered to extension
and context.

This only happen when I use the Local/number at context syntax. The
SIP/12345/551144569873 works. Version 1.4.28 does not have this issue.

The cli command originate also works well.
====================================================================== 

---------------------------------------------------------------------- 
 (0117812) line24 (reporter) - 2010-02-06 21:00
 https://issues.asterisk.org/view.php?id=16717#c117812 
---------------------------------------------------------------------- 
Origination (php):

        $asm = new AGI_AsteriskManager(); 
        $asm->connect();
        $asm->send_request('Originate',
            array('Channel' => "Local/XXXXXXXX at client-call/n",
            'Context' => 'client-answered',
            'Priority' => '1',
            'Exten' => 's',
            'Async' => true));
        $asm->disconnect();        

Dial-plan: 

[client-call]
exten => _X.,1,Noop()
exten => _X.,n,Dial(DAHDI/g1/${EXTEN},60)

[client-answered]
exten => s,1,Noop()
...

Console log:

Feb  7 05:38:43] VERBOSE[22221] logger.c:     -- Executing
[XXXXXXXX at client-call:1] NoOp("Local/XXXXXXXX at client-call-cf2f,2", "") in
new stack
[Feb  7 05:38:43] VERBOSE[22221] logger.c:     -- Executing
[XXXXXXXX at client-call:2] Dial("Local/XXXXXXXX at client-call-cf2f,2",
"DAHDI/g1/XXXXXXXX|60") in new stack
[Feb  7 05:38:43] VERBOSE[22221] logger.c:     -- Called g1/XXXXXXXX
[Feb  7 05:38:43] VERBOSE[22221] logger.c:     -- DAHDI/1-1 is proceeding
passing it to Local/XXXXXXXX at client-call-cf2f,2
[Feb  7 05:38:46] DEBUG[12609] chan_dahdi.c: Queuing frame from
PRI_EVENT_PROGRESS on channel 0/1 span 1
[Feb  7 05:38:46] VERBOSE[22221] logger.c:     -- DAHDI/1-1 is making
progress passing it to Local/XXXXXXXX at client-call-cf2f,2
[Feb  7 05:38:47] VERBOSE[22221] logger.c:     -- DAHDI/1-1 is ringing
[Feb  7 05:38:48] VERBOSE[22221] logger.c:     -- DAHDI/1-1 answered
Local/XXXXXXXX at client-call-cf2f,2
[Feb  7 05:38:53] VERBOSE[12609] logger.c:     -- Channel 0/1, span 1 got
hangup request, cause 16 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-06 21:00 line24         Note Added: 0117812                          
======================================================================




More information about the asterisk-bugs mailing list