Hi List,
I'm working on getting my opensips 1.10 -> 2.3.3 :)
As db_extra param is not there anymore I tried to use extra_fields param in acc 
module and it appears it can hold string values only. Is it the case ?
I tried to use it to hold an integer value and it comes up as empty string ''. 

Is it a bug or purpose set only to accept string data only ? cause my db column 
has integer type for it. 

following is my config
modparam("acc", "extra_fields", "db: fu->from_uri; ru->to_uri; 
islocal->islocal; callid->\"exe-callid\"; direction->direction")

$acc_extra(islocal) = 1;

When call hangups it failed to insert the cdr record to acc table as islocal 
comes up as ''.
Ex:-ERROR:db_postgres:db_postgres_submit_query: 0x7fd07fb45d18 PQsendQuery 
Error: ERROR:  invalid input syntax for integer: ""#012LINE 1: 
                          ^#012 Query: insert into acc 
 ) values 
Users mailing list

Reply via email to