[OpenSIPS-Users] get_route_param function of rr module

2013-08-13 Thread Камиль Нигматуллин

Hello to all;

Starnge thing. I use rr module to add some params to RR Header as 
follows; But when I want to read param from header with get_route_param 
opensips cannot start with the following message:
unknown command , missing loadmodule? Yes, I do 
loose_route() right before calling ;


Unfortunaly googling this I didn't find one simular issue as if nobody 
interested in this function;




--
Kamil Nigmatullin


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] uac_registrant sends User_Agent header

2013-08-13 Thread Jeff Pyle
Yes.  local_route solves it for now.

local_route {
if (method == "REGISTER") replace("^User_Agent: ", "User-Agent: ");
}



- Jeff



On Tue, Aug 13, 2013 at 6:11 PM, Jeff Pyle  wrote:

> Thanks, Ovidiu.  Issue #56.
>  This was my first time on GitHub so please advise if I messed up anything.
>
> Prior to resolution, can I remove User_Agent and append User-Agent in
> local_route?
>
>
>
> - Jeff
>
>
>
> On Tue, Aug 13, 2013 at 4:12 PM, Ovidiu Sas  wrote:
>
>> Please open a bug report - it should be an easy fix.
>> I'm traveling right now, but it will be fixed by the end of the month
>> (unless some other dev will do it before that).
>>
>> -ovidiu
>>
>> On Tue, Aug 13, 2013 at 4:00 PM, Jeff Pyle 
>> wrote:
>> > Hello,
>> >
>> > This is on version 1.9, downloaded today from git.  The uac_registrant
>> > module sends REGISTER requests with the User_Agent header, rather than
>> the
>> > User-Agent header.
>> >
>> >
>> >
>> > - Jeff
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opensips.org
>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >
>>
>>
>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.com
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] uac_registrant sends User_Agent header

2013-08-13 Thread Jeff Pyle
Thanks, Ovidiu.  Issue #56 .
 This was my first time on GitHub so please advise if I messed up anything.

Prior to resolution, can I remove User_Agent and append User-Agent in
local_route?



- Jeff



--
Jeff Pyle 
Director, Voice Engineering
Fidelity Voice and Data
216-245-4106
www.fidelityvoice.com



On Tue, Aug 13, 2013 at 4:12 PM, Ovidiu Sas  wrote:

> Please open a bug report - it should be an easy fix.
> I'm traveling right now, but it will be fixed by the end of the month
> (unless some other dev will do it before that).
>
> -ovidiu
>
> On Tue, Aug 13, 2013 at 4:00 PM, Jeff Pyle 
> wrote:
> > Hello,
> >
> > This is on version 1.9, downloaded today from git.  The uac_registrant
> > module sends REGISTER requests with the User_Agent header, rather than
> the
> > User-Agent header.
> >
> >
> >
> > - Jeff
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] uac_registrant sends User_Agent header

2013-08-13 Thread Ovidiu Sas
Please open a bug report - it should be an easy fix.
I'm traveling right now, but it will be fixed by the end of the month
(unless some other dev will do it before that).

-ovidiu

On Tue, Aug 13, 2013 at 4:00 PM, Jeff Pyle  wrote:
> Hello,
>
> This is on version 1.9, downloaded today from git.  The uac_registrant
> module sends REGISTER requests with the User_Agent header, rather than the
> User-Agent header.
>
>
>
> - Jeff
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] uac_registrant sends User_Agent header

2013-08-13 Thread Jeff Pyle
Hello,

This is on version 1.9, downloaded today from git.  The uac_registrant
module sends REGISTER requests with the User_Agent header, rather than the
User-Agent header.



- Jeff
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips error on centos 6

2013-08-13 Thread Roberto Spadim
i think that's better set sql_mode at client side (opensips install
program)
instead changing server side configurations, not?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips error on centos 6

2013-08-13 Thread troxlinux
ready, the problem was with mysql, had strict mode enabled

mysql> SELECT @@GLOBAL.sql_mode;
++
| @@GLOBAL.sql_mode  |
++
| STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION |
++
1 row in set (0.00 sec)


### disabled ###

 SET @@GLOBAL.sql_mode = '';
Query OK, 0 rows affected (0.00 sec)


regardss





