[Asterisk-Dev] Error No DNID: Dynamic Extension DB Application - DynExtenDB

Victor López(ACANTO) vlopez at acanto.cl
Wed Jul 20 09:46:06 MST 2005


Hi all,
does anybody have some experience working with Dynamic Extension DB
Application? 
I have installed and configured app_dynaextendb module as show when we bring
up asterisk:
 
  [app_dynextendb.so] => (Dynamic Extension from MySQL Application)
    == Parsing '/etc/asterisk/dynextendb.conf': Found
    == Registered application 'DynExtenDB_Free'
    == Registered application 'DynExtenDB'
   .........................
  Asterisk Ready.
 
But when we try to use DynExtenDB from extension.conf for 8901 extension, we
receive the following error:

*CLI>     -- Executing DynExtenDB("SIP/VLopez-13b9", "8901") in new stack
Jul 20 12:35:12 ERROR[9108]: app_dynextendb.c:76 dynamic_extension: No DNID
in channel found - not possible to query extension. Skipping.

I´ll appreciate if somebody knows if exist any patch to resolve it..
 
Best regards,
Víctor
 
/etc/asterisk/extension.conf
----------------------------------------
[sip]
exten => 8901,1,DynExtenDB(${EXTEN})
 
/etc/asterisk/dynextendb.conf
--------------------------------------------
[global]
hostname=AcantoPBX
dbname=phone
user=astcdr
password=.acanto123
dbname=phone
tblname=extensions

MYSQL: Table extension contents
--------------------------------------------------
mysql> use phone
Database changed
mysql> select * from extensions;
+-----+---------+-------+-----+----------+------------------+
| eid | context | exten | pri | appl     | data             |
+-----+---------+-------+-----+----------+------------------+
|   1 | sip     | 8901  |   1 | Dial     | SIP/VLopez,20,tr |
|   2 | sip     | 8901  |   2 | Playback | acanto_despedida |
+-----+---------+-------+-----+----------+------------------+
2 rows in set (0.00 sec)
 
mysql>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050720/7d8beffe/attachment.htm


More information about the asterisk-dev mailing list