[asterisk-bugs] [Asterisk 0012857]: Hangup extension doesn't seem to work in ast-1.4.19.1

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 14 09:15:37 CDT 2008


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=12857 
====================================================================== 
Reported By:                binuvb
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12857
Category:                   Applications/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             06-14-2008 07:24 CDT
Last Modified:              06-14-2008 09:15 CDT
====================================================================== 
Summary:                    Hangup extension doesn't seem to work in
ast-1.4.19.1
Description: 
Hello all,
       I have made a call back service using the call files. Here people
would call on some predetermined number, the system recognizes the caller
id (we have a caller id database) and disconnects the call and call back.
If the system could not recognize the caller id, it plays a message and
gives options to register the caller id, etc. All these works well in
asterisk 1.4.4. The problem started when I upgraded asterisk to version
1.4.19.1.
       I am attaching the portion of the context. 

       When the system receives a call, it just hangs up and the rest is
done in "h" extension. 

     I guess this is a problem with h extension in the version 1.4.19.1 (
as I said earlier that it works very well with 1.4.4). 
     In the asterisk console I am able to see
"Playback(prompt_register_cid)" , but it is not actually playing.


Thanks all

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

---------------------------------------------------------------------- 
 Corydon76 - 06-14-08 09:15  
---------------------------------------------------------------------- 
> exten => s,n,Hangup
> exten => h,n,Gotoif($[${LEN(${caller})} < 7]?trikon,s,11)

Here's your problem.  Your h extension doesn't start with "1".  Change
this to:

> exten => s,n,Hangup
> exten => h,1,Gotoif($[${LEN(${caller})} < 7]?trikon,s,11)

and I think you'll find that things work fine.
 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-14-08 09:15  Corydon76      Note Added: 0088711                          
06-14-08 09:15  Corydon76      Status                   new => closed       
06-14-08 09:15  Corydon76      Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list