[Asterisk-bsd] hangup detection

Brian Buhrow buhrow at lothlorien.nfbcal.org
Fri Sep 30 01:37:08 CDT 2005


	The application reference at www.voip-info.org for Asterisk is quite
complete.  The dial plan language is fairly rich and flexible, except for
the feeling that I'm programming in Applesoft BASIC with line numbers
again.
-Brian

P.S.  In the sample I sent you, it might be avvisable to set the RETRIES
variable in the initial extension, just so  you don't get any undefined
values when you try to do the first addition operation in the timeout
extension.
-Brian
On Sep 29,  6:23pm, Jeff LaCoursiere wrote:
} Subject: Re: [Asterisk-bsd] hangup detection
} 
} Thanks!  That is beautiful :)  Is there a good resource for the
} programming constructs available?  Is the O'Reilly book any good?
} 
} Cheers,
} 
} j
} 
} On Thu, 29 Sep 2005, Brian Buhrow wrote:
} 
} > 	Hello Jef.  I think your work around is a good idea.  I'd try
} > something like:
} >
} > exten = t,1,setvar(RETRIES = ${RETRIES} +1)
} > exten = t,2,gotoif(${RETRIES} > 3?20)
} > exten = t,3,playback(invalid)
} > exten = t,4,goto(s,1) ;Or where ever you want people to wait.
} > exten = t,20,hangup ;Should only get here if sent by the gotoif above.
} >
} >
} > Hope that helps.
} >
} > -Brian
} > On Sep 29,  3:34pm, Jeff LaCoursiere wrote:
} > } Subject: [Asterisk-bsd] hangup detection
} > }
} > } Hello,
} > }
} > } Am running 1.0.8-BRIstuffed-0.2.0-RC8h on 5.4-RELEASE with a 4 port FXO
} > } card from Digium (and about twelve Procomm 300, 301, 501, and 600 phones).
} > } We have been playing around with it for about a month and finally put it
} > } into production yesterday.  Twice in the past twenty four hours the first
} > } line has become "stuck" in our main menu:
} > }
} > }   == CDR updated on Zap/1-1
} > }     -- Executing Goto("Zap/1-1", "#|1") in new stack
} > }     -- Goto (default,#,1)
} > }     -- Sent into invalid extension '#' in context 'default' on Zap/1-1
} > }     -- Executing Playback("Zap/1-1", "invalid") in new stack
} > }     -- Playing 'invalid' (language 'en')
} > }     -- Timeout on Zap/1-1
} > }   == CDR updated on Zap/1-1
} > }     -- Executing Goto("Zap/1-1", "#|1") in new stack
} > }     -- Goto (default,#,1)
} > }     -- Sent into invalid extension '#' in context 'default' on Zap/1-1
} > }     -- Executing Playback("Zap/1-1", "invalid") in new stack
} > }     -- Playing 'invalid' (language 'en')
} > }     -- Timeout on Zap/1-1
} > }   == CDR updated on Zap/1-1
} > }     -- Executing Goto("Zap/1-1", "#|1") in new stack
} > }     -- Goto (default,#,1)
} > }     -- Sent into invalid extension '#' in context 'default' on Zap/1-1
} > }     -- Executing Playback("Zap/1-1", "invalid") in new stack
} > }     -- Playing 'invalid' (language 'en')
} > }     -- Timeout on Zap/1-1
} > }
} > } This continues forever until I physically unplug the phone line from the
} > } port, then plug it back in.  In the meantime the line rings busy from the
} > } outside.
} > }
} > } I think I can work around whatever causes this by making the menu timeout
} > } and hangup, perhaps after some number of unsuccessful extensions?  Can
} > } someone help me with a dialplan example that would accomplish this?
} > }
} > } TIA!
} > }
} > } Jeff LaCoursiere
} > } Southland Gaming Virgin Islands
} > } jeff at sgvi.net
} > } jeff at jeff.net
} > }
} > } _______________________________________________
} > } Asterisk-BSD mailing list
} > } Asterisk-BSD at lists.digium.com
} > } http://lists.digium.com/mailman/listinfo/asterisk-bsd
} > >-- End of excerpt from Jeff LaCoursiere
} >
} >
} > _______________________________________________
} > Asterisk-BSD mailing list
} > Asterisk-BSD at lists.digium.com
} > http://lists.digium.com/mailman/listinfo/asterisk-bsd
} >
} _______________________________________________
} Asterisk-BSD mailing list
} Asterisk-BSD at lists.digium.com
} http://lists.digium.com/mailman/listinfo/asterisk-bsd
>-- End of excerpt from Jeff LaCoursiere




More information about the Asterisk-BSD mailing list