[asterisk-bugs] [Asterisk 0011632]: Get "No such channel" when querring variable

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Dec 27 12:13:23 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11632 
====================================================================== 
Reported By:                pascallambert
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   11632
Category:                   Core/ManagerInterface
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.16.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-24-2007 10:57 CST
Last Modified:              12-27-2007 12:13 CST
====================================================================== 
Summary:                    Get "No such channel" when querring variable
Description: 
Our application depends on the manager to report the call progression.
Unfortunately in more than 50% of the time we get an invalid result from
the manager API but only on one of the 2 asterisk server I'm testing my
code. Both are with the same version of asterisk. I'm doing my testing
originating to soft SIP phone.
The whole story now;
We use Local channel to originate call. Local channel will create child
channel.  The manager API will reported back each child channel created.
Unfortunately the Local channel driver doesn't related those child channel
to the initial parent. So we need to bind a variable to each originating
call and when we received notification of a new channel we immediately
query back the value of our variable in order to related it with the
originating call.

Then problem is sometime we get a "No such channel" error in our response
for the "GetVar" call (see the log below).

I've no clue has why we get this, especially that it worked on one server
and not the other one again both with the same version.

Any help as to what take a look at will be greatly appreciate.

====================================================================== 

---------------------------------------------------------------------- 
 pascallambert - 12-27-07 12:13  
---------------------------------------------------------------------- 
Dynamically when invoking the Originate action:
http://www.voip-info.org/wiki/index.php?page=Asterisk+Manager+API+Action+Originate

variable : __AJ_TRACE_ID
------------ trace of manager -------------
2007-12-27 09:02:16,936 DEBUG [main]: -->Send: action: Originate
actionid: 12258573_31#AJ_ORIGINATE_4
timeout: 60000
exten: s
async: true
variable: __AJ_TRACE_ID=AJ_ORIGINATE_4
context: internal
priority: 1
channel: Local/101 at internal 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-27-07 12:13  pascallambert  Note Added: 0076047                          
======================================================================




More information about the asterisk-bugs mailing list