[OpenSIPS-Users] carrierroute problem

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Oct 9 09:56:00 CEST 2008


Hi TC,

Looking through the opensipctl code, I found in "cr" section some 
uninitialized variables (flags and mask) - you noted the two missing 
values in the insert statement.

I made a patch on both trunk and 1.4 - please update and test again.

Regards,
Bogdan

TCB wrote:
>
> I'm trying carrierroute with opensips-1.4.2 and i keep getting the 
> following error from
> the opensipsctl command
> siproxy02 ~ # opensipsctl cr addcarrier 0 "" 0 15.10.15.10 
> <http://15.10.15.10>
>
>
> pgsql_query: /usr/bin/psql  -A -q -t -P fieldsep='    ' -h localhost 
> -U opensips opensips -c 'insert into carrierroute                 ( 
> carrier,                 scan_prefix,                 domain,         
>         prob,         strip,                 rewrite_host,             
>     rewrite_prefix,     rewrite_suffix,                 description, 
>                 flags,         mask )                 VALUES (0, '', 
> '0', 1, 0,                 '15.10.15.10 <http://15.10.15.10>', '', '', 
> '',                 , );'
> ERROR:  syntax error at or near ","
> LINE 1: ...S (0, '', '0', 1, 0,     '15.10.15.10 
> <http://15.10.15.10>', '', '', '',     , );
>                                                                    ^
> ERROR: cr - SQL Error
>
> Please help
>
> -- 
> TC
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list