Displaying 20 results from an estimated 900 matches similar to: "asterisk name in mysql"
2017 Apr 22
4
asterisk name in mysql
Thanks a lot for the reply.
I did follow that already, but i do have a problem. Here is my
extensions.conf part for that particular number
exten => 6912345678,1,Answer()
exten => 6912345678,n,MYSQL(Connect connid 127.0.0.1 root mypasswd asterisk)
exten => 6912345678,n,MYSQL(Query resultid ${connid} SET NAMES utf8)
exten => 6912345678,n,GotoIf($["${connid}" =
2006 Dec 04
4
MySQL cmd % pattern matching
Hi All
Does anyone know how to use the MySQL cmd in Asterisk with LIKE and % in
the query?
I have:
exten => s,5,Set(query=SELECT name from contacts where tel like
%${number})
exten => s,6,MySQL(Connect connid hostname username password dbname)
exten => s,7,MySQL(Query resultid ${connid} ${query})
But there seems to be a problem with the % sign and I don't know how to
2007 Apr 13
2
MySQL query from extensions?
What wrong with this:
[get-dnisinfo]
; sub-routine to get owner's password
exten => s,1,Verbose( == )
exten => s,n,MYSQL(Connect connid localhost root password dax)
exten => s,n,MYSQL(Query resultid ${connid} SELECT\ password\ FROM\
dnislookup\ WHERE\ dnis=\'${IVR-Exten}\')
exten => s,n,MYSQL(Fetch fetchid ${password} password)
exten => s,n,Verbose( == Password found
2007 Apr 16
1
Stuck on MySQL UPDATE
What I'm retrying to do is update mysql field with the new message ID
that was just recorded. Ideally, I'd like to specify
the field to update using a variable ${BINID} and use ${NEWPHRASENAME}
for the value - I'm not sure asterisk will allow
using a variable for the field name and if not, I'll attempt to create
an exten for each bin to update.
Here the method I'd like to
2008 Jan 07
1
extension.conf with mysql
Hi,
I am trying to connect the outbound dialing with mysql with the following
code,
exten => 88,1,MYSQL(Connect connid hostname username password dbname)
exten => 88,2,GotoIf($["${connid}" = ""]?error,1)
exten => 88,3,MYSQL(Query resultid ${connid} SELECT\ phone\ FROM\
<tablename>\ WHERE\ phone =${a})
exten => 88,4,MYSQL(Fetch fetchid ${resultid} ph\ sa)
2011 May 17
1
mysql call stored procedure
Hi Guys,
I am getting an error when executing another mysql query in dialplan after
calling stored procedure.
If calling the procedure from mysql cli it gives a result like:
mysql> call call_control(78236721,1000,1233);
+------+
| pass |
+------+
| 1 |
+------+
So I need asterisk to recognize this pass and take some actions based on
what the pass value is.
Dialplan looks like this:
2009 Sep 09
1
MySQL question
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090909/4ba848c0/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bhfisher.vcf
Type: text/x-vcard
Size: 253 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090909/4ba848c0/attachment.vcf
2005 May 18
1
Mysql cmd with Asterisk Problems
Hello all:
I am trying to use the mysql command to retrieve information from a mysql
database.
my example here was formed from using the wiki reference to using the
mysql command.
The problem is with the fetch command.
Here is the macro code:
Mysql(QueryString=SELECT\ ivr-password\ from\ users\ where\ ivr-id=${userid})
Mysql(Query r ${connid} ${QueryString})
Mysql(Fetch fetchid ${r} dbuserpass)
2009 Feb 25
1
Realtime database function help
Hello Everyone!
According to voip-info.org the correcy syntax for the realtime function is:
REALTIME(family|fieldmatch[|value[|delim1[|delim2]]]) on read
REALTIME(family|fieldmatch|value|field) on write
It seems from the syntax that it is only possible to retrieve a full
row according to the value of only of column. This translates in SQL
language as Select * from family where fieldmath =
2011 Jun 07
2
What is wrong in m
Hi everyone,
What is wrong in below asterisk application? The output should be content of
field booth_status from table booths:
[extension-status]
exten => _X.,1,MYSQL(Connect connid 127.0.0.1 root password my-extensions)
exten => _X.,n,MYSQL(Query allow_call ${connid} SELECT extension_status FROM
mytable WHERE extension=${CALLERID(num)} ORDER BY id DESC LIMIT 1)
exten =>
2006 Mar 28
1
Asterisk to MySQL Data Lookup Warning Message?
Hi All,
I'm getting a strange warning message when I perform a MYSQL data lookup. The operation performs fine, I retrive the data I'm looking for and continue on through the dial sequence without an issue. I'm wondering if this warning message is something to be concerned about, can't find any info about it.
warning message:
Mar 28 15:55:40 WARNING[27481]:
2006 Jun 15
7
Echo Problem with T411P
Hello,
There are 3 PRI's connected to the card each from different operators.
Especially echo occured on span 3 is really annoying. Configuration
files are as follows. Is there something wrong in conf ?
Zapata.conf --------------------------
[channels]
context=default
switchtype=euroisdn
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
2007 Apr 19
1
MySQL Update from exten
I've tried every combination I could find on the net and so far there is
no joy
The thing is I can do this update from the command line: Maybe some new
eyes might find the answer?
exten => update,1,MYSQL(Connect connid localhost root password dax)
exten => update,n,MYSQL(QUERY resultid ${connid} UPDATE\ caller\ SET\
2006 Dec 23
1
mySQL and to many connections with SQL statement UPDATE
Hi,
If Iam doing UPDATE SQL statements I got an overload for connection.
am doing everytime an Disconnect ${connid}) but this is ignored.
any idea?
best regards
Thomas
2010 May 13
1
app_addon_sql_mysql.c:116 find_identifier
Hello list,
I have the following problem with MySQL-queries : it seems that the
resultid and connid are not cleared !
[macro-GetMailboxFromSIPuserID]
exten => s,1,MYSQL(Connect connid localhost xxx xxx xxx)
exten => s,n,MYSQL(Query resultid ${connid} SELECT\ extensie FROM\
tbl_SIPaccounts\ WHERE\ ID="${ARG1}")
exten => s,n,MYSQL(Fetch fetchid ${resultid} extensie)
exten
2005 Feb 02
2
using the MYSQL command to insert a record
I am trying to use the MYSQL command to insert a
record into a database and I can't seem to get it to
work. I can do an UPDATE with no problem.
Here is the line in my dialplan
exten => s,12,MYSQL(QUERY resultid ${connid} INSERT
INTO `member` ( `id` , `member_num` , `active` )VALUES
('',${number}' , '1'))
Does anyone have an example of an INSERT INTO that I
could look
2007 Jan 16
3
Realtime Voicemail Password Change Not Working
Hi All,
I'm using asterisk 1.2.9.1 and mysql 3.23, asterisk add-ons 1.2.3.
All seems to work normally with realtime voicemail, reads vmbox
parameters from the db fine. When I try to change the password,
asterisk operates normally, "enter new password" ok, "re-enter new
password" ok, "password has been changed"
There are no entries in the mysql.log setting the
2007 Apr 02
1
Mysql issue
Trying to create an extension that will toggle an enum value in our
database...
exten => s,1,MYSQL(Connect connid localhost myuser tmppass asterisk)
exten => s,n,MYSQL(Query resultid ${connid} UPDATE\ night_service\ SET\
status=(SELECT\ CASE\ status\ WHEN\ \'y\'\ THEN\ \'n\'\ ELSE\ \'y\'\ END));
exten => s,n,MYSQL(Clear ${resultid})
exten =>
2008 Mar 06
1
AEL - SQL and TIMEDIFF()
Hello list,
I'm having some problem integrating the SELECT TIMEDIFF() and SELECT
DATEDIFF() in my code. The syntax I'm using works without any problems if I
run them directly from the MySQL Client, but from the Asterisk Dialplan it
just wont work. Is there a limitation in the MySQL() application for the
Asterisk dialplan that produces this error?
<CODE>
context testsql {
s =>
2006 Feb 23
3
How to query a table from the keypad?
I am trying to give users the option to query our accts. payable database by supplying their PO number. I able to write queries via perl->DBI->mysql but have no idea how to get * to do it from the IVR. Is this possible? Can anyone point me in the right direction for help or examples?
Thanks,
Richard
---------------------------------
What are the most popular cars?