Thanks Bogdan,
I found it. I'll let you know how it goes.

    On Wednesday, 14 February 2018, 14:12, Bogdan-Andrei Iancu 
<> wrote:

  Hi Pasan,
 This is for OpenSIPS 2.3:
  Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
OpenSIPS Summit 2018
 On 02/14/2018 04:06 AM, Pasan Meemaduma wrote:
  Hi Bogdan, 
  Thanks for the response. I'll get my opensips rebuild , can you let me know 
the commit id so I know I got it correctly ?
      On Tuesday, 13 February 2018, 17:38, Bogdan-Andrei Iancu 
<> wrote:
    Hi Pasan,
 The "extra" support in ACC is always producing output as strings (when 
performing the DB query). Nevertheless this should not prevent you pushing 
integer or string values into the $acc_extra() variable. 
 But, it seems you discovered a BUG here :D...if the pushed value is a static 
int (from the script), it is not properly converted :(. I just pushed a fix on 
GIT repo (master and 2.3) - so please update you checkout or if using packages, 
 use the nightly build (of course, wait for the night :) first )
 Best regards,
  Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
OpenSIPS Summit 2018
  On 02/13/2018 03:39 AM, Pasan Meemaduma via Users wrote:
        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 
                            ^#012 Query: insert into 
Users mailing list

Users mailing list

Reply via email to