[asterisk-bugs] [Asterisk 0014263]: Dial app seems to only allow dial string less than 255 characters

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 19 19:59:17 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14263 
====================================================================== 
Reported By:                markd
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14263
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-16 18:02 CST
Last Modified:              2009-01-19 19:59 CST
====================================================================== 
Summary:                    Dial app seems to only allow dial string less than
255 characters
Description: 
When using a dial string larger than 255 characters, the dial string
becomes automatically truncated to 255 characters.

The problem exists in the latest 1.4.22.1
====================================================================== 

---------------------------------------------------------------------- 
 (0098169) tomsullivan (reporter) - 2009-01-19 19:59
 http://bugs.digium.com/view.php?id=14263#c98169 
---------------------------------------------------------------------- 
Below are the entries from extensions.conf:

exten => _[s*0-9]!,n,NoOp(${HGRP_${EXTEN}_CHANS})
exten =>
_[s*0-9]!,n,Dial(${HGRP_${EXTEN}_CHANS}&LOCAL/s at ivr-wait|${HGRP_${EXTEN}_TIMEOUT}|${HGRP_${EXTEN}_OPTS})

which are operating from the following variable:

HGRP_900_CHANS=LOCAL/203 at dial-sip-huntgroup/n&LOCAL/678 at dial-sip-huntgroup/n&LOCAL/100 at dial-sip-huntgroup/n&LOCAL/55446 at dial-sip-huntgroup/n&LOCAL/201 at dial-sip-huntgroup/n&LOCAL/0299999999 at match-all/n&LOCAL/0419999999 at match-all/n&LOCAL/0899999994 at match-all/n&LOCAL/0899999993 at match-all/n&LOCAL/0899999999 at match-all/n&LOCAL/0899999991 at match-all/n

and result in the following console output:

    -- Executing [900 at dial-huntgroup:3] NoOp("SIP/55446-0081aa00",
"LOCAL/203 at dial-sip-huntgroup/n&LOCAL/678 at dial-sip-huntgroup/n&LOCAL/100 at dial-sip-huntgroup/n&LOCAL/55446 at dial-sip-huntgroup/n&LOCAL/201 at dial-sip-huntgroup/n&LOCAL/0299999999 at match-all/n&LOCAL/0419999999 at match-all/n&LOCAL/0899999994 at match-all/n&LOCAL/08999")
in new stack
    -- Executing [900 at dial-huntgroup:4] Dial("SIP/55446-0081aa00",
"LOCAL/203 at dial-sip-huntgroup/n&LOCAL/678 at dial-sip-huntgroup/n&LOCAL/100 at dial-sip-huntgroup/n&LOCAL/55446 at dial-sip-huntgroup/n&LOCAL/201 at dial-sip-huntgroup/n&LOCAL/0299999999 at match-all/n&LOCAL/0419999999 at match-all/n&LOCAL/0899999994 at match-all/n&LOCAL/08999&LOCAL/s at ivr-wait|5|ir")
in new stack

As shown, NoOp shows only the first 256 characters of the variable,
whereas Dial is able to concatenate the additional destination
(&LOCAL/s at ivr-wait) and dial the result. I would suspect that this
indicates the variable expansion / evaluation is limiting the result. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-19 19:59 tomsullivan    Note Added: 0098169                          
======================================================================




More information about the asterisk-bugs mailing list