Advertisement

09.26.2008 at 02:22PM PDT, ID: 23767490 | Points: 500
[x]
Attachment Details

Asterisk mysql help with +1

Asked by Billetkontoret in Asterisk Open Source Telephony

Tags:

Hi guys.

I have this in my dialplan:

exten => s,n,MYSQL(Query resultid ${connid} UPDATE\ brugere\ SET\ "vmail_lyttet=+1"\ WHERE\ nummer=${NUMMER})

I have an INT field in my mysql database which contains a number which I would like to increase by 1 with the command above. The command won't work, what am I doing wrong? I have tried several other posibilities, like:

exten => s,n,MYSQL(Query resultid ${connid} UPDATE\ brugere\ SET\ vmail_lyttet="vmail_lyttet+1"\ WHERE\ nummer=${NUMMER})
 And others.

Help please...Start Free Trial
[+][-]10.08.2008 at 07:01PM PDT, ID: 22675101

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628