[asterisk-bugs] [Asterisk 0011056]: Cannot detect correct extension number after several call-transfer.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Oct 26 15:09:58 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11056 
====================================================================== 
Reported By:                Adam Lee
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11056
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-23-2007 02:12 CDT
Last Modified:              10-26-2007 15:09 CDT
====================================================================== 
Summary:                    Cannot detect correct extension number after several
call-transfer.
Description: 
I setup three phones and registered with my Asterisk as follows:
Phone A: exten # 111
Phone B: exten # 112
PHone C: exten # 113
Test Procedures:
Step 1. A & B are talking.
Step 2. B blind-transfers to C. (Now, A & C are talking and B hangs up)
Step 3. C attended -transfers to B. (Now, C & B are talking and A is in
moh)
Step 4. C hangs up the call. (Now, A & B are talking)
Step 5. A transfers (either blind-transfer or attended-transfer) to anyone
else.

I found that the step 5 would fail because Asterisk would not detect the
whole extension number of transferee at this moment.
I logged some information as follows:
Jan  3 04:05:03 WARNING[2458]: channel.c:2416 set_format: Unable to find a
codec
 translation path from g729 to slin
Jan  3 04:05:03 WARNING[2458]: indications.c:122 playtones_alloc: Unable
to set
'SIP/113-001481c8' to signed linear format (write)

    -- Unable to find extension '1' in context 'macro-InternalExt'
    -- Playing 'pbx-invalid' (language 'en')

    -- Stopped music on hold on Local/112 at gContextGroup_1-0b87,1

  == Spawn extension (macro-InternalExt, s, 1) exited non-zero on
'Local/112 at gCo
ntextGroup_1-0b87,2' in macro 'InternalExt'
  == Spawn extension (macro-InternalExt, s, 1) exited non-zero on
'Local/112 at gCo

I was trying to transfer the call to C whose extension number is "113",
however, Asterisk only detect the first digit and determine that there is
no valid extension at that moment.

Thank you.
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 10-26-07 15:09  
---------------------------------------------------------------------- 
Just a theory, but it looks like what might be happening here, is that
since you're doing nested macros (indirectly?), it ends up thinking that
the caller of the macro is the main context (which it wants) - but in
reality, it's just another macro.

so..something like this

111>gContextGroup_1>InternalExt>112
112>gContextGroup_1>InternalExtNoVoiceMail>113
111>[gContextGroup_1]>InternalExtNoVoiceMail>InternalExt>112 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-26-07 15:09  qwell          Note Added: 0072579                          
======================================================================




More information about the asterisk-bugs mailing list