2013/8/12 troxlinux 

> Ok  I check my.cnf and not I have the option, the add in this way and I
> do not run
>
> [mysqld]
> sql-mode = ""
>
>
> error:
>
> Warning: Using a password on the command line interface can be insecure.
> ERROR 1101 (42000) at line 2: BLOB/TEXT column 'body' can't have a default
> value
> ERROR: Creating core tables failed!
>
>
>
>
>
>
>
> 2013/8/12 Laszlo 
>
>> Hmm, that error means you running mysqld in strict mode. Can you check if
>> you have something like this in your my.cnf file?
>>
>> sql_mode=STRICT_TRANS_TABLES
>>
>> If you have this, please remove it and restart mysqld to changes take
>> effect. And then drop your opensips tables, and re-run opensipsdbctl create.
>>
>>
>> -Laszlo
>>
>>
>>
>> 2013/8/12 troxlinux 
>>
>>> Thnk Laslo , but shows me another error and I have set  the mysql user
>>> and password in opensipsctlrc
>>>
>>>  opensipsdbctl create
>>> MySQL password for root:
>>> INFO: test server charset
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> INFO: creating database opensips ...
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> Warning: Using a password on the command line interface can be insecure.
>>> ERROR 1101 (42000) at line 2: BLOB/TEXT column 'body' can't have a
>>> default value
>>> ERROR: Creating core tables failed!
>>>
>>>
>>>
>>> 2013/8/12 Laszlo 
>>>
 Then the module is not installed ;)

 Try to recompile opensips with the following commands.

 make include_modules="db_mysql" modules
 make include_modules="db_mysql" install

 And check if db_mysql.so is installed...or not.


 -Laszlo


 2013/8/12 troxlinux 

> not really ..
>
> [root@sipax modules]# ls -l db_*
> -rwxr-xr-x 1 root root 120497 Aug  9 16:37 db_flatstore.so
> -rwxr-xr-x 1 root root 231269 Aug  9 16:37 db_text.so
> -rwxr-xr-x 1 root root 181500 Aug  9 16:37 db_virtual.so
>
>
> /lib64/opensips/modules
>
>
>
> 2013/8/12 Laszlo 
>
>> Hmm, and db_mysql.so can be found under
>> /usr/local/lib64/opensips/modules/ ?
>>
>> -Laszlo
>>
>>
>> 2013/8/12 troxlinux 
>>
>>> Yes , look Makefile
>>>
>>> exclude_modules?= b2b_logic  cpl-c xmpp rls mi_xmlrpc xcap_client \
>>> db_oracle db_berkeley  \
>>> osp perl  db_perlvdb carrierroute mmgeoip \
>>> pua pua_bla pua_mi pua_usrloc pua_xmpp pua_dialoginfo \
>>> ldap h350 identity regex cachedb_memcached  \
>>>
>>>
>>>
>>> 2013/8/12 Laszlo 
>>>
 Hi,

 Did you install the db_mysql module in opensips?

 -Laszlo


 2013/8/12 troxlinux 

> Hi , I tried to install opensips on centos 6.4 X64  , and I have
> all sources installed mysql
>  opensipsdbctl create
> ERROR: could not load the script in /usr/local/lib64/opensips/
> opensipsctl/opensipsdbctl.mysql for da
> tabase engine MYSQL
> ERROR: database engine not loaded - tried 'MYSQL'
>
>
> rpm -qa | grep mysql
> mysql-5.6.12-1.x86_64
> php-mysql-5.4.16-1.x86_64
> mysqlclient16-5.1.30-2.x86_64
> mysql-server-5.6.12-1.x86_64
> mysql-devel-5.6.12-1.x86_64
> mysql-libs-5.6.12-1.x86_64
>
> any idea?
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


 --

 --
 Kind regards,
>>

Re: [OpenSIPS-Users] [OpenSIPS-Devel] OpenSIPS 1.10 SVN branch

