Asterisk Custom Extension Fix - Check Pin Against SQL

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

I have a custom extension configured which checks for a pin code stored in a mysql database. When a caller enters the extension they are prompted for their pin code and if they enter a recognized code they hear a specific greeting. If they don't enter a code, or enter a wrong code they should be hung up on, however, if they don't enter anything they are still hearing the greeting. I believe it's a small fix, as everything is working, but hanging up if they don't enter a code.

Here is what I have:

[check_pin]

exten => s,1,Read(pin,custom/Job_Board_Greeting,5);

exten => s,n,Set(pin2=${REALTIME_FIELD(members,pin,${pin},pin)})

exten => s,n,GotoIF($[ "${pin2}" == "${pin}" ]?from-internal,*300,1)

exten => s,n,Hangup

Asterisk PBX Linux MySQL VoIP

ID Проекту: #5556687

Про проект

4 заявок(-ки) Дистанційний проект Остання активність Mar 14, 2014

Доручено:

valjan

Hi, I mantain several dozen Asterisk, FreePBX and Elastix servers, so I can help you with this one. You have a typo in one of the lines, and that is why condition is ignored and the sound is always played. I cann Більше

$35 USD за 3 дні(-в)
(51 відгуків(-и))
4.8

4 фрілансерів(-и) готові виконати цю роботу у середньому за $66

asteriskguruvw

I have done a lot of asterisk projects. Please check my profile. Please contact and we will discuss the project.

$100 USD за 3 дні(-в)
(147 відгуків(и))
6.2
ibaydan

A proposal has not yet been provided

$35 USD за 3 дні(-в)
(2 відгуків(и))
1.6
dabing1205

########################################## Please contact me through your PM, I would like to offer help on your project since I worked on similar project before.. yes, it's your expect, your file only needs to upda Більше

$94 USD за 1 день
(0 відгуків(и))
0.0