[asterisk-users] ODBC dialplan looping problem

Pat Collins drdialtone at optonline.net
Thu Apr 18 07:17:25 CDT 2013


Thanks for the reply Doug!

How might I incorporate this into my dialplan?

Sorry, learning as I go....

On a side note, any idea how to strip off the # at the end of a string?  ${EXTEN:0:6} doesn't do the trick.

Is this even possible?

Pat...

 

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Doug Lytle
Sent: Thursday, April 18, 2013 7:29 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ODBC dialplan looping problem

 

>> The problem is that if a user enters a PIN that is NOT in the table, asterisk goes crazy and continues to loop forever.

 

Why don't you use read instead?  This is what I have:

 

exten => s,n,Answer(500)
exten => s,n,Read(get-room-num,conf-getconfno)

; *********************************************************
; Get conference room number, if number entered is 99999 **
; jump to verify.                                        **
; *********************************************************

exten => s,n,NoOP(${conf-getchannel})

 

Do some mysql magic here

 

exten => s,n,GotoIf($["${conference.room}" != ""]?s-process,1:s-notexist,1)

 

Doug

-- 

Ben Franklin quote:

 

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130418/1fbe0488/attachment.htm>


More information about the asterisk-users mailing list