[SR-Users] DBTEXT / AVPOPS and custom database

2013-11-13 Thread Hugh James
Thanks Daniel, That helped my understanding further along , but it wasn't the full story . If I use $var(rc)=avp_db_load("$to/username","$avp(inbound)/LineIDs"); Then I still get no matches . But if I place entries in the uuid column of the table , then it works. I had assumed that since I

Re: [SR-Users] DBTEXT / AVPOPS and custom database

2013-11-12 Thread Daniel-Constantin Mierla
Hello, the name of the avp in the second parameter has to match the value in the 'attribute' column, like: avp_db_load("01344665544/username", "$avp(inbound)/LineIDs"); If you want to load all the records, you have to specify flags, not avp names, in the second parameter. Cheers, Daniel O

[SR-Users] DBTEXT / AVPOPS and custom database

2013-11-12 Thread Hugh James
Hi , I'm trying to use the db_text and avpops modules to implement a simple custom database but having problems getting it to work . I'm trying to find the Identity of the recipient for an inbound call based on the called number . I have a database file:- 1) LineIDs - contains the cal