2013-08-13 Thread Bogdan-Andrei Iancu
+1

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 08/13/2013 02:19 PM, Saúl Ibarra Corretgé wrote:
> Hi!
>
> On Aug 13, 2013, at 12:56 PM, Răzvan Crainea wrote:
>
>> Hello all!
>>
>> As some of you might have already noticed, the old SVN repository (hosted by 
>> SourceForge) does not contain the 1.10 branch yet. The reason for not 
>> creating it yet is because we would like to argue a bit about it's necessity.
>>
>> The main reason we are still maintaining the old SVN branches synchronized 
>> with GIT is for old checkouts to still be able to update their sources. 
>> However, this is not the case of OpenSIPS 1.10, since all the new checkouts 
>> should be done directly from the GIT repository.
>>
>> A different reason is that we are using a few scripts for automatically 
>> generate documentation, db schemas, debs and so on and so forth. Most of 
>> these scripts rely on the old SVN repository to make sure they always use 
>> the latest version of the sources. However we think it is worth investing 
>> time in porting them to GIT, since at a certain point we would like to 
>> completely get rid of the SVN repository. And probably it is a good idea to 
>> start now!
>>
> YES!
>
>> So basically my question is: do you think we should still invest effort in 
>> creating and maintaining the 1.10 SVN branch on the old repository? Or you 
>> would rather migrate your deployments to a GIT based repository?
>>
> I don't think you guys should waste time in having a subversion branch. We 
> use git now, subversion is in the past!
>
> Also, for those with nostalgia, this actually works:
>
> svn checkout https://github.com/OpenSIPS/opensips
>
>
> Cheers,
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] executing redis commands

2013-08-13 Thread Jayesh Nambiar
Hi Vlad,
OK, Thanks for the clarity.

--- Jayesh


On Tue, Aug 13, 2013 at 3:36 PM, Vlad Paiu  wrote:

>  Hello,
>
> Currently, only MongoDB has support for raw querying against the DB.
> We have plans for adding raw query support for Redis and Cassandra for the
> next release.
>
> Best Regards,
>
> Vlad Paiu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 08/13/2013 12:55 PM, Jayesh Nambiar wrote:
>
> Hello All,
> Just came across:
> cache_raw_query( storage_id, raw_query,result_avp)
> Is this used to execute native commands. So can I run native commands in
> redis using this function?
>
>  --- Jayesh
>
>
> On Tue, Aug 13, 2013 at 11:09 AM, Jayesh Nambiar wrote:
>
>> Hello All,
>> Currently I cannot execute redis commands directly from the script. I am
>> limited to core commands to handle values in redis. Do we have this feature
>> of executing redis commands directly from the script in the roadmap? This
>> would definitely give more flexibility and efficiency to handle the values
>> stored in the redis cache !!
>>
>>  Thanks.
>>
>>  --- Jayesh
>>
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [OpenSIPS-Devel] OpenSIPS 1.10 SVN branch

2013-08-13 Thread Saúl Ibarra Corretgé
Hi!

On Aug 13, 2013, at 12:56 PM, Răzvan Crainea wrote:

> Hello all!
> 
> As some of you might have already noticed, the old SVN repository (hosted by 
> SourceForge) does not contain the 1.10 branch yet. The reason for not 
> creating it yet is because we would like to argue a bit about it's necessity.
> 
> The main reason we are still maintaining the old SVN branches synchronized 
> with GIT is for old checkouts to still be able to update their sources. 
> However, this is not the case of OpenSIPS 1.10, since all the new checkouts 
> should be done directly from the GIT repository.
> 
> A different reason is that we are using a few scripts for automatically 
> generate documentation, db schemas, debs and so on and so forth. Most of 
> these scripts rely on the old SVN repository to make sure they always use the 
> latest version of the sources. However we think it is worth investing time in 
> porting them to GIT, since at a certain point we would like to completely get 
> rid of the SVN repository. And probably it is a good idea to start now!
> 

YES!

> So basically my question is: do you think we should still invest effort in 
> creating and maintaining the 1.10 SVN branch on the old repository? Or you 
> would rather migrate your deployments to a GIT based repository?
> 

I don't think you guys should waste time in having a subversion branch. We use 
git now, subversion is in the past!

Also, for those with nostalgia, this actually works:

svn checkout https://github.com/OpenSIPS/opensips


Cheers,

--
Saúl Ibarra Corretgé
AG Projects




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS 1.10 SVN branch

2013-08-13 Thread Răzvan Crainea

Hello all!

As some of you might have already noticed, the old SVN repository 
(hosted by SourceForge) does not contain the 1.10 branch yet. The reason 
for not creating it yet is because we would like to argue a bit about 
it's necessity.


