Displaying 1 result from an estimated 1 matches for "good_exten".
2013 Apr 18
5
ODBC dialplan looping problem
...=_XXXXXX,n,Set(ODBC_ID=${ODBC_PIN(1)})
exten=_XXXXXX,n(loop_start),NoOp()
exten=_XXXXXX,n,Set(ROW_RESULT=${ODBC_FETCH(${ODBC_ID})})
exten=_XXXXXX,n,GotoIf($["${ODBC_FETCH}" = "FAILURE"]?cleanup,1)
exten=_XXXXXX,n,GotoIf($["${ROW_RESULT}" = "${CONF_PIN}"]?good_exten,1)
exten=_XXXXXX,n,Goto(loop_start)
;
exten=cleanup,1,Verbose(1,Finish up)
same=n,Verbose(1,PIN not found)
same=n,ODBCFinish(${ODBC_ID})
same=n,playback(conf-invalidpin)
same=n,Goto(rooms,${CONF_ID}1)
same=n,Hangup()
;
exten=good_exten,1,Verbose(1,The PIN is available)
same=n,ODBCFinish(...