[asterisk-bugs] [Asterisk 0014266]: [patch] Add the immediate=yes option to chan_iax2

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Feb 6 14:12:34 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14266 
====================================================================== 
Reported By:                jcovert
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14266
Category:                   Channels/chan_iax2
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.6.0.3 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-18 16:21 CST
Last Modified:              2009-02-06 14:12 CST
====================================================================== 
Summary:                    [patch] Add the immediate=yes option to chan_iax2
Description: 
IAX phones and devices (such as the IAXy) are cool.  When you pick up the
phone, a message is sent (even before you dial), and just like on the DAHDI
FSX devices, code gets executed.

DAHDI has "immediate=yes" so that when you pick up the phone, you get
connected directly to the "s" extension.  This is useful for lobby phones,
elevator phones, manual service (number please), etc.

It was nearly trivial to implement in chan_iax2.c.  I made a deliberate
decision to only implement it for users/friends who authenticate (as any
properly connected phone or ATA would).  Simply add "immediate=yes" in the
friend or user definition, and when you pick up the phone, instead of
dialtone, you go right to extension "s" in the appropriate context.
====================================================================== 

---------------------------------------------------------------------- 
 (0099648) svnbot (reporter) - 2009-02-06 14:12
 http://bugs.digium.com/view.php?id=14266#c99648 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 174046

U   trunk/CHANGES
U   trunk/channels/chan_iax2.c
U   trunk/configs/iax.conf.sample

------------------------------------------------------------------------
r174046 | dvossel | 2009-02-06 14:12:33 -0600 (Fri, 06 Feb 2009) | 12
lines

Adds immediate yes/no option to iax.conf

This is very similar to the DAHDI immediate=yes option.  When the phone is
picked up, instead of giving a dialtone it connects directly to the "s"
extension.  Changes where implemented in chan_iax2.c to directly connect to
the "s" extension in the appropriate context when this option is enabled. 
Examples explaining its use are added to iax2.conf.sample.  CHANGES has
been updated as well. 

(closes issue http://bugs.digium.com/view.php?id=14266)
Reported by: jcovert
Patches:
      chan_iax2.c.patch-trunk uploaded by jcovert (license 551)
      iax.conf.sample.patch uploaded by jcovert (license 551)
Tested by: jcovert, dvossel
Review: http://reviewboard.digium.com/r/143/

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=174046 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-06 14:12 svnbot         Checkin                                      
2009-02-06 14:12 svnbot         Note Added: 0099648                          
======================================================================




More information about the asterisk-bugs mailing list