The main reason we are still maintaining the old SVN branches 
synchronized with GIT is for old checkouts to still be able to update 
their sources. However, this is not the case of OpenSIPS 1.10, since all 
the new checkouts should be done directly from the GIT repository.


A different reason is that we are using a few scripts for automatically 
generate documentation, db schemas, debs and so on and so forth. Most of 
these scripts rely on the old SVN repository to make sure they always 
use the latest version of the sources. However we think it is worth 
investing time in porting them to GIT, since at a certain point we would 
like to completely get rid of the SVN repository. And probably it is a 
good idea to start now!


So basically my question is: do you think we should still invest effort 
in creating and maintaining the 1.10 SVN branch on the old repository? 
Or you would rather migrate your deployments to a GIT based repository?


Do not be afraid to throw your opinions, any feedback is welcome!

Thanks!
--
Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Radius CDR Acct-Status-Type on failed calls

2013-08-13 Thread John Quick
Using modules aaa_radius and acc in version 1.9.1 of OpenSIPS, I want to
report CDR's to a radius server.
I am using Wireshark to check the actual Radius messages being sent.

If the call is answered, then the Radius messages are good:
Start of the call (200 Ok response to INVITE), "Start" message with
Acct-Status-Type=Start(1)
End of the call (200 Ok response to BYE), a "Stop" message with
Acct-Status-Type=Stop(2)

However, if the call fails (e.g. INVITE response "486 Busy here") the value
of Acct-Status-Type is zero.
Acct-Status-Type=Unknown(0)
We require reporting of failed calls, but the Radius server cannot interpret
the message because of this zero value.

Is it possible to somehow force the value of Acct-Status-Type to 2 (Stop) on
failed call reporting?
The aaa_missed_flag is set. The failed_transaction_flag just makes it write
the message twice.

John Quick
Smartvox Limited
Web: www.smartvox.co.uk




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] executing redis commands

2013-08-13 Thread Vlad Paiu

Hello,

Currently, only MongoDB has support for raw querying against the DB.
We have plans for adding raw query support for Redis and Cassandra for 
the next release.


Best Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com

On 08/13/2013 12:55 PM, Jayesh Nambiar wrote:

Hello All,
Just came across:


cache_raw_query( storage_id, raw_query,result_avp)

Is this used to execute native commands. So can I run native commands 
in redis using this function?


--- Jayesh


On Tue, Aug 13, 2013 at 11:09 AM, Jayesh Nambiar > wrote:


Hello All,
Currently I cannot execute redis commands directly from the
script. I am limited to core commands to handle values in redis.
Do we have this feature of executing redis commands directly from
the script in the roadmap? This would definitely give more
flexibility and efficiency to handle the values stored in the
redis cache !!

Thanks.

--- Jayesh




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] executing redis commands

2013-08-13 Thread Jayesh Nambiar
Hello All,
Just came across:
cache_raw_query( storage_id, raw_query,result_avp)
Is this used to execute native commands. So can I run native commands in
redis using this function?

--- Jayesh


On Tue, Aug 13, 2013 at 11:09 AM, Jayesh Nambiar wrote:

> Hello All,
> Currently I cannot execute redis commands directly from the script. I am
> limited to core commands to handle values in redis. Do we have this feature
> of executing redis commands directly from the script in the roadmap? This
> would definitely give more flexibility and efficiency to handle the values
> stored in the redis cache !!
>
> Thanks.
>
> --- Jayesh
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Problem with DB migration from 1.8.2 to 1.9.1

2013-08-13 Thread dpa


Hello!

 

Now I am using Opensips 1.6.4-2 but decide to upgrade ones to 1.9.1

First of all I try to migrate MySQL DB.

Migrate from 1.6.4.2 to 1.7.0 - OK

Migrate from 1.7.0 to 1.8.2 - OK

Migrate from 1.8.2 to 1.9.1 - OK except one table "dr_carriers"

 

During migration process from 1.8 to 1.9  i see such error

"ERROR: failed to migrate opensips8.dr_carriers to opensips9.dr_carriers!!!

Skip it and continue (y/n)? "

 

Other tables had been migrated successfully

 

Thank you for any help

 

 

 

 

<>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users