I gang

Asterisk GotoIf statement

Really simple gotoif statement required within existinig working context.

Currently have the following context which works fine:

[2020-check-existing-Customer2222]

exten => s,1,MYSQL(Connect CONNID localhost a2bdbuser a2bdbpassw a2billing14)

exten => s,n,MYSQL(Query RESULTID ${CONNID} SELECT id_cc_card, imsi FROM cc_callerid WHERE cid LIKE '${MV-CALLERIDNUM}' AND activated LIKE 't')

exten => s,n,MYSQL(Fetch vdp_tmp ${RESULTID} A2B-ACCIDNUMBER)

exten => s,n,GotoIf($["${MYSQL_STATUS}" = "-1"]?lbl_2020-check-existing-Customer2222_1:)

exten => s,n,GotoIf($["${vdp_tmp}" = "0"]?lbl_2020-check-existing-Customer2222_1:)

exten => s,n(lbl_2020-check-existing-Customer2222_0),MYSQL(Clear ${RESULTID})

exten => s,n,MYSQL(Query RESULTID ${CONNID} SELECT username, useralias, uipass,credit,creditlimit FROM cc_card WHERE id = '${A2B-ACCIDNUMBER}')

exten => s,n,MYSQL(Fetch vdp_tmp ${RESULTID} A2B-ACCNUMBER A2B-CARDALIAS A2B-PASSWORD A2B-BALANCE A2B-CREDITLIMIT)

exten => s,n,MYSQL(Clear ${RESULTID})

exten => s,n,MYSQL(Disconnect ${CONNID})

exten => s,n,NoOp(${A2B-ACCIDNUMBER})

exten => s,n,GotoIf($["${A2B-ACCIDNUMBER}" > "0"]?:lbl_2020-check-existing-Customer2222_2)

exten => s,n,Goto(from-internal,6014,1)

exten => s,n(lbl_2020-check-existing-Customer2222_2),Goto(from-internal,6015,1)

exten => s,n(lbl_2020-check-existing-Customer2222_1),Set(A2B-ACCIDNUMBER=0)

exten => s,n,Goto(lbl_2020-check-existing-Customer2222_0)

I need an additional option added right after we have verified we have an active card - for when imsi = 2222 then need to go to context [ripdial-set-cli], otherwise carry on.

Færdigheder: Asterisk PBX

Se mere: asterisk statement, asterisk gotoif statement, asterisk goto, asterisk gotoif mysql, mv, CLI , mysql select statement, mysql fetch, asterisk cid, connect query mysql, 2020, connect asterisk, mysql statement, card asterisk, asterisk credit, password asterisk, active pbx, asterisk pbx mysql, asterisk required, asterisk active active, asterisk password, asterisk card, A2B, mysql exten asterisk, select mysql statement

Om arbejdsgiveren:
( 8 bedømmelser ) Denia, Spain

Projekt-ID: #4064037

Tildelt til:

meral

hi. can do that now.

€30 EUR in 0 dage
(64 bedømmelser)
7.4

5 freelancere byder i gennemsnit €34 for dette job

voipexpert05

Hi, I can do it for you. I can do it right now. Thanks vivek

€50 EUR in 0 dage
(25 bedømmelser)
5.7
xuniltech

I am experienced asterisk developer. I design dialplans, AGI scripts. Lets finish this.

€30 EUR på 1 dag
(4 bedømmelser)
3.8
larymonata

HI, please see my PM

€30 EUR på 1 dag
(5 bedømmelser)
3.4
ehsan310

Hi, I can do it.

€30 EUR in 0 dage
(3 bedømmelser)
2.9