Sedang Disiapkan

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.

Kemahiran: Asterisk PBX

Lihat lebih lanjut: 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, active pbx, asterisk pbx mysql, asterisk required, asterisk card, a2b, mysql exten asterisk, select mysql statement, cid set, exten mysql asterisk, check imsi

Tentang Majikan:
( 8 ulasan ) Denia, Spain

ID Projek: #4064037

Dianugerahkan kepada:

meral

hi. can do that now.

€30 EUR dalam 0 hari
(64 Ulasan)
7.4

5 pekerja bebas membida secara purata €34 untuk pekerjaan ini

voipexpert05

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

€50 EUR dalam 0 hari
(25 Ulasan)
5.7
xuniltech

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

€30 EUR dalam sehari
(4 Ulasan)
3.8
larymonata

HI, please see my PM

€30 EUR dalam sehari
(5 Ulasan)
3.4
ehsan310

Hi, I can do it.

€30 EUR dalam 0 hari
(3 Ulasan)
2.9