Re: [OpenSIPS-Users] Need help installing opensips-3.2 in centos 7 .

2021-08-19 Thread Liviu Chircu

On 19.08.2021 10:23, Sasmita Panda wrote:

This will give me the latest git branch with fix ?


Correct!

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
OpenSIPS Summit 2021 Distributed | www.opensips.org/events


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


Re: [OpenSIPS-Users] Need help installing opensips-3.2 in centos 7 .

2021-08-19 Thread Sasmita Panda
git clone https://github.com/OpenSIPS/opensips.git -b 3.2 opensips-3.2

This will give me the latest git branch with fix ? or I need to do
something else ?

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Aug 19, 2021 at 12:07 PM Liviu Chircu  wrote:

> On 19.08.2021 09:06, Sasmita Panda wrote:
> > Opensips-3.2 is crashing when I am starting the process  . Please do
> > help .
> >
> > Attached the logs in through the pastbean . Please have a look and
> > suggest how to fix this ..
> >
> Hi, Sasmita!
>
> Thank you for the nice logs, this bug is now fixed!  So you either have
> to wait until tomorrow's new package builds or you can grab the fix
> immediately if you are using git.
>
> Best Regards,
>
> --
> Liviu Chircu
> www.twitter.com/liviuchircu | www.opensips-solutions.com
> OpenSIPS Summit 2021 Distributed | www.opensips.org/events
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help installing opensips-3.2 in centos 7 .

2021-08-19 Thread Liviu Chircu

On 19.08.2021 09:06, Sasmita Panda wrote:
Opensips-3.2 is crashing when I am starting the process  . Please do 
help .


Attached the logs in through the pastbean . Please have a look and 
suggest how to fix this ..



Hi, Sasmita!

Thank you for the nice logs, this bug is now fixed!  So you either have 
to wait until tomorrow's new package builds or you can grab the fix 
immediately if you are using git.


Best Regards,

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
OpenSIPS Summit 2021 Distributed | www.opensips.org/events


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


Re: [OpenSIPS-Users] Need help installing opensips-3.2 in centos 7 .

2021-08-19 Thread Sasmita Panda
Opensips-3.2 is crashing when I am starting the process  . Please do help .

Attached the logs in through the pastbean . Please have a look and suggest
how to fix this ..

https://pastebin.com/rkrq6L9w

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Aug 18, 2021 at 10:12 AM Sasmita Panda  wrote:

> Hi ,
>
> You mean to say the proto_wss module is dependent on the tls_wolfssl
> module . I need proto_wss . proto_tls and tls_mgm .
>
> I had compiled and installed opensips-3.2 . tls_mgm module is dependent on
> tls_openssl or tls_wolfssl . I got this from opensips  documentation  . So
> I compiled with tls_openssl successfully'
>
> Please correct me If I did something wrong .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Tue, Aug 17, 2021 at 8:00 PM Eugen Prieb  wrote:
>
>> Hello,
>>
>> this module is excluded by default...
>>
>> make menuconfig --> Configure Compiling Option --> Configure Exluded
>> Modules ... and deselect "WSS Module"...
>> Save all changes and compile...
>> Am 17.08.2021 um 12:40 schrieb Sasmita Panda:
>>
>> Hi All ,
>>
>> I was trying to build opensips-3.2 from git . I am blocked in the
>> tls_wolfssl module . I don't need this
>> module . Is there any way to exclude this module?
>>
>> If this is by default included the do let me know how to solve the error
>> below .
>>
>>
>>
>>
>>
>>
>> *make[1]: Entering directory `/opt/opensips-3.2/modules/tls_wolfssl'
>> configure: error: cannot find install-sh, install.sh, or shtool in
>> build-aux "."/build-aux make[1]: *** [lib/lib/libwolfssl.a] Error 1
>> make[1]: Leaving directory `/opt/opensips-3.2/modules/tls_wolfssl' make:
>> *** [modules] Error 2 *
>>
>> *What should I do for this ? shtool is already installed . *
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>> ___
>> 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


Re: [OpenSIPS-Users] Need help installing opensips-3.2 in centos 7 .

2021-08-17 Thread Liviu Chircu

On 17.08.2021 13:40, Sasmita Panda wrote:
I was trying to build opensips-3.2 from git . I am blocked in the 
tls_wolfssl module . I don't need this

module . Is there any way to exclude this module?


Hi Sasmita,

This module is already excluded by default.  Make sure to grab the new 
"exclude_modules=" settings from Makefile.conf.template, and not just 
copy-paste your previous Makefile.conf file before building the 3.2 tree.


Best Regards,

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
OpenSIPS Summit 2021 Distributed | www.opensips.org/events


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


[OpenSIPS-Users] Need help installing opensips-3.2 in centos 7 .

2021-08-17 Thread Sasmita Panda
Hi All ,

I was trying to build opensips-3.2 from git . I am blocked in the
tls_wolfssl module . I don't need this
module . Is there any way to exclude this module?

If this is by default included the do let me know how to solve the error
below .






*make[1]: Entering directory
`/opt/opensips-3.2/modules/tls_wolfssl'configure: error: cannot find
install-sh, install.sh, or shtool in build-aux "."/build-auxmake[1]: ***
[lib/lib/libwolfssl.a] Error 1make[1]: Leaving directory
`/opt/opensips-3.2/modules/tls_wolfssl'make: *** [modules] Error 2*

*What should I do for this ? shtool is already installed . *

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help in using opensips 3.1 sipcapture module with Homer7.

2021-03-26 Thread Sasmita Panda
Hi ,

I am using opensips3.1 . I have installed Homer 7 from docker in which
builtin capture server is heplify server  . This is working perfectly fine
.

Now I wanted to use Openisps sipcapture module as capture server which can
add data in homer DB .  As I am working on opensips environment from long
time . So I am a bit confident on opensips rather than Heplify Server .

But ,when I am trying to run this opensips is crashing when its getting
some hep packet .
I have generated core file for this . please do have a look into the file
and let me know what may be the possible reason for this .

Please do help . Any kind of information is appreciated .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


core.8668-full-log
Description: Binary data


opensips_captureserver.cfg
Description: Binary data
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help transitioning to opensips-cli

2020-08-21 Thread Liviu Chircu

On 21.08.2020 05:12, Robert Dyck wrote:


As a learning exercise I wanted to create a new database using 
opensips-cli "database create sqlite:///tmp" or "database create 
sqlite:///tmp/tmp.db". The response was invariably "ERROR: Bad URL, it 
should resemble: sqlite:///path/to/db". Omitting the path gives the 
same error message.


What am I missing?

Rob


Hey Robert,

The oldest programmer rule in the book applies here: "if it isn't 
tested, it doesn't work".  Could you open up an issue on the 
opensips-cli tracker [1], so we can better keep track of this issue?  It 
may very well have a quick fix, since SQLAlchemy should work well on top 
of SQLite.


Many thanks,

[1]: https://github.com/opensips/opensips-cli/issues

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit 2020 Distributed
  www.opensips.org/events/Summit-2020Distributed

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


[OpenSIPS-Users] Need help transitioning to opensips-cli

2020-08-20 Thread Robert Dyck
My database was created with the old opensipsdbctl tool. The database 
engine is sqlite. I want to start using opensips-cli to administer the 
subscriber table. The trouble I am having is opensips-cli wants to connect to 
the database named "opensips". How do I associate the sqlite database at /
usr/local/etc/opensips/sqlite with the name "opensips"?

As a learning exercise I wanted to create a new database using opensips-cli 
"database create sqlite:///tmp" or "database create sqlite:///tmp/tmp.db". The 
response was invariably "*ERROR*: Bad URL, it should resemble: sqlite:///
path/to/db". Omitting the path gives the same error message.

What am I missing?
Rob


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


Re: [OpenSIPS-Users] Need help regarding dp_translate in opensips 2.2 .

2020-07-27 Thread Răzvan Crainea

Hi, Sasmita!

You should only check the `$avp(trl)` value if `dp_translate` succeeeds.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 7/22/20 11:51 AM, Sasmita Panda wrote:

Hi All ,
in opensips 1.11 I was using dp_translate function as below and its 
working fine .


$avp(src) = $rd;
xlog("request domain,$avp(src)");
dp_translate("5", "$avp(src)/$avp(trl)");
$avp(grp)=$(avp(trl){s.int });

In opensips -2.2 i am using the same but its no working . The error is 
as below .


*WARNING:core:do_assign: no value in right expression at 
/usr/etc/opensips/opensips_carrier.cfg:318*

*
*
*line 318 refer to *$avp(grp)=$(avp(trl){s.int });  line .

What I am doing wrong . Please help me .

*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
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


[OpenSIPS-Users] Need help regarding dp_translate in opensips 2.2 .

2020-07-22 Thread Sasmita Panda
Hi All ,
in opensips 1.11 I was using dp_translate function as below and its working
fine .

$avp(src) = $rd;
xlog("request domain,$avp(src)");
dp_translate("5", "$avp(src)/$avp(trl)");
$avp(grp)=$(avp(trl){s.int});

In opensips -2.2 i am using the same but its no working . The error is as
below .

*WARNING:core:do_assign: no value in right expression at
/usr/etc/opensips/opensips_carrier.cfg:318*

*line 318 refer to  *$avp(grp)=$(avp(trl){s.int});  line .

What I am doing wrong . Please help me .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help using cachedb_local .

2020-06-05 Thread Liviu Chircu

On 6/5/20 9:15 AM, Sasmita Panda wrote:

For the also it gives same error .

opensips: ERROR:core:set_mod_param_regex: parameter 
 not found in module 

*/
/*


Hi Sasmita,

It looks like you are using OpenSIPS 2.2 or below.  Please upgrade to a 
more modern version and retry.


Regards,

--
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

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


Re: [OpenSIPS-Users] Need help using cachedb_local .

2020-06-05 Thread Sasmita Panda
For the also it gives same error .

opensips: ERROR:core:set_mod_param_regex: parameter  not
found in module 

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Fri, Jun 5, 2020 at 1:12 AM Ovidiu Sas  wrote:

> Have you defined the 'collection1' as part of the cache_collections param?
> Something like:
> modparam("cachedb_local", "cache_collections", "collection1")
>
> Regards,
> Ovidiu Sas
>
> On Thu, Jun 4, 2020 at 8:30 AM Sasmita Panda  wrote:
> >
> > Hi,
> >
> > modparam("cachedb_local", "cachedb_url", "local:///collection1")
> >
> >
> >  While setting the above parameter in the cachedb_local module I am
> getting below error .
> >
> > ERROR:core:set_mod_param_regex: parameter  not found in
> module 
> > Jun  4 12:24:15 ip-20-0-114-18 opensips: CRITICAL:core:yyerror: parse
> error in config file /usr/etc/opensips/opensips_memorycache_registrar.cfg,
> line 148, column 20-21: Parameter  not found in module
>  - can't set
> >
> > Its saying the cachedb_url parameter is not found in the module . But
> the mobile document says the parameter exists . Do suggest if I am doing
> anything wrong .
> >
> > Thanks & Regards
> > Sasmita Panda
> > Senior Network Testing and Software Engineer
> > 3CLogic , ph:07827611765
> > ___
> > 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] Need help using cachedb_local .

2020-06-04 Thread Ovidiu Sas
Have you defined the 'collection1' as part of the cache_collections param?
Something like:
modparam("cachedb_local", "cache_collections", "collection1")

Regards,
Ovidiu Sas

On Thu, Jun 4, 2020 at 8:30 AM Sasmita Panda  wrote:
>
> Hi,
>
> modparam("cachedb_local", "cachedb_url", "local:///collection1")
>
>
>  While setting the above parameter in the cachedb_local module I am getting 
> below error .
>
> ERROR:core:set_mod_param_regex: parameter  not found in module 
> 
> Jun  4 12:24:15 ip-20-0-114-18 opensips: CRITICAL:core:yyerror: parse error 
> in config file /usr/etc/opensips/opensips_memorycache_registrar.cfg, line 
> 148, column 20-21: Parameter  not found in module 
>  - can't set
>
> Its saying the cachedb_url parameter is not found in the module . But the 
> mobile document says the parameter exists . Do suggest if I am doing anything 
> wrong .
>
> Thanks & Regards
> Sasmita Panda
> Senior Network Testing and Software Engineer
> 3CLogic , ph:07827611765
> ___
> 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


Re: [OpenSIPS-Users] Need help in memory caching in opensips 3.0 .

2020-06-03 Thread Sasmita Panda
I have changed my config like below .
if(cache_fetch("local","passwd_$tu",$avp(password))) {
$avp(username) = $tU;

  xlog("SCRIPT: stored password is $avp(username)
 $avp(password)\n");
if (!pv_proxy_authorize("")){
proxy_challenge("", "1");
exit;
};

} else {

if (!proxy_authorize("", "subscriber")) {
# authentication failed -> do challenge
proxy_challenge("","1");
exit;
};

xlog("SCRIPT: storing password <$avp(password)>\n");

cache_store("local","passwd_$tu","$avp(password)",1200);
}

 Now its giving "Proxy authentication required" response .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Jun 3, 2020 at 12:24 AM Tito Cumpen  wrote:

> Sasmita,
>
>
> Try using
>
>
>   proxy_challenge("", "1");
>
>
> instead of
> www_challenge("", "1");
>
>
>
>
>
> On Tue, Jun 2, 2020 at 12:36 AM Sasmita Panda  wrote:
>
>> Can  anyone help me on the above issue please ? Still I am stuck on this .
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Fri, May 29, 2020 at 6:05 PM Sasmita Panda  wrote:
>>
>>> Hi ,
>>>
>>> I am trying to do memory caching for authentication .  Followed the
>>> below link.
>>> https://www.opensips.org/Documentation/Tutorials-MemoryCaching
>>>
>>> my DB looks like below .
>>> | id | username | domain   | password | email_address | ha1
>>> | ha1b | rpid |
>>>
>>> ++--++--+---+-+--+--+
>>> |  1 | 7878 | fs-reg.i3clogic.com | som123 |   | |
>>>  | NULL |
>>>
>>> loadmodule "cachedb_local.so"
>>> #loading auth module
>>> loadmodule "auth.so"
>>> loadmodule "auth_db.so"
>>>
>>> modparam("auth_db", "db_url", "mysql://root:cccl0g1c@localhost
>>> /opensips")
>>> modparam("auth_db", "calculate_ha1", yes)
>>> modparam("auth_db", "user_column", "username")
>>> #modparam("auth_db", "use_domain", 1)
>>> modparam("auth_db", "domain_column", "domain")
>>> modparam("auth_db", "password_column", "password")
>>> modparam("auth_db", "load_credentials", "$avp(55)=password")
>>>
>>> modparam("auth","username_spec","$avp(54)")
>>> modparam("auth","password_spec","$avp(55)")
>>>
>>>  if(cache_fetch("local","passwd_$tu",$avp(55))) {
>>> $avp(54) = $tU;
>>> if (!pv_www_authorize("")) {
>>> # authentication failed -> do challenge
>>> www_challenge("", "1");
>>> exit;
>>> };
>>> } else {
>>> if (!www_authorize("", "subscriber")) {
>>> # authentication failed -> do challenge
>>> www_challenge("", "1");
>>> exit;
>>> };
>>> # after DB authentication, the password is available
>>> cache_store("local","passwd_$tu","$avp(55)",1200);
>>> }
>>>
>>>
>>> This thing I have done . While doing DB authentication its working , but
>>> which doing through memory caching its giving error "Incorrect Password" .
>>> Whats wrong I  am doing . please help me .
>>>
>>> *Thanks & Regards*
>>> *Sasmita Panda*
>>> *Senior Network Testing and Software Engineer*
>>> *3CLogic , ph:07827611765*
>>>
>> ___
>> 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
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help in memory caching in opensips 3.0 .

2020-06-02 Thread Tito Cumpen
Sasmita,


Try using


  proxy_challenge("", "1");


instead of
www_challenge("", "1");





On Tue, Jun 2, 2020 at 12:36 AM Sasmita Panda  wrote:

> Can  anyone help me on the above issue please ? Still I am stuck on this .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Fri, May 29, 2020 at 6:05 PM Sasmita Panda  wrote:
>
>> Hi ,
>>
>> I am trying to do memory caching for authentication .  Followed the below
>> link.
>> https://www.opensips.org/Documentation/Tutorials-MemoryCaching
>>
>> my DB looks like below .
>> | id | username | domain   | password | email_address | ha1 |
>> ha1b | rpid |
>>
>> ++--++--+---+-+--+--+
>> |  1 | 7878 | fs-reg.i3clogic.com | som123 |   | |
>>| NULL |
>>
>> loadmodule "cachedb_local.so"
>> #loading auth module
>> loadmodule "auth.so"
>> loadmodule "auth_db.so"
>>
>> modparam("auth_db", "db_url", "mysql://root:cccl0g1c@localhost/opensips")
>> modparam("auth_db", "calculate_ha1", yes)
>> modparam("auth_db", "user_column", "username")
>> #modparam("auth_db", "use_domain", 1)
>> modparam("auth_db", "domain_column", "domain")
>> modparam("auth_db", "password_column", "password")
>> modparam("auth_db", "load_credentials", "$avp(55)=password")
>>
>> modparam("auth","username_spec","$avp(54)")
>> modparam("auth","password_spec","$avp(55)")
>>
>>  if(cache_fetch("local","passwd_$tu",$avp(55))) {
>> $avp(54) = $tU;
>> if (!pv_www_authorize("")) {
>> # authentication failed -> do challenge
>> www_challenge("", "1");
>> exit;
>> };
>> } else {
>> if (!www_authorize("", "subscriber")) {
>> # authentication failed -> do challenge
>> www_challenge("", "1");
>> exit;
>> };
>> # after DB authentication, the password is available
>> cache_store("local","passwd_$tu","$avp(55)",1200);
>> }
>>
>>
>> This thing I have done . While doing DB authentication its working , but
>> which doing through memory caching its giving error "Incorrect Password" .
>> Whats wrong I  am doing . please help me .
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
> ___
> 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] Need help in memory caching in opensips 3.0 .

2020-06-02 Thread Sasmita Panda
Can  anyone help me on the above issue please ? Still I am stuck on this .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Fri, May 29, 2020 at 6:05 PM Sasmita Panda  wrote:

> Hi ,
>
> I am trying to do memory caching for authentication .  Followed the below
> link.
> https://www.opensips.org/Documentation/Tutorials-MemoryCaching
>
> my DB looks like below .
> | id | username | domain   | password | email_address | ha1 |
> ha1b | rpid |
>
> ++--++--+---+-+--+--+
> |  1 | 7878 | fs-reg.i3clogic.com | som123 |   | |
>| NULL |
>
> loadmodule "cachedb_local.so"
> #loading auth module
> loadmodule "auth.so"
> loadmodule "auth_db.so"
>
> modparam("auth_db", "db_url", "mysql://root:cccl0g1c@localhost/opensips")
> modparam("auth_db", "calculate_ha1", yes)
> modparam("auth_db", "user_column", "username")
> #modparam("auth_db", "use_domain", 1)
> modparam("auth_db", "domain_column", "domain")
> modparam("auth_db", "password_column", "password")
> modparam("auth_db", "load_credentials", "$avp(55)=password")
>
> modparam("auth","username_spec","$avp(54)")
> modparam("auth","password_spec","$avp(55)")
>
>  if(cache_fetch("local","passwd_$tu",$avp(55))) {
> $avp(54) = $tU;
> if (!pv_www_authorize("")) {
> # authentication failed -> do challenge
> www_challenge("", "1");
> exit;
> };
> } else {
> if (!www_authorize("", "subscriber")) {
> # authentication failed -> do challenge
> www_challenge("", "1");
> exit;
> };
> # after DB authentication, the password is available
> cache_store("local","passwd_$tu","$avp(55)",1200);
> }
>
>
> This thing I have done . While doing DB authentication its working , but
> which doing through memory caching its giving error "Incorrect Password" .
> Whats wrong I  am doing . please help me .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help in memory caching in opensips 3.0 .

2020-05-29 Thread Sasmita Panda
Hi ,

I am trying to do memory caching for authentication .  Followed the below
link.
https://www.opensips.org/Documentation/Tutorials-MemoryCaching

my DB looks like below .
| id | username | domain   | password | email_address | ha1 |
ha1b | rpid |
++--++--+---+-+--+--+
|  1 | 7878 | fs-reg.i3clogic.com | som123 |   | |
 | NULL |

loadmodule "cachedb_local.so"
#loading auth module
loadmodule "auth.so"
loadmodule "auth_db.so"

modparam("auth_db", "db_url", "mysql://root:cccl0g1c@localhost/opensips")
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "user_column", "username")
#modparam("auth_db", "use_domain", 1)
modparam("auth_db", "domain_column", "domain")
modparam("auth_db", "password_column", "password")
modparam("auth_db", "load_credentials", "$avp(55)=password")

modparam("auth","username_spec","$avp(54)")
modparam("auth","password_spec","$avp(55)")

 if(cache_fetch("local","passwd_$tu",$avp(55))) {
$avp(54) = $tU;
if (!pv_www_authorize("")) {
# authentication failed -> do challenge
www_challenge("", "1");
exit;
};
} else {
if (!www_authorize("", "subscriber")) {
# authentication failed -> do challenge
www_challenge("", "1");
exit;
};
# after DB authentication, the password is available
cache_store("local","passwd_$tu","$avp(55)",1200);
}


This thing I have done . While doing DB authentication its working , but
which doing through memory caching its giving error "Incorrect Password" .
Whats wrong I  am doing . please help me .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to use alias db .

2020-05-10 Thread Sasmita Panda
Trying to change my question with a bit detail .

When opensips service is writing data into the DB that time it keeps the
data in the memory cache itself also . In this case when the cache expire
that reads the data from the DB .  But if I am adding data into the DB
manually then that cant get sync with the cache directly without reload of
the table or service restart . I hope I am right . rectify me if I am wrong
.

Now if I am right , then how can I automate things while adding data in the
domain table . I dont need manually adding the data in the table and db
reload .

Another thing if I am using non-caching mode then I don't need reload . But
in the case for every request opensips service will go to the DB . It will
increase the db query . Will this affect the service ? Please do help .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Fri, May 8, 2020 at 12:18 PM Sasmita Panda  wrote:

> Hi ,
>
> If I am using domain module in cashing mode then db reload is mandatory
> when I am adding a new domain in the table  ?
>
> I was expecting if in caching mode when the cache will expire, opensips
> service  will read the domain table automatically . But this is not
> happening .
> Can anyone clarify my doubt please .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Thu, Apr 30, 2020 at 4:47 PM Giovanni Maruzzelli 
> wrote:
>
>> On Thu, Apr 30, 2020 at 1:15 PM Sasmita Panda  wrote:
>>
>>> Thank u so much . I am just wandering .
>>> In opensips 3.0 there  is opensips_cli .  Is this possible through cli
>>> command also ? I haven't tried yet .
>>>
>>>
>> may I suggest reading the documentation?
>> ;)
>> -giovanni
>>
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> OpenTelecom.IT
>> cell: +39 347 266 56 18
>>
>>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to use alias db .

2020-05-08 Thread Sasmita Panda
Hi ,

If I am using domain module in cashing mode then db reload is mandatory
when I am adding a new domain in the table  ?

I was expecting if in caching mode when the cache will expire, opensips
service  will read the domain table automatically . But this is not
happening .
Can anyone clarify my doubt please .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Apr 30, 2020 at 4:47 PM Giovanni Maruzzelli 
wrote:

> On Thu, Apr 30, 2020 at 1:15 PM Sasmita Panda  wrote:
>
>> Thank u so much . I am just wandering .
>> In opensips 3.0 there  is opensips_cli .  Is this possible through cli
>> command also ? I haven't tried yet .
>>
>>
> may I suggest reading the documentation?
> ;)
> -giovanni
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to use alias db .

2020-04-30 Thread Giovanni Maruzzelli
On Thu, Apr 30, 2020 at 1:15 PM Sasmita Panda  wrote:

> Thank u so much . I am just wandering .
> In opensips 3.0 there  is opensips_cli .  Is this possible through cli
> command also ? I haven't tried yet .
>
>
may I suggest reading the documentation?
;)
-giovanni


-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to use alias db .

2020-04-30 Thread Sasmita Panda
Thank u so much . I am just wandering .
In opensips 3.0 there  is opensips_cli .  Is this possible through cli
command also ? I haven't tried yet .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Apr 30, 2020 at 1:46 PM Giovanni Maruzzelli 
wrote:

> you reload the domain table via MI interface each time you change it
> -giovanni
>
>
>
>
> On Thu, Apr 30, 2020 at 10:11 AM Sasmita Panda  wrote:
>
>> I have one opensips server , and I have mapped 2 domain into that . In
>> the config file I have added the alias list for that domain .
>> for example :
>> alias="freeswitch-registrar.xyz.com"
>> alias="freeswitch-cisco.xyz.com"
>>
>> route{
>>   if (!uri==myself) {
>> send_reply("403","Rely forbidden");
>> exit;
>> }
>> ..
>> }
>> If any request coming to this has the request uri matches with the alias
>> added then that request get processed else it gives Error message .
>>
>> Now if I am mapping another domain to the server but I dont want to
>> change the config and restart the service again . I want any other way to
>> do dynamically so that whenever I will add any domain opensips will read
>> that and process the request without service restart .
>>
>>
>> How will I achive this ?
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Thu, Apr 30, 2020 at 12:56 PM Bogdan-Andrei Iancu 
>> wrote:
>>
>>> Hi Sasmita,
>>>
>>> To be honest I do not understand what you want to achieve. Could you
>>> provide an example of aliasing you want to have ?
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>>
>>> OpenSIPS Founder and Developer
>>>   https://www.opensips-solutions.com
>>>
>>> On 4/30/20 9:33 AM, Sasmita Panda wrote:
>>>
>>> Ok . But username cant be fixed . That can be anything .
>>>
>>> When I am adding aliase in the config file that only matches the domain
>>> and process the request . Isn't the aliase_db do the same thing ?
>>>
>>>
>>> *Thanks & Regards*
>>> *Sasmita Panda*
>>> *Senior Network Testing and Software Engineer*
>>> *3CLogic , ph:07827611765*
>>>
>>>
>>> On Wed, Apr 29, 2020 at 6:21 PM Bogdan-Andrei Iancu 
>>> wrote:
>>>
 Hi,

 The aliase_db module does full aliasing, user+domain to another
 user+domain, not only domains. And you can test the return code of the
 lookup function to see if any matching and translation was done or not.

 Regards,

 Bogdan-Andrei Iancu

 OpenSIPS Founder and Developer
   https://www.opensips-solutions.com

 On 4/29/20 10:16 AM, Sasmita Panda wrote:

 Hi All ,

 For the first time I am trying to use alias db . Before processing any
 request I wanted to do alias db lookup , if find the corresponding domain
 in the alias db then process the request otherwise not .

 How will I do this ?

 *Thanks & Regards*
 *Sasmita Panda*
 *Senior Network Testing and Software Engineer*
 *3CLogic , ph:07827611765*

 ___
 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
>>
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> 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] Need help to use alias db .

2020-04-30 Thread Bogdan-Andrei Iancu

Just use the domain module for that:
https://opensips.org/html/docs/modules/2.4.x/domain.html#func_is_uri_host_local

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com

On 4/30/20 11:08 AM, Sasmita Panda wrote:
I have one opensips server , and I have mapped 2 domain into that . In 
the config file I have added the alias list for that domain .

for example :
alias="freeswitch-registrar.xyz.com "
alias="freeswitch-cisco.xyz.com "

route{
  if (!uri==myself) {
                                send_reply("403","Rely forbidden");
                                exit;
                        }
..
}
If any request coming to this has the request uri matches with the 
alias added then that request get processed else it gives Error message .


Now if I am mapping another domain to the server but I dont want to 
change the config and restart the service again . I want any other way 
to do dynamically so that whenever I will add any domain opensips will 
read that and process the request without service restart .



How will I achive this ?


*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


On Thu, Apr 30, 2020 at 12:56 PM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi Sasmita,

To be honest I do not understand what you want to achieve. Could
you provide an example of aliasing you want to have ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com

On 4/30/20 9:33 AM, Sasmita Panda wrote:

Ok . But username cant be fixed . That can be anything .

When I am adding aliase in the config file that only matches the
domain and process the request . Isn't the aliase_db do the same
thing ?


*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


On Wed, Apr 29, 2020 at 6:21 PM Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:

Hi,

The aliase_db module does full aliasing, user+domain to
another user+domain, not only domains. And you can test the
return code of the lookup function to see if any matching and
translation was done or not.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com

On 4/29/20 10:16 AM, Sasmita Panda wrote:

Hi All ,

For the first time I am trying to use alias db . Before
processing any request I wanted to do alias db lookup , if
find the corresponding domain in the alias db then process
the request otherwise not .

How will I do this ?

*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
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] Need help to use alias db .

2020-04-30 Thread Giovanni Maruzzelli
you reload the domain table via MI interface each time you change it
-giovanni




On Thu, Apr 30, 2020 at 10:11 AM Sasmita Panda  wrote:

> I have one opensips server , and I have mapped 2 domain into that . In the
> config file I have added the alias list for that domain .
> for example :
> alias="freeswitch-registrar.xyz.com"
> alias="freeswitch-cisco.xyz.com"
>
> route{
>   if (!uri==myself) {
> send_reply("403","Rely forbidden");
> exit;
> }
> ..
> }
> If any request coming to this has the request uri matches with the alias
> added then that request get processed else it gives Error message .
>
> Now if I am mapping another domain to the server but I dont want to change
> the config and restart the service again . I want any other way to do
> dynamically so that whenever I will add any domain opensips will read that
> and process the request without service restart .
>
>
> How will I achive this ?
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Thu, Apr 30, 2020 at 12:56 PM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Sasmita,
>>
>> To be honest I do not understand what you want to achieve. Could you
>> provide an example of aliasing you want to have ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>>
>> On 4/30/20 9:33 AM, Sasmita Panda wrote:
>>
>> Ok . But username cant be fixed . That can be anything .
>>
>> When I am adding aliase in the config file that only matches the domain
>> and process the request . Isn't the aliase_db do the same thing ?
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Wed, Apr 29, 2020 at 6:21 PM Bogdan-Andrei Iancu 
>> wrote:
>>
>>> Hi,
>>>
>>> The aliase_db module does full aliasing, user+domain to another
>>> user+domain, not only domains. And you can test the return code of the
>>> lookup function to see if any matching and translation was done or not.
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>>
>>> OpenSIPS Founder and Developer
>>>   https://www.opensips-solutions.com
>>>
>>> On 4/29/20 10:16 AM, Sasmita Panda wrote:
>>>
>>> Hi All ,
>>>
>>> For the first time I am trying to use alias db . Before processing any
>>> request I wanted to do alias db lookup , if find the corresponding domain
>>> in the alias db then process the request otherwise not .
>>>
>>> How will I do this ?
>>>
>>> *Thanks & Regards*
>>> *Sasmita Panda*
>>> *Senior Network Testing and Software Engineer*
>>> *3CLogic , ph:07827611765*
>>>
>>> ___
>>> 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
>


-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to use alias db .

2020-04-30 Thread Sasmita Panda
I have one opensips server , and I have mapped 2 domain into that . In the
config file I have added the alias list for that domain .
for example :
alias="freeswitch-registrar.xyz.com"
alias="freeswitch-cisco.xyz.com"

route{
  if (!uri==myself) {
send_reply("403","Rely forbidden");
exit;
}
..
}
If any request coming to this has the request uri matches with the alias
added then that request get processed else it gives Error message .

Now if I am mapping another domain to the server but I dont want to change
the config and restart the service again . I want any other way to do
dynamically so that whenever I will add any domain opensips will read that
and process the request without service restart .


How will I achive this ?


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Apr 30, 2020 at 12:56 PM Bogdan-Andrei Iancu 
wrote:

> Hi Sasmita,
>
> To be honest I do not understand what you want to achieve. Could you
> provide an example of aliasing you want to have ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
>
> On 4/30/20 9:33 AM, Sasmita Panda wrote:
>
> Ok . But username cant be fixed . That can be anything .
>
> When I am adding aliase in the config file that only matches the domain
> and process the request . Isn't the aliase_db do the same thing ?
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Apr 29, 2020 at 6:21 PM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi,
>>
>> The aliase_db module does full aliasing, user+domain to another
>> user+domain, not only domains. And you can test the return code of the
>> lookup function to see if any matching and translation was done or not.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>>
>> On 4/29/20 10:16 AM, Sasmita Panda wrote:
>>
>> Hi All ,
>>
>> For the first time I am trying to use alias db . Before processing any
>> request I wanted to do alias db lookup , if find the corresponding domain
>> in the alias db then process the request otherwise not .
>>
>> How will I do this ?
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>> ___
>> 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


Re: [OpenSIPS-Users] Need help to use alias db .

2020-04-30 Thread Bogdan-Andrei Iancu

Hi Sasmita,

To be honest I do not understand what you want to achieve. Could you 
provide an example of aliasing you want to have ?


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com

On 4/30/20 9:33 AM, Sasmita Panda wrote:

Ok . But username cant be fixed . That can be anything .

When I am adding aliase in the config file that only matches the 
domain and process the request . Isn't the aliase_db do the same thing ?



*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


On Wed, Apr 29, 2020 at 6:21 PM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi,

The aliase_db module does full aliasing, user+domain to another
user+domain, not only domains. And you can test the return code of
the lookup function to see if any matching and translation was
done or not.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com

On 4/29/20 10:16 AM, Sasmita Panda wrote:

Hi All ,

For the first time I am trying to use alias db . Before
processing any request I wanted to do alias db lookup , if find
the corresponding domain in the alias db then process the
request otherwise not .

How will I do this ?

*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
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] Need help to use alias db .

2020-04-30 Thread Sasmita Panda
Ok . But username cant be fixed . That can be anything .

When I am adding aliase in the config file that only matches the domain and
process the request . Isn't the aliase_db do the same thing ?


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Apr 29, 2020 at 6:21 PM Bogdan-Andrei Iancu 
wrote:

> Hi,
>
> The aliase_db module does full aliasing, user+domain to another
> user+domain, not only domains. And you can test the return code of the
> lookup function to see if any matching and translation was done or not.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
>
> On 4/29/20 10:16 AM, Sasmita Panda wrote:
>
> Hi All ,
>
> For the first time I am trying to use alias db . Before processing any
> request I wanted to do alias db lookup , if find the corresponding domain
> in the alias db then process the request otherwise not .
>
> How will I do this ?
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> ___
> 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


Re: [OpenSIPS-Users] Need help to use alias db .

2020-04-29 Thread Bogdan-Andrei Iancu

Hi,

The aliase_db module does full aliasing, user+domain to another 
user+domain, not only domains. And you can test the return code of the 
lookup function to see if any matching and translation was done or not.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com

On 4/29/20 10:16 AM, Sasmita Panda wrote:

Hi All ,

For the first time I am trying to use alias db . Before processing any 
request I wanted to do alias db lookup , if find the corresponding 
domain in the alias db then process the request otherwise not .


How will I do this ?

*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
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


[OpenSIPS-Users] Need help to use alias db .

2020-04-29 Thread Sasmita Panda
Hi All ,

For the first time I am trying to use alias db . Before processing any
request I wanted to do alias db lookup , if find the corresponding domain
in the alias db then process the request otherwise not .

How will I do this ?

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-23 Thread Sasmita Panda
Hi Liviu ,

My document DB is act like a  cluster . I have created only 1 instance in
the cluster which has write/read permission and is the primary instance .

DocumentDB says this is the way to connect to the Db from remote
application .
cluster : mongodb://master:@
docdb-xxx.cluster-c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/?ssl=true_ca_certs=rds-combined-ca-bundle.pem=rs0
instance : mongodb://master:@
docdb-xxx.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/?ssl=true_ca_certs=rds-combined-ca-bundle.pem

In my config I had set this URL for , cachedb_mongodb , db_cachedb and also
usrloc .

modparam("usrloc", "cachedb_url","mongodb://
master:cluster2...@docdb-xxx.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/opensipsDB.userlocation
?ssl=true_ca_certs=rds-combined-ca-bundle.pem")

Error in the log :
 ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
servers found (`serverSelectionTryOnce` set):
 [TLS handshake failed: error:1416F086:SSL
routines:tls_process_server_certificate:certificate verify failed calling
ismaster on 'docdb-xxx.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017']

With same credentials I am able to connect to the doc db from console and
its connect to rs0:PRIMARY> . I am able to create DB , collection , insert
data in collection and read the data also .

where I am doing mistake .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Fri, Sep 20, 2019 at 6:02 PM Liviu Chircu  wrote:

> It looks like you are connecting to a single node (which is SECONDARY),
> rather than a replica set,
> so the driver is unable to locate a PRIMARY node, to which it can issue
> writes.
>
> What does your DocumentDB infrastructure look like?  Is it a replica set?
> A single instance?
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 16.09.2019 10:35, Sasmita Panda wrote:
>
> The new core file is given below in pastebin
>
> https://pastebin.com/zMpf12MQ
>
>
> Rather than this , I was trying to upgrade mongo c library to 1.9 and
> running with document DB .
>
> Here I am not able to connect to Document DB . its giving below error
> When I am connecting with SSL=true
>  ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
> servers found (`serverSelectionTryOnce` set): [TLS handshake failed:
> error:1416F086:SSL routines:tls_process_server_certificate:certificate
> verify failed calling ismaster on '
> docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017
> ']
>
> When I am doing without ssl
> ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: Authentication
> failed.
>
> In both the cases I am able to connect to the Doc DB from the instance
> console . But in opensips its giving such error . Opensips is not crashing
> although .  Why is this error coming . I am not getting this error in the
> code also .
>
> Below is the library version in my instance . and Document db is in same
> 3.6 version .
> dpkg -l | grep -i libmongoc
> ii  libmongoc-1.0-0  1.9.2+dfsg-1build1
>   amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.9.2+dfsg-1build1
>   amd64MongoDB C client library - dev files
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu  wrote:
>
>> Let's follow the official build guide [1], maybe it will make things
>> easier.
>>
>> So make sure to install below requirements, then try again:
>>
>> sudo apt install cmake libssl-dev libsasl2-dev
>>
>> [1]: http://mongoc.org/libmongoc/current/installing.html
>>
>> Liviu Chircu
>> OpenSIPS Developerhttp://www.opensips-solutions.com
>>
>> On 12.09.2019 14:37, Sasmita Panda wrote:
>>
>> make[1]: Entering directory '/opt/mongo-c-driver'
>>   CCLD test-replica-set
>> /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
>> symbol 'pthread_once@@GLIBC_2.2.5'
>> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
>> from command line
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-20 Thread Liviu Chircu
It looks like you are connecting to a single node (which is SECONDARY), 
rather than a replica set,
so the driver is unable to locate a PRIMARY node, to which it can issue 
writes.


What does your DocumentDB infrastructure look like?  Is it a replica 
set?  A single instance?


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 16.09.2019 10:35, Sasmita Panda wrote:

The new core file is given below in pastebin

https://pastebin.com/zMpf12MQ


Rather than this , I was trying to upgrade mongo c library to 1.9 and 
running with document DB .


Here I am not able to connect to Document DB . its giving below error
When I am connecting with SSL=true
 ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No 
suitable servers found (`serverSelectionTryOnce` set): [TLS handshake 
failed: error:1416F086:SSL 
routines:tls_process_server_certificate:certificate verify failed 
calling ismaster on 
'docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017 
']


When I am doing without ssl
ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: 
Authentication failed.


In both the cases I am able to connect to the Doc DB from the instance 
console . But in opensips its giving such error . Opensips is not 
crashing although .  Why is this error coming . I am not getting this 
error in the code also .


Below is the library version in my instance . and Document db is in 
same 3.6 version .

dpkg -l | grep -i libmongoc
ii  libmongoc-1.0-0                      1.9.2+dfsg-1build1           
      amd64        MongoDB C client library - runtime files
ii  libmongoc-dev                        1.9.2+dfsg-1build1           
      amd64        MongoDB C client library - dev files



*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu > wrote:


Let's follow the official build guide [1], maybe it will make
things easier.

So make sure to install below requirements, then try again:

sudo apt install cmake libssl-dev libsasl2-dev

[1]: http://mongoc.org/libmongoc/current/installing.html

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.09.2019 14:37, Sasmita Panda wrote:

make[1]: Entering directory '/opt/mongo-c-driver'
  CCLD     test-replica-set
/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined
reference to symbol 'pthread_once@@GLIBC_2.2.5
'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO
missing from command line

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


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-19 Thread Sasmita Panda
Is there any update on this  ?  I am blocked here .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Mon, Sep 16, 2019 at 1:05 PM Sasmita Panda  wrote:

> The new core file is given below in pastebin
>
> https://pastebin.com/zMpf12MQ
>
>
> Rather than this , I was trying to upgrade mongo c library to 1.9 and
> running with document DB .
>
> Here I am not able to connect to Document DB . its giving below error
> When I am connecting with SSL=true
>  ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
> servers found (`serverSelectionTryOnce` set): [TLS handshake failed:
> error:1416F086:SSL routines:tls_process_server_certificate:certificate
> verify failed calling ismaster on '
> docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017
> ']
>
> When I am doing without ssl
> ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: Authentication
> failed.
>
> In both the cases I am able to connect to the Doc DB from the instance
> console . But in opensips its giving such error . Opensips is not crashing
> although .  Why is this error coming . I am not getting this error in the
> code also .
>
> Below is the library version in my instance . and Document db is in same
> 3.6 version .
> dpkg -l | grep -i libmongoc
> ii  libmongoc-1.0-0  1.9.2+dfsg-1build1
>   amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.9.2+dfsg-1build1
>   amd64MongoDB C client library - dev files
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu  wrote:
>
>> Let's follow the official build guide [1], maybe it will make things
>> easier.
>>
>> So make sure to install below requirements, then try again:
>>
>> sudo apt install cmake libssl-dev libsasl2-dev
>>
>> [1]: http://mongoc.org/libmongoc/current/installing.html
>>
>> Liviu Chircu
>> OpenSIPS Developerhttp://www.opensips-solutions.com
>>
>> On 12.09.2019 14:37, Sasmita Panda wrote:
>>
>> make[1]: Entering directory '/opt/mongo-c-driver'
>>   CCLD test-replica-set
>> /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
>> symbol 'pthread_once@@GLIBC_2.2.5'
>> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
>> from command line
>>
>> ___
>> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-16 Thread Sasmita Panda
The new core file is given below in pastebin

https://pastebin.com/zMpf12MQ


Rather than this , I was trying to upgrade mongo c library to 1.9 and
running with document DB .

Here I am not able to connect to Document DB . its giving below error
When I am connecting with SSL=true
 ERROR:cachedb_mongodb:mongo_con_update: last error: 15.13053: No suitable
servers found (`serverSelectionTryOnce` set): [TLS handshake failed:
error:1416F086:SSL routines:tls_process_server_certificate:certificate
verify failed calling ismaster on '
docdb-2019-09-14-06-14-132.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017
']

When I am doing without ssl
ERROR:cachedb_mongodb:mongo_con_update: last error: 1.11: Authentication
failed.

In both the cases I am able to connect to the Doc DB from the instance
console . But in opensips its giving such error . Opensips is not crashing
although .  Why is this error coming . I am not getting this error in the
code also .

Below is the library version in my instance . and Document db is in same
3.6 version .
dpkg -l | grep -i libmongoc
ii  libmongoc-1.0-0  1.9.2+dfsg-1build1
amd64MongoDB C client library - runtime files
ii  libmongoc-dev1.9.2+dfsg-1build1
amd64MongoDB C client library - dev files


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Sep 12, 2019 at 7:50 PM Liviu Chircu  wrote:

> Let's follow the official build guide [1], maybe it will make things
> easier.
>
> So make sure to install below requirements, then try again:
>
> sudo apt install cmake libssl-dev libsasl2-dev
>
> [1]: http://mongoc.org/libmongoc/current/installing.html
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 12.09.2019 14:37, Sasmita Panda wrote:
>
> make[1]: Entering directory '/opt/mongo-c-driver'
>   CCLD test-replica-set
> /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
> symbol 'pthread_once@@GLIBC_2.2.5'
> //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
> from command line
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-12 Thread Liviu Chircu

Let's follow the official build guide [1], maybe it will make things easier.

So make sure to install below requirements, then try again:

sudo apt install cmake libssl-dev libsasl2-dev

[1]: http://mongoc.org/libmongoc/current/installing.html

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.09.2019 14:37, Sasmita Panda wrote:

make[1]: Entering directory '/opt/mongo-c-driver'
  CCLD     test-replica-set
/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to 
symbol 'pthread_once@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO 
missing from command line
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-12 Thread Sasmita Panda
Hi ,

I am using ubuntu 16 . I am not able to run make command . Its giving error
.

make[1]: Entering directory '/opt/mongo-c-driver'
  CCLD test-replica-set
/usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to
symbol 'pthread_once@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing
from command line
collect2: error: ld returned 1 exit status
Makefile:2516: recipe for target 'test-replica-set' failed
make[1]: *** [test-replica-set] Error 1
make[1]: Leaving directory '/opt/mongo-c-driver'
Makefile:4866: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

I am trying to solve this . Once done I will give the core dump .




*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Thu, Sep 12, 2019 at 1:58 PM Liviu Chircu  wrote:

> I suggest we manually compile a debuggable version of libmongoc library
> v1.3.1 using the following steps:
>
> # clone the libmongoc library source code
> git clone https://github.com/mongodb/mongo-c-driver -b 1.3.1
> ~/src/mongo-c-driver
> cd ~/src/mongo-c-driver
>
> # prepare necessary packages
> apt remove libssl-dev
> apt install libssl1.0-dev gcc make autoconf
>
> # build, install and enable the library
> ./autogen.sh --enable-debug-symbols=yes
> make -j4
> make install
> echo "/usr/local/lib" >/etc/ld.so.conf.d/libmongoc.conf
> ldconfig
>
> ... and we are done!  Now, just restart your OpenSIPS and produce
> another core file.  This time, gdb
> will print some extra information, which will help us understand what's
> going on.
>
> At any time, to clean up the debug library and revert to the default one
> (from packages):
>
> rm -fr /usr/local/lib/libbson-1.0.* /usr/local/lib/libmongoc-*
> rm /etc/ld.so.conf.d/libmongoc.conf
> ldconfig
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 12.09.2019 07:56, Sasmita Panda wrote:
> >
> > What should you suggest now ? Will I upgrade the library version . I
> > am trying that option .
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-12 Thread Liviu Chircu
I suggest we manually compile a debuggable version of libmongoc library 
v1.3.1 using the following steps:


# clone the libmongoc library source code
git clone https://github.com/mongodb/mongo-c-driver -b 1.3.1 
~/src/mongo-c-driver

cd ~/src/mongo-c-driver

# prepare necessary packages
apt remove libssl-dev
apt install libssl1.0-dev gcc make autoconf

# build, install and enable the library
./autogen.sh --enable-debug-symbols=yes
make -j4
make install
echo "/usr/local/lib" >/etc/ld.so.conf.d/libmongoc.conf
ldconfig

... and we are done!  Now, just restart your OpenSIPS and produce 
another core file.  This time, gdb
will print some extra information, which will help us understand what's 
going on.


At any time, to clean up the debug library and revert to the default one 
(from packages):


rm -fr /usr/local/lib/libbson-1.0.* /usr/local/lib/libmongoc-*
rm /etc/ld.so.conf.d/libmongoc.conf
ldconfig

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.09.2019 07:56, Sasmita Panda wrote:


What should you suggest now ? Will I upgrade the library version . I 
am trying that option .


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


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
I have tried with single-slash  too same thing happens . Opensips crashes
when its going to publish the metadata in documentDB  .


What should you suggest now ? Will I upgrade the library version . I am
trying that option .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 6:38 PM Liviu Chircu  wrote:

> Maybe I'm seeing things, but isn't there a "//" double-slash typo in
> there? ("...:27017//opensipsDB...")
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 11.09.2019 12:58, Sasmita Panda wrote:
>
> modparam("cachedb_mongodb", "cachedb_url","mongodb:instance1://
> opensips3:cluster@
> docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
> /opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu
Maybe I'm seeing things, but isn't there a "//" double-slash typo in 
there? ("...:27017//opensipsDB...")


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:58, Sasmita Panda wrote:

modparam("cachedb_mongodb", "cachedb_url","mongodb:instance1://
opensips3:cluster@
docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/ 


/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
I had done the same . But that wont work .

loadmodule "cachedb_mongodb.so"
loadmodule "db_cachedb.so"

modparam("cachedb_mongodb", "cachedb_url","mongodb:instance1://
opensips3:cluster@
docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")

modparam("db_cachedb","cachedb_url","mongodb:instance1://
opensips3:cluster@
docdb-2019-09-09-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")


modparam("usrloc", "use_domain", 1)
modparam("usrloc", "working_mode_preset", "federation-cachedb-cluster")

modparam("usrloc", "location_cluster", 1)
modparam("usrloc", "cluster_mode", "federation-cachedb")

modparam("usrloc", "restart_persistency", "read_from_sql")
modparam("usrloc", "sql_write_mode", "write-back")

modparam("usrloc", "cachedb_url", "mongodb:instance1://
opensips3:cluster@
docdb-2019-09-06-06-01-38.c8aqanvkjwjr.us-east-1.docdb.amazonaws.com:27017/
/opensipsDB.userlocation?ssl=true_ca_certs=rds-combined-ca-bundle.pem")

This is my config file look like . But still opensips crashes when I
register a user .



*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 3:04 PM Liviu Chircu  wrote:

> Sorry, I meant "cachedb_url", of course.
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 11.09.2019 12:32, Liviu Chircu wrote:
> > when specifying the usrloc "db_url" modparam
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu

Sorry, I meant "cachedb_url", of course.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:32, Liviu Chircu wrote:

when specifying the usrloc "db_url" modparam


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


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu
Library and server versions look good.  The library is a bit old (I've 
only tested with 1.4),
but it shouldn't make a difference.  Truth be told, both 1.3 and 1.4 are 
_very_ old compared

to what the MongoDB docs are saying.  However, they work fine in real life!

Can you try the following: when specifying the usrloc "db_url" modparam, 
could you also include

the name of the collection?  For example, instead of:

mongodb://1.2.3.4/opensipsDB

... use:

mongodb://1.2.3.4/opensipsDB.userlocation

Let me know if this helps.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:21, Sasmita Panda wrote:

dpkg -l | grep -i libmongoc

ii  libmongoc-1.0-0                              1.3.1-1               
           amd64        MongoDB C client library - runtime files
ii  libmongoc-dev                                1.3.1-1               
           amd64        MongoDB C client library - dev files


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


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
I think this version is not comparable with mondodb 3.6 . mongo driver 1.9
onward is comparable with mongodb 3.6 .

Let me upgrade this first . Then will let you know the out come .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:51 PM Sasmita Panda  wrote:

> dpkg -l | grep -i libmongoc
>
> ii  libmongoc-1.0-0  1.3.1-1
>  amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.3.1-1
>  amd64MongoDB C client library - dev files
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Sep 11, 2019 at 2:49 PM Liviu Chircu  wrote:
>
>> Can you also do "dpkg -l | grep -i libmongoc"?  Maybe the library is too
>> new or too old.
>>
>> I'm asking because I've played with multiple setups using federated
>> clustering +
>> Mongo 3.6 without any aborts in the library so far.  So we need to think
>> outside the box here :)
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 11.09.2019 12:15, Sasmita Panda wrote:
>> > MongoDB server version: 3.6.0
>> > MongoDB shell version v3.6.14
>> >
>> > libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0
>> >
>> > I havent done any changes in libmongoc . This is the version I am
>> > using to connect mongodb also .
>>
>> ___
>> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
dpkg -l | grep -i libmongoc

ii  libmongoc-1.0-0  1.3.1-1
 amd64MongoDB C client library - runtime files
ii  libmongoc-dev1.3.1-1
 amd64MongoDB C client library - dev files


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:49 PM Liviu Chircu  wrote:

> Can you also do "dpkg -l | grep -i libmongoc"?  Maybe the library is too
> new or too old.
>
> I'm asking because I've played with multiple setups using federated
> clustering +
> Mongo 3.6 without any aborts in the library so far.  So we need to think
> outside the box here :)
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 11.09.2019 12:15, Sasmita Panda wrote:
> > MongoDB server version: 3.6.0
> > MongoDB shell version v3.6.14
> >
> > libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0
> >
> > I havent done any changes in libmongoc . This is the version I am
> > using to connect mongodb also .
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
Document db engine version  : docdb 3.6.0
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:45 PM Sasmita Panda  wrote:

> MongoDB server version: 3.6.0
> MongoDB shell version v3.6.14
>
> libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0
>
> I havent done any changes in libmongoc . This is the version I am using to
> connect mongodb also .
>
> Document DB says , to use mongodb version 3.6 above if you wanted to
> connect to that from any instance . So I have installed 3.6 version .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Sep 11, 2019 at 2:12 PM Liviu Chircu  wrote:
>
>> Thank you for the info, it's as clean of a crash trace as we can get,
>> since
>> we do not have any debug symbols for the mongo library (it seems the
>> only way
>> to get them is to compile/install the library by hand, which is not
>> feasible).
>>
>> Before digging deeper: are you able to determine what Mongo server
>> version and
>> what libmongoc library version are being used in your environment?  Or
>> is it all
>> abstracted behind the DocumentDB server and its client SDK?
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 11.09.2019 10:54, Sasmita Panda wrote:
>> > I hope I have given the right thing to detect the crash . Let me know
>> > if you need anything else .
>>
>> ___
>> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu
Can you also do "dpkg -l | grep -i libmongoc"?  Maybe the library is too 
new or too old.


I'm asking because I've played with multiple setups using federated 
clustering +
Mongo 3.6 without any aborts in the library so far.  So we need to think 
outside the box here :)


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 12:15, Sasmita Panda wrote:

MongoDB server version: 3.6.0
MongoDB shell version v3.6.14

libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0

I havent done any changes in libmongoc . This is the version I am 
using to connect mongodb also .


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


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
MongoDB server version: 3.6.0
MongoDB shell version v3.6.14

libmongoc   : /usr/lib/x86_64-linux-gnu/libmongoc-1.0.so.0

I havent done any changes in libmongoc . This is the version I am using to
connect mongodb also .

Document DB says , to use mongodb version 3.6 above if you wanted to
connect to that from any instance . So I have installed 3.6 version .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Wed, Sep 11, 2019 at 2:12 PM Liviu Chircu  wrote:

> Thank you for the info, it's as clean of a crash trace as we can get, since
> we do not have any debug symbols for the mongo library (it seems the
> only way
> to get them is to compile/install the library by hand, which is not
> feasible).
>
> Before digging deeper: are you able to determine what Mongo server
> version and
> what libmongoc library version are being used in your environment?  Or
> is it all
> abstracted behind the DocumentDB server and its client SDK?
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 11.09.2019 10:54, Sasmita Panda wrote:
> > I hope I have given the right thing to detect the crash . Let me know
> > if you need anything else .
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Liviu Chircu

Thank you for the info, it's as clean of a crash trace as we can get, since
we do not have any debug symbols for the mongo library (it seems the 
only way
to get them is to compile/install the library by hand, which is not 
feasible).


Before digging deeper: are you able to determine what Mongo server 
version and
what libmongoc library version are being used in your environment?  Or 
is it all

abstracted behind the DocumentDB server and its client SDK?

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.09.2019 10:54, Sasmita Panda wrote:
I hope I have given the right thing to detect the crash . Let me know 
if you need anything else . 


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


Re: [OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-11 Thread Sasmita Panda
Pested the  core dump with bt full in pastebin.com . Below is the link .

https://pastebin.com/DuXV311r


I hope I have given the right thing to detect the crash . Let me know if
you need anything else .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Tue, Sep 10, 2019 at 7:04 PM Liviu Chircu  wrote:

> Hi Sasmita,
>
> Are you able to locate the corefile?  If you supply the "-w "
> parameter to your opensips,
> then it should be in that directory, otherwise look inside the root "/"
> directory.  There should be
> a file named "core" or "core.X" somewhere.
>
> Once found, please run "gdb /usr/sbin/opensips core", then the "bt full"
> command and let us know the
> output (maybe post it on pastebin.com).  Also, make sure to install the
> "opensips-dbg" package
> before doing all of this in order to get an optimal output.
>
> Many thanks,
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 10.09.2019 15:52, Sasmita Panda wrote:
> >  DBG:core:handle_sigs: OpenSIPS exit status = 134
> >  INFO:core:handle_sigs: child process 32061 exited by a signal 6
> >  INFO:core:handle_sigs: core was generated
> >  INFO:core:handle_sigs: terminating due to SIGCHLD
>
> ___
> 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] Need help to connect AWS document db through opensips 3.0 .

2019-09-10 Thread Liviu Chircu

Hi Sasmita,

Are you able to locate the corefile?  If you supply the "-w " 
parameter to your opensips,
then it should be in that directory, otherwise look inside the root "/" 
directory.  There should be

a file named "core" or "core.X" somewhere.

Once found, please run "gdb /usr/sbin/opensips core", then the "bt full" 
command and let us know the
output (maybe post it on pastebin.com).  Also, make sure to install the 
"opensips-dbg" package

before doing all of this in order to get an optimal output.

Many thanks,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 10.09.2019 15:52, Sasmita Panda wrote:

 DBG:core:handle_sigs: OpenSIPS exit status = 134
 INFO:core:handle_sigs: child process 32061 exited by a signal 6
 INFO:core:handle_sigs: core was generated
 INFO:core:handle_sigs: terminating due to SIGCHLD


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


[OpenSIPS-Users] Need help to connect AWS document db through opensips 3.0 .

2019-09-10 Thread Sasmita Panda
Hi All ,

There was another email chain where you guys suggested to use AWS document
DB as this ia equivalent to mongo db . I am trying that . But opensips is
crashing while storing data in the DocDB .

Below is the error giving :
 DBG:cachedb_mongodb:mongo_con_update: filter: { "_id" :
"1007@opensips-chachdb.i3clogic.com192.168.0.x" }
 DBG:cachedb_mongodb:mongo_con_update: set: { "home_ip" : "192.168.0.x",
"aor" : "1...@opensips-chachdb.i3clogic.com" }
 DBG:cachedb_mongodb:mongo_con_update: unset: { }
 DBG:cachedb_mongodb:mongo_con_update: update: { "$set" : { "home_ip" :
"192.168.0.x", "aor" : "1...@opensips-chachdb.i3clogic.com" } }
 DBG:core:handle_sigs: OpenSIPS exit status = 134
 INFO:core:handle_sigs: child process 32061 exited by a signal 6
 INFO:core:handle_sigs: core was generated
 INFO:core:handle_sigs: terminating due to SIGCHLD
 DBG:core:shutdown_opensips: Asking process 4 [SIP receiver
udp:192.168.0.x:5060] to terminate
 INFO:core:sig_usr: signal 15 received
 INFO:core:sig_usr: signal 15 received
.
 INFO:core:sig_usr: signal 15 received
 INFO:core:shutdown_opensips: process 2(1450) [time_keeper] terminated,
still waiting for 0 more
 INFO:core:cleanup: cleanup
 DBG:core:pool_remove: connection still kept in the pool
 DBG:core:pool_remove: removing connection from the pool
 DBG:core:pool_remove: connection still kept in the pool
 message repeated 2 times: [ DBG:core:pool_remove: connection still kept in
the pool]
 NOTICE:db_cachedb:destroy: destroy module db_cachedb ...
 NOTICE:cachedb_mongodb:destroy: destroy module cachedb_mongodb ...
 DBG:cachedb_mongodb:mongo_con_destroy: in mongo_destroy
 CRITICAL:core:sig_usr: segfault in attendant (starter) process!
 DBG:core:restore_segv_handler: restoring SIGSEGV handler...
 DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler


Please do check once .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] need help -

2019-09-02 Thread Liviu Chircu

Hi Dragomir,

You can either set a $dlg_val [1] or a dialog flag [2] during the 
initial INVITE,
then read it during mid-dialog requests.  Be careful with $dlg_val: it 
converts
any integers to strings, so make sure that your comparison syntax is 
accurate!


Best regards,

[1]: https://opensips.org/html/docs/modules/3.1.x/dialog.html#pv_dlg_val
[2]: 
https://opensips.org/html/docs/modules/3.1.x/dialog.html#func_set_dlg_flag


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 02.09.2019 19:03, Dragomir Haralambiev wrote:

Hello,

What I do to check flag after has_totag() ?

Here is example:


route {
     
     if (has_totag()) {
         .
         if ( isflagset(BLA_BLA) ) {
            xlog("L_ERR", "Flag is active \n");
         };
         
     }

      if ( is_method("INVITE") ) {
         
          setflag(BLA_BLA);
          
       }

}

Regards,
Dragomir

___
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


[OpenSIPS-Users] need help -

2019-09-02 Thread Dragomir Haralambiev
Hello,

What I do to check flag after has_totag() ?

Here is example:


route {
 
 if (has_totag()) {
 .
 if ( isflagset(BLA_BLA) ) {
xlog("L_ERR", "Flag is active \n");
 };
 
 }

  if ( is_method("INVITE") ) {
 
  setflag(BLA_BLA);
  
   }

}

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


[OpenSIPS-Users] Need help in doing loadtesting of webRTC .

2018-06-19 Thread Sasmita Panda
Hi All ,

   I am using opensips-2.2.2 with proto_wss fir webrtc abd also rtpengine
module enabled in it .

   I have simply integrated sipml5 js with our CTI which answers call in
browser .

Now I wanted to do loadtesting of the opensips server just to evaluate
how many concurrent request that server can handle .

How I will do that . browser makes wss connection with the server . Is
there any tool which can make multiple  wss connection with my server and
pick call at the same time ?

 If anybody had done this then please do help . Thanks in advance .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help to print Shared memory and package memory used in opensips in logs .

2018-03-06 Thread Liviu Chircu

Hi Sasmita,

Hmmm... indeed, the error is somewhat unhelpful to the script writer. 
The problem is that "statistics.so" is not loaded, hence "pvar $stat... 
is not defined". A similar thing happens with $json. I, myself, was a 
bit puzzled when I first hit this error.


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 06.03.2018 13:02, Sasmita Panda wrote:

version: opensips 1.11.2-notls (x86_64/linux)
flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, 
SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535

poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svn revision: 2537:3262M
main.c compiled on 13:20:22 Nov 15 2017 with gcc 4.8.3


This is what exactly I am using .


*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Tue, Mar 6, 2018 at 4:27 PM, Sasmita Panda > wrote:


Hi All ,

I am using opensips-1.11.2  .

*xlog("Real SHMEM used size is $stat(real_used_size) \n");*


Trying to print logs through this but its not working . giving
below error .
*
*
* ERROR:core:pv_parse_spec: pvar "stat"(inner_name) not found*
* ERROR:core:pv_parse_spec: wrong char [$/36] in
[$stat($real_used_size) #012] at [6 (5)]*
* ERROR:core:pv_parse_format: parsing PV spec failed*
* ERROR:core:fix_actions: wrong format [Real SHMEM used size is
$stat($real_used_size) #012] for value param*
* ERROR:core:fix_actions: fixing failed (code=-5) at cfg line 78*
* ERROR:core:main: failed to fix configuration with err code -5*
* INFO:core:cleanup: cleanup*

Please help me how to do this . Thanks in advance .



*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/




___
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] Need help to print Shared memory and package memory used in opensips in logs .

2018-03-06 Thread Sasmita Panda
version: opensips 1.11.2-notls (x86_64/linux)
flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svn revision: 2537:3262M
main.c compiled on 13:20:22 Nov 15 2017 with gcc 4.8.3


This is what exactly I am using .


*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Tue, Mar 6, 2018 at 4:27 PM, Sasmita Panda  wrote:

> Hi All ,
>
> I am using opensips-1.11.2  .
>
> *xlog("Real SHMEM used size is $stat(real_used_size) \n");*
>
>
> Trying to print logs through this but its not working . giving below error
> .
>
> * ERROR:core:pv_parse_spec: pvar "stat"(inner_name) not found*
> * ERROR:core:pv_parse_spec: wrong char [$/36] in [$stat($real_used_size)
> #012] at [6 (5)]*
> * ERROR:core:pv_parse_format: parsing PV spec failed*
> * ERROR:core:fix_actions: wrong format [Real SHMEM used size is
> $stat($real_used_size) #012] for value param*
> * ERROR:core:fix_actions: fixing failed (code=-5) at cfg line 78*
> * ERROR:core:main: failed to fix configuration with err code -5*
> * INFO:core:cleanup: cleanup*
>
> Please help me how to do this . Thanks in advance .
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help to print Shared memory and package memory used in opensips in logs .

2018-03-06 Thread Sasmita Panda
Hi All ,

I am using opensips-1.11.2  .

*xlog("Real SHMEM used size is $stat(real_used_size) \n");*


Trying to print logs through this but its not working . giving below error .

* ERROR:core:pv_parse_spec: pvar "stat"(inner_name) not found*
* ERROR:core:pv_parse_spec: wrong char [$/36] in [$stat($real_used_size)
#012] at [6 (5)]*
* ERROR:core:pv_parse_format: parsing PV spec failed*
* ERROR:core:fix_actions: wrong format [Real SHMEM used size is
$stat($real_used_size) #012] for value param*
* ERROR:core:fix_actions: fixing failed (code=-5) at cfg line 78*
* ERROR:core:main: failed to fix configuration with err code -5*
* INFO:core:cleanup: cleanup*

Please help me how to do this . Thanks in advance .



*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help for performance test of opensips .

2018-03-05 Thread Sasmita Panda
Hi All ,

I was running opensips-1.11.2 on a AWS linux machine .
Configuration is :
4GB RAM , 1 Core , 50GB hard disk .

Given Opensips TCP proxy 3072 shared memory and 16MB package memory .


How many transaction per second this will handle so that CPU will be within
20% .


In my case , When 60 Agents getting login Opensips is getting out of memory
warning and the CPU is getting 100% .

50 agents are sending Registers , Subscribe and Notify each other .


What I observed is that , when the system is becoming out of memory , just
before that time there is around 2 transactions per second .

Even in this case opensips will become put of memory why the CPU is getting
100% ? I am not getting any explanation for this . Can anybody help me
please .




*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help for solving webRTC issue in chrome version 63 .

2017-12-07 Thread Sasmita Panda
In WebRTC M63, Applying a session description with both “a=fingerprint”
(for DTLS) and “a=crypto” (for SDES) will now fail; the offerer must decide
on one or the other .

While updating SDP , opensips is sending both . I am using below option for
updating SDP .

$var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF rtcp-mux-offer ICE=force
DTLS=passive";

What should I do so that either crypto or fingerprint will go in SDP .

*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Fri, Dec 8, 2017 at 10:48 AM, Sasmita Panda  wrote:

> Hi All ,
>
>  I am using opensips-2.2 with wss and rtpengine module . 1 end point
> is pjsip and other is webRTC and opensips is acting as a proxy in-between
> to handle media and acting as a gateway for webRTC and SIP .
>
>   Everything working fine when I am using Chrome version 62 , but when
> I upgrade to 63 its giving some error like
>   *" OperationError: Failed to set local sdp: Session error code:
> ERROR_CONTENT. Session error description: Cryptos must be empty when DTLS
> is active. "*
>
>   Can anybody suggest me how to remove this crypto from INVITE
> message so that Chrome will accept it .  I think I need to change something
> in opensips side but not getting any appropriate method .
>
>   Please help , I am blocked in production environment .
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help for solving webRTC issue in chrome version 63 .

2017-12-07 Thread Sasmita Panda
Hi All ,

 I am using opensips-2.2 with wss and rtpengine module . 1 end point is
pjsip and other is webRTC and opensips is acting as a proxy in-between to
handle media and acting as a gateway for webRTC and SIP .

  Everything working fine when I am using Chrome version 62 , but when
I upgrade to 63 its giving some error like
  *" OperationError: Failed to set local sdp: Session error code:
ERROR_CONTENT. Session error description: Cryptos must be empty when DTLS
is active. "*

  Can anybody suggest me how to remove this crypto from INVITE
message so that Chrome will accept it .  I think I need to change something
in opensips side but not getting any appropriate method .

  Please help , I am blocked in production environment .



*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need help regarding avpops db connections

2017-09-27 Thread Dipteshkumar Patel
Thanks for your response,

I agree that the async avp_db_query creates dynamics mysql connection but
the connections goes in sleep mode and they never closed until opensips
restart, I am sending the mariadb connection initially when starts opensips
and after calls(we are using different db user to identify each of them).
We are making 1000 calls with 100 cps.

Please check mysql process list output in below link
https://pastebin.com/Uk1DeYR0


On Tue, Sep 26, 2017 at 10:23 PM, Bogdan-Andrei Iancu 
wrote:

> Hello Patel,
>
> Yes, the avopos module (while using async db queries from script) is the
> one dynamically creating mysql connections. Are all the created connection
> under usage ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> On 09/25/2017 05:37 PM, Dipteshkumar Patel wrote:
>
> Hello Sir,
>
> I am using opensips version 2.3.1 and mariadb-server-5.5.52-1
>
> In which I have configured dispatcher, dialog, avpops , rtpproxy and
> permissions module to use database connection.
> Opensips has 16 children.
>
> And Yes, I am using async db queries in avpops.
>
> I have noticed that as and when I increase CPS the idle DB connections are
> increasing mainly for avpops module. And those connections are not getting
> disconnected until restart opensips.
>
> Please help me out to resolve this as at some point it leads to Too Many
> Connections.
>
> Looking forward for your kind help.
>
> Thanks in advance.
>
>
> ___
> 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


Re: [OpenSIPS-Users] Need help regarding avpops db connections

2017-09-26 Thread Bogdan-Andrei Iancu

Hello Patel,

Yes, the avopos module (while using async db queries from script) is the 
one dynamically creating mysql connections. Are all the created 
connection under usage ?


Best regards,

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

On 09/25/2017 05:37 PM, Dipteshkumar Patel wrote:

Hello Sir,

I am using opensips version 2.3.1 and mariadb-server-5.5.52-1

In which I have configured dispatcher, dialog, avpops , rtpproxy and 
permissions module to use database connection.

Opensips has 16 children.

And Yes, I am using async db queries in avpops.

I have noticed that as and when I increase CPS the idle DB connections 
are increasing mainly for avpops module. And those connections are not 
getting disconnected until restart opensips.


Please help me out to resolve this as at some point it leads to Too 
Many Connections.


Looking forward for your kind help.

Thanks in advance.


___
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


[OpenSIPS-Users] Need help regarding avpops db connections

2017-09-25 Thread Dipteshkumar Patel
Hello Sir,

I am using opensips version 2.3.1 and mariadb-server-5.5.52-1

In which I have configured dispatcher, dialog, avpops , rtpproxy and
permissions module to use database connection.
Opensips has 16 children.

And Yes, I am using async db queries in avpops.

I have noticed that as and when I increase CPS the idle DB connections are
increasing mainly for avpops module. And those connections are not getting
disconnected until restart opensips.

Please help me out to resolve this as at some point it leads to Too Many
Connections.

Looking forward for your kind help.

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


Re: [OpenSIPS-Users] Need help :: getting TM477 Error

2017-09-25 Thread Ravindrakumar Bhatt
Hi Răzvan,
I think i have found problem now i was giving wrong domain in control panel.

Thank you for your help and sorry for trouble.

On Mon, Sep 25, 2017 at 4:40 PM, Răzvan Crainea  wrote:

> Can you log the $du and $ru, and check they are proper sip uris, and
> whether they are IPv4 and IPv6? Also log the $si.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Developerwww.opensips-solutions.com
>
> On 09/25/2017 01:39 PM, Ravindrakumar Bhatt wrote:
>
> Hi Răzvan,
> Thank  you for your response. i am using opensips 2.2.3 at the moment and
> i am not using mhomed or force_send_socket() for forwarding request.
>
> i am using following logic to forward my request.
>
>   $ru = $avp(cfwdbusy);
>   $du = $avp(cfwdbusy);
>   #accounting details
>   $avp(leg_src)=$tU;
>   $avp(leg_dst)=$(avp(cfwdbusy){uri.user});
>   $avp(leg_call_type)="cfwdbusy";
>
>   append_hf("CFWD: YES\r\n");
>   if (!t_relay()) {
>  send_reply("500","Internal Error");
>   }
> if anything else is needed from my side please let me know.
>
> Regards,
> Ravindrakumar Bhatt
>
>
> On Mon, Sep 25, 2017 at 1:21 PM, Răzvan Crainea 
> wrote:
>
>> Hi, Ravindrakumar!
>>
>> What version of OpenSIPS are you using?
>> Are you using mhomed or force_send_socket() in your script? My assumption
>> is that you are using a wrong interface to forward the request.
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Developerwww.opensips-solutions.com
>>
>> On 09/24/2017 08:18 PM, Ravindrakumar Bhatt wrote:
>>
>> Hello guys,
>> I need help to understand why am I getting below mentioned error and it's
>> possible solutions ?
>>
>> Here opensips is listening to both IPv4 and IPv6 socket and one to one
>> call between IPv4 <--> IPv6,both IPv4 and Both IPv6 users is working
>> fine,but when I am trying to use call forwarding I am getting this error.
>>
>> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
>> ERROR:core:proto_udp_send: 
>> sendto(sock,0x7f1da1c8a940,2300,0,0x7f1da1ca9698,16):
>> Network is unreachable(101)
>> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
>> ERROR:tm:msg_send: send() for proto 1 failed
>> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
>> ERROR:tm:t_forward_nonack: sending request failed
>> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134234]: This
>> is handle_nat reply route: 477
>>
>> Thanks and waiting for suggestions.
>>
>>
>> ___
>> 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 
> 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] Need help :: getting TM477 Error

2017-09-25 Thread Răzvan Crainea
Can you log the $du and $ru, and check they are proper sip uris, and 
whether they are IPv4 and IPv6? Also log the $si.


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 09/25/2017 01:39 PM, Ravindrakumar Bhatt wrote:

Hi Răzvan,
Thank  you for your response. i am using opensips 2.2.3 at the moment 
and i am not using mhomed or force_send_socket() for forwarding request.


i am using following logic to forward my request.

  $ru = $avp(cfwdbusy);
  $du = $avp(cfwdbusy);
  #accounting details
  $avp(leg_src)=$tU;
  $avp(leg_dst)=$(avp(cfwdbusy){uri.user});
  $avp(leg_call_type)="cfwdbusy";

  append_hf("CFWD: YES\r\n");
  if (!t_relay()) {
 send_reply("500","Internal Error");
  }
if anything else is needed from my side please let me know.

Regards,
Ravindrakumar Bhatt


On Mon, Sep 25, 2017 at 1:21 PM, Răzvan Crainea > wrote:


Hi, Ravindrakumar!

What version of OpenSIPS are you using?
Are you using mhomed or force_send_socket() in your script? My
assumption is that you are using a wrong interface to forward the
request.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com 

On 09/24/2017 08:18 PM, Ravindrakumar Bhatt wrote:

Hello guys,
I need help to understand why am I getting below mentioned error
and it's possible solutions ?

Here opensips is listening to both IPv4 and IPv6 socket and one
to one call between IPv4 <--> IPv6,both IPv4 and Both IPv6 users
is working fine,but when I am trying to use call forwarding I am
getting this error.

Sep 13 13:18:45 host60-190-60-195
/usr/local/sbin/opensips[134236]: ERROR:core:proto_udp_send:
sendto(sock,0x7f1da1c8a940,2300,0,0x7f1da1ca9698,16): Network is
unreachable(101)
Sep 13 13:18:45 host60-190-60-195
/usr/local/sbin/opensips[134236]: ERROR:tm:msg_send: send() for
proto 1 failed
Sep 13 13:18:45 host60-190-60-195
/usr/local/sbin/opensips[134236]: ERROR:tm:t_forward_nonack:
sending request failed
Sep 13 13:18:45 host60-190-60-195
/usr/local/sbin/opensips[134234]: This is handle_nat reply route: 477

Thanks and waiting for suggestions.


___
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





___
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] Need help :: getting TM477 Error

2017-09-25 Thread Ravindrakumar Bhatt
Hi Răzvan,
Thank  you for your response. i am using opensips 2.2.3 at the moment and i
am not using mhomed or force_send_socket() for forwarding request.

i am using following logic to forward my request.

  $ru = $avp(cfwdbusy);
  $du = $avp(cfwdbusy);
  #accounting details
  $avp(leg_src)=$tU;
  $avp(leg_dst)=$(avp(cfwdbusy){uri.user});
  $avp(leg_call_type)="cfwdbusy";

  append_hf("CFWD: YES\r\n");
  if (!t_relay()) {
 send_reply("500","Internal Error");
  }
if anything else is needed from my side please let me know.

Regards,
Ravindrakumar Bhatt


On Mon, Sep 25, 2017 at 1:21 PM, Răzvan Crainea  wrote:

> Hi, Ravindrakumar!
>
> What version of OpenSIPS are you using?
> Are you using mhomed or force_send_socket() in your script? My assumption
> is that you are using a wrong interface to forward the request.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Developerwww.opensips-solutions.com
>
> On 09/24/2017 08:18 PM, Ravindrakumar Bhatt wrote:
>
> Hello guys,
> I need help to understand why am I getting below mentioned error and it's
> possible solutions ?
>
> Here opensips is listening to both IPv4 and IPv6 socket and one to one
> call between IPv4 <--> IPv6,both IPv4 and Both IPv6 users is working
> fine,but when I am trying to use call forwarding I am getting this error.
>
> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
> ERROR:core:proto_udp_send: 
> sendto(sock,0x7f1da1c8a940,2300,0,0x7f1da1ca9698,16):
> Network is unreachable(101)
> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
> ERROR:tm:msg_send: send() for proto 1 failed
> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
> ERROR:tm:t_forward_nonack: sending request failed
> Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134234]: This
> is handle_nat reply route: 477
>
> Thanks and waiting for suggestions.
>
>
> ___
> 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] Need help :: getting TM477 Error

2017-09-25 Thread Răzvan Crainea

Hi, Ravindrakumar!

What version of OpenSIPS are you using?
Are you using mhomed or force_send_socket() in your script? My 
assumption is that you are using a wrong interface to forward the request.


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 09/24/2017 08:18 PM, Ravindrakumar Bhatt wrote:

Hello guys,
I need help to understand why am I getting below mentioned error and 
it's possible solutions ?


Here opensips is listening to both IPv4 and IPv6 socket and one to one 
call between IPv4 <--> IPv6,both IPv4 and Both IPv6 users is working 
fine,but when I am trying to use call forwarding I am getting this error.


Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]: 
ERROR:core:proto_udp_send: 
sendto(sock,0x7f1da1c8a940,2300,0,0x7f1da1ca9698,16): Network is 
unreachable(101)
Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]: 
ERROR:tm:msg_send: send() for proto 1 failed
Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]: 
ERROR:tm:t_forward_nonack: sending request failed
Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134234]: 
This is handle_nat reply route: 477


Thanks and waiting for suggestions.


___
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


[OpenSIPS-Users] Need help :: getting TM477 Error

2017-09-24 Thread Ravindrakumar Bhatt
Hello guys,
I need help to understand why am I getting below mentioned error and it's
possible solutions ?

Here opensips is listening to both IPv4 and IPv6 socket and one to one call
between IPv4 <--> IPv6,both IPv4 and Both IPv6 users is working fine,but
when I am trying to use call forwarding I am getting this error.

Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
ERROR:core:proto_udp_send:
sendto(sock,0x7f1da1c8a940,2300,0,0x7f1da1ca9698,16):
Network is unreachable(101)
Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
ERROR:tm:msg_send: send() for proto 1 failed
Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134236]:
ERROR:tm:t_forward_nonack: sending request failed
Sep 13 13:18:45 host60-190-60-195 /usr/local/sbin/opensips[134234]: This is
handle_nat reply route: 477

Thanks and waiting for suggestions.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help setting up load balancer for presence

2015-10-14 Thread surya
I need some help in understanding how to setup load balancer in front of the
presence server.

For web services I understand that the servers are behind the LB and LB ip
is exposed, rest is taken care by the LB but I am confused about how to
setup the LB in SIP servers.

My scenario is having 2 PS behind LB, now each of these three have their IP
and as I see in the PS scripts it checks for IP address. What I am confused
about is which IP to give to the clients. Basically, I do not understand how
exactly LB works here.

Request some guidance.

Thanks



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Need-help-setting-up-load-balancer-for-presence-tp7599468.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


[OpenSIPS-Users] need help with radius authentication

2015-03-11 Thread Andres Moya
Hello, 

First time on the list. Was able to solve problem by documentation before, but 
now completely confused.

I am trying to learn authentication against radius server. 


[root@rad47 /]# rpm -qa | grep opensips
opensips-aaa_radius-1.11.3-1.el6.x86_64
opensips-yum-releases-1.11-1.el6.noarch
opensips-auth_aaa-1.11.3-1.el6.x86_64
opensips-1.11.3-1.el6.x86_64

Added in config file: 
loadmodule auth.so
loadmodule auth_aaa.so
loadmodule aaa_radius.so
modparam(auth_aaa, aaa_url, radius:/etc/radiusclient-ng/radiusclient.conf)

Created route from some examples and calling it from main route:
route[AUTH] {

if (is_method(REGISTER) || from_uri==myself)
{
# authenticate requests
if (!aaa_www_authorize(172.21.7.47)) {
www_challenge($fd, 0);
exit;
}
# user authenticated - remove auth header
if(!is_method(REGISTER|PUBLISH))
consume_credentials();
}
# if caller is not local subscriber, then check if it calls
# a local destination, otherwise deny, not an open relay here
if (from_uri!=myself  uri!=myself)
{
sl_send_reply(403,Not relaying);
exit;
}

return;
}

[root@rad47 /]# cat /etc/radiusclient-ng/radiusclient.conf | grep -v ^#
auth_order  radius,local
login_tries 4
login_timeout   60
nologin /etc/nologin
issue   /etc/radiusclient-ng/issue
authserver  127.0.0.1:1812
acctserver  127.0.0.1:1813
servers /etc/radiusclient-ng/servers
dictionary  /etc/radiusclient-ng/dictionary
login_radius/usr/sbin/login.radius
seqfile /etc/opensips/radius.seq
mapfile /etc/radiusclient-ng/port-id-map
default_realm
radius_timeout  10
radius_retries  3
bindaddr *
login_local /bin/login

Then i run opensips it initialize ok. Then i try to register it challenge me 
ok. But there is no request done to RADIUS over network, and client keep 
sending REGISTER in response 401 Unauthorized.
There is nothing in logs. I’ve run out of ideas. Please someone help.

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


[OpenSIPS-Users] need help - Insert_hf when Route: missing

2014-08-27 Thread Satish Patel
I have post many question on topology hiding any not get any reply back from 
people and developers now I don't have any option except some goofy hack 

When I use topology hiding it removes Route: and because of that callee doesn't 
able to send BYE back to opensips. 

I want use insert_hf to inject Route: so I get clean BYE message. Do you guys 
have any suggestion?

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


Re: [OpenSIPS-Users] need help - Insert_hf when Route: missing

2014-08-27 Thread Vlad Paiu

Hello,

Please be a little bit more patient - last reply for your questions was 
yesterday :)


About your problem, you do not need to handle Route headers at all - 
this is the entire point of topology hiding, OpenSIPS adds no Route: 
header to it, since it acts like the endpoint, and the callee must 
contact OpenSIPS by the Contact headers only.


As requested in the previous users list email, please post SIP traces of 
your calls to see exactly what's going on ( leave plain topology hiding 
in place, please remove your hacks with the Route headers ).


Best Regards,

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

On 27.08.2014 14:08, Satish Patel wrote:

I have post many question on topology hiding any not get any reply back from 
people and developers now I don't have any option except some goofy hack

When I use topology hiding it removes Route: and because of that callee doesn't 
able to send BYE back to opensips.

I want use insert_hf to inject Route: so I get clean BYE message. Do you guys 
have any suggestion?

Sent from my iPhone
___
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] need help - Insert_hf when Route: missing

2014-08-27 Thread Satish Patel
I got your point and with in 1 hour I'm going to send you all info. 

Problem is last 3 days I couldn't sleep because of this freaking odd behavior, 
I need this solution to save my business. 

Sorry for if I'm pushing it hard but I have no way except you guys. Again 
thanks for staying top of this.  

Sent from my iPhone

On Aug 27, 2014, at 9:18 AM, Vlad Paiu vladp...@opensips.org wrote:

 Hello,
 
 Please be a little bit more patient - last reply for your questions was 
 yesterday :)
 
 About your problem, you do not need to handle Route headers at all - this is 
 the entire point of topology hiding, OpenSIPS adds no Route: header to it, 
 since it acts like the endpoint, and the callee must contact OpenSIPS by the 
 Contact headers only.
 
 As requested in the previous users list email, please post SIP traces of your 
 calls to see exactly what's going on ( leave plain topology hiding in place, 
 please remove your hacks with the Route headers ).
 
 Best Regards,
 
 Vlad Paiu
 OpenSIPS Developer
 http://www.opensips-solutions.com
 
 On 27.08.2014 14:08, Satish Patel wrote:
 I have post many question on topology hiding any not get any reply back from 
 people and developers now I don't have any option except some goofy hack
 
 When I use topology hiding it removes Route: and because of that callee 
 doesn't able to send BYE back to opensips.
 
 I want use insert_hf to inject Route: so I get clean BYE message. Do you 
 guys have any suggestion?
 
 Sent from my iPhone
 ___
 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] Need Help on Handling REFER Messages

2012-07-13 Thread Bogdan-Andrei Iancu

Hi Dinusha,

The dialog module cannot be used in the same time with the b2b module in 
the same instance. Mainly because the dialog module expects a proxied 
call while the b2b acts as end-point (user agent server or client)


Best regards,

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


On 07/13/2012 10:00 AM, Dinusha Kannangara wrote:
Hi, thanks for the info :) I did what you have told me and now and rtp 
seem to be working (I need to do more tests and look at the sip traces 
- and will let you know if I get into trouble again :P).


There's one problem though, I'm seeing that dialogs are not getting 
deleted when the call ends (again this works fine when not using b2bua 
- I'm using dialog module - rr_param did to make this happen)


Thanks again, for the responses and they really helped me a lot :)

On Thu, Jul 12, 2012 at 8:11 PM, Bogdan-Andrei Iancu 
bog...@opensips.org mailto:bog...@opensips.org wrote:


Hi Dinusha,

What you have in route[1] has to go into local route. And from
onreply_route, to the b2b_reply_route :).

Regards,

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


On 07/12/2012 03:13 PM, Dinusha Kannangara wrote:

Thank you for the quick reply :) and the REFER scenario is
working fine without rtp.

I'm sorry for being such a noob on this as I'm new to opensips
and even sip message handling :( I have tried out adding code to
local route and b2b_reply_route sections but rtp is not working -
I think it has to do with how I've wrote the config.

before adding the b2bua I had my rtpproxy_engage() called on my
route[1] before I call t_relay() and had the fix_nated_contact on
my onreply _route.

here's a summarized version on my config. Can you please look at
it and tell me which methods should be moved on to local route
and b2b_reply_route.

route
{
  .
  if(is_method(INVITE))
  {
do load balancing
route(1);
  }
}

route[1]
{
.
.
if( is_method(INVITE))
{
 engage_rtpproxy();
}
else if( is_method(BYE || CANCEL))
{
 unforce_rtpproxy();
}
}

onreply_route[1]
{
if (isbflagset(6))
{
log(\n\n\n---ON REPLY ROUTE FIX NATED
CONTACT---\n\n\n);
search_append('Contact:.*sip:[^[:cntrl:]]*',
';nat=yes');
fix_nated_contact();
}

}


On Wed, Jul 11, 2012 at 8:19 PM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Move to the local and b2b_reply routes only the part
regarding insertion of RTPproxy.

Regards,

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


On 07/11/2012 05:21 PM, Dinusha Kannangara wrote:

Thanks for the reply, I will try that for sure :)

Just to clarify, so whatever I had on request route and
reply route (including rtp proxy and nathelper methods)
should be written on b2b_request and b2b_reply, right ?

On Tue, Jul 10, 2012 at 3:59 PM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Hi Dinusha,

How I see it is: do LB, after LB, trigger B2B with
REFER-handling scenario, and on the outbound part of b2b
(using local route for INVITE and b2b_reply for incoming
replies) insert rtpproxy.

Of course, I assume that LB and B2B are on the same
instance of OpenSIPS.

Regards,

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


On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:

Hi all,

I currently have my opensips configured with a rtpproxy
and uses the nathelper module and everything seem to be
working fine.

Now, I have a new requirement where my opensips should
have to handle REFER messages generated from a media
server and I'm not sure what I should do.

I've seen that b2bua module is capable of this and I
also had a look at the example done on opensips.org
http://opensips.org.

Here's my scenario,

User1(softphone) calls opensips server and opensips do
load balancing and redirect the call to a Media Server.
Then, Media Server will send a REFER message to
opensips specifying a refer-to User2(another softphone)
and the media server should remove itself from the call
and let User1 and User2 connect to each other through
opensips.

Here are my questions :


Re: [OpenSIPS-Users] Need Help on Handling REFER Messages

2012-07-12 Thread Dinusha Kannangara
Thank you for the quick reply :) and the REFER scenario is working fine
without rtp.

I'm sorry for being such a noob on this as I'm new to opensips and even sip
message handling :( I have tried out adding code to local route and
b2b_reply_route sections but rtp is not working - I think it has to do with
how I've wrote the config.

before adding the b2bua I had my rtpproxy_engage() called on my route[1]
before I call t_relay() and had the fix_nated_contact on my onreply _route.

here's a summarized version on my config. Can you please look at it and
tell me which methods should be moved on to local route and b2b_reply_route.

route
{
  .
  if(is_method(INVITE))
  {
do load balancing
route(1);
  }
}

route[1]
{
.
.
if( is_method(INVITE))
{
 engage_rtpproxy();
}
else if( is_method(BYE || CANCEL))
{
 unforce_rtpproxy();
}
}

onreply_route[1]
{
if (isbflagset(6))
{
log(\n\n\n---ON REPLY ROUTE FIX NATED
CONTACT---\n\n\n);
search_append('Contact:.*sip:[^[:cntrl:]]*', ';nat=yes');
fix_nated_contact();
}

}


On Wed, Jul 11, 2012 at 8:19 PM, Bogdan-Andrei Iancu bog...@opensips.orgwrote:

 **
 Move to the local and b2b_reply routes only the part regarding
 insertion of RTPproxy.

 Regards,

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


 On 07/11/2012 05:21 PM, Dinusha Kannangara wrote:

 Thanks for the reply, I will try that for sure :)

 Just to clarify, so whatever I had on request route and reply route
 (including rtp proxy and nathelper methods) should be written on
 b2b_request and b2b_reply, right ?

 On Tue, Jul 10, 2012 at 3:59 PM, Bogdan-Andrei Iancu 
 bog...@opensips.orgwrote:

  Hi Dinusha,

 How I see it is: do LB, after LB, trigger B2B with REFER-handling
 scenario, and on the outbound part of b2b (using local route for INVITE and
 b2b_reply for incoming replies) insert rtpproxy.

 Of course, I assume that LB and B2B are on the same instance of OpenSIPS.

 Regards,

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


 On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:

  Hi all,

 I currently have my opensips configured with a rtpproxy and uses the
 nathelper module and everything seem to be working fine.

 Now, I have a new requirement where my opensips should have to handle
 REFER messages generated from a media server and I'm not sure what I should
 do.

 I've seen that b2bua module is capable of this and I also had a look at
 the example done on opensips.org.

 Here's my scenario,

 User1(softphone) calls opensips server and opensips do load balancing and
 redirect the call to a Media Server. Then, Media Server will send a REFER
 message to opensips specifying a refer-to User2(another softphone) and the
 media server should remove itself from the call and let User1 and User2
 connect to each other through opensips.

 Here are my questions :

 1) The rtpproxy module re-writes SDP and how does this affect if I use
 b2bua module to handle REFER messages ?
 2) Will the work done by nathelper and rtpproxy be undone if I call
 b2b_init_request on the initial INVITE ?
 3) Do I have to have a separate IP for b2bua server or is it ok to run it
 on the same ip which the opensips is running ?
 4) I have seen some people block the INVITE's coming from b2bua server IP
 at initial INVITE.. do I have to do this too ?

 Thank You, :)

 Regards,
 Dinusha.


 ___
 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


Re: [OpenSIPS-Users] Need Help on Handling REFER Messages

2012-07-12 Thread Bogdan-Andrei Iancu

Hi Dinusha,

What you have in route[1] has to go into local route. And from 
onreply_route, to the b2b_reply_route :).


Regards,

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


On 07/12/2012 03:13 PM, Dinusha Kannangara wrote:
Thank you for the quick reply :) and the REFER scenario is working 
fine without rtp.


I'm sorry for being such a noob on this as I'm new to opensips and 
even sip message handling :( I have tried out adding code to local 
route and b2b_reply_route sections but rtp is not working - I think it 
has to do with how I've wrote the config.


before adding the b2bua I had my rtpproxy_engage() called on my 
route[1] before I call t_relay() and had the fix_nated_contact on my 
onreply _route.


here's a summarized version on my config. Can you please look at it 
and tell me which methods should be moved on to local route and 
b2b_reply_route.


route
{
  .
  if(is_method(INVITE))
  {
do load balancing
route(1);
  }
}

route[1]
{
.
.
if( is_method(INVITE))
{
 engage_rtpproxy();
}
else if( is_method(BYE || CANCEL))
{
 unforce_rtpproxy();
}
}

onreply_route[1]
{
if (isbflagset(6))
{
log(\n\n\n---ON REPLY ROUTE FIX NATED 
CONTACT---\n\n\n);

search_append('Contact:.*sip:[^[:cntrl:]]*', ';nat=yes');
fix_nated_contact();
}

}


On Wed, Jul 11, 2012 at 8:19 PM, Bogdan-Andrei Iancu 
bog...@opensips.org mailto:bog...@opensips.org wrote:


Move to the local and b2b_reply routes only the part regarding
insertion of RTPproxy.

Regards,

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


On 07/11/2012 05:21 PM, Dinusha Kannangara wrote:

Thanks for the reply, I will try that for sure :)

Just to clarify, so whatever I had on request route and reply
route (including rtp proxy and nathelper methods) should be
written on b2b_request and b2b_reply, right ?

On Tue, Jul 10, 2012 at 3:59 PM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Hi Dinusha,

How I see it is: do LB, after LB, trigger B2B with
REFER-handling scenario, and on the outbound part of b2b
(using local route for INVITE and b2b_reply for incoming
replies) insert rtpproxy.

Of course, I assume that LB and B2B are on the same instance
of OpenSIPS.

Regards,

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


On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:

Hi all,

I currently have my opensips configured with a rtpproxy and
uses the nathelper module and everything seem to be working
fine.

Now, I have a new requirement where my opensips should have
to handle REFER messages generated from a media server and
I'm not sure what I should do.

I've seen that b2bua module is capable of this and I also
had a look at the example done on opensips.org
http://opensips.org.

Here's my scenario,

User1(softphone) calls opensips server and opensips do load
balancing and redirect the call to a Media Server. Then,
Media Server will send a REFER message to opensips
specifying a refer-to User2(another softphone) and the media
server should remove itself from the call and let User1 and
User2 connect to each other through opensips.

Here are my questions :

1) The rtpproxy module re-writes SDP and how does this
affect if I use b2bua module to handle REFER messages ?
2) Will the work done by nathelper and rtpproxy be undone if
I call b2b_init_request on the initial INVITE ?
3) Do I have to have a separate IP for b2bua server or is it
ok to run it on the same ip which the opensips is running ?
4) I have seen some people block the INVITE's coming from
b2bua server IP at initial INVITE.. do I have to do this too ?

Thank You, :)

Regards,
Dinusha.


___
Users mailing list
Users@lists.opensips.org  mailto: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] Need Help on Handling REFER Messages

2012-07-11 Thread Dinusha Kannangara
Thanks for the reply, I will try that for sure :)

Just to clarify, so whatever I had on request route and reply route
(including rtp proxy and nathelper methods) should be written on
b2b_request and b2b_reply, right ?

On Tue, Jul 10, 2012 at 3:59 PM, Bogdan-Andrei Iancu bog...@opensips.orgwrote:

 **
 Hi Dinusha,

 How I see it is: do LB, after LB, trigger B2B with REFER-handling
 scenario, and on the outbound part of b2b (using local route for INVITE and
 b2b_reply for incoming replies) insert rtpproxy.

 Of course, I assume that LB and B2B are on the same instance of OpenSIPS.

 Regards,

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


 On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:

 Hi all,

 I currently have my opensips configured with a rtpproxy and uses the
 nathelper module and everything seem to be working fine.

 Now, I have a new requirement where my opensips should have to handle
 REFER messages generated from a media server and I'm not sure what I should
 do.

 I've seen that b2bua module is capable of this and I also had a look at
 the example done on opensips.org.

 Here's my scenario,

 User1(softphone) calls opensips server and opensips do load balancing and
 redirect the call to a Media Server. Then, Media Server will send a REFER
 message to opensips specifying a refer-to User2(another softphone) and the
 media server should remove itself from the call and let User1 and User2
 connect to each other through opensips.

 Here are my questions :

 1) The rtpproxy module re-writes SDP and how does this affect if I use
 b2bua module to handle REFER messages ?
 2) Will the work done by nathelper and rtpproxy be undone if I call
 b2b_init_request on the initial INVITE ?
 3) Do I have to have a separate IP for b2bua server or is it ok to run it
 on the same ip which the opensips is running ?
 4) I have seen some people block the INVITE's coming from b2bua server IP
 at initial INVITE.. do I have to do this too ?

 Thank You, :)

 Regards,
 Dinusha.


 ___
 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


Re: [OpenSIPS-Users] Need Help on Handling REFER Messages

2012-07-11 Thread Bogdan-Andrei Iancu
Move to the local and b2b_reply routes only the part regarding 
insertion of RTPproxy.


Regards,

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


On 07/11/2012 05:21 PM, Dinusha Kannangara wrote:

Thanks for the reply, I will try that for sure :)

Just to clarify, so whatever I had on request route and reply route 
(including rtp proxy and nathelper methods) should be written on 
b2b_request and b2b_reply, right ?


On Tue, Jul 10, 2012 at 3:59 PM, Bogdan-Andrei Iancu 
bog...@opensips.org mailto:bog...@opensips.org wrote:


Hi Dinusha,

How I see it is: do LB, after LB, trigger B2B with REFER-handling
scenario, and on the outbound part of b2b (using local route for
INVITE and b2b_reply for incoming replies) insert rtpproxy.

Of course, I assume that LB and B2B are on the same instance of
OpenSIPS.

Regards,

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


On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:

Hi all,

I currently have my opensips configured with a rtpproxy and uses
the nathelper module and everything seem to be working fine.

Now, I have a new requirement where my opensips should have to
handle REFER messages generated from a media server and I'm not
sure what I should do.

I've seen that b2bua module is capable of this and I also had a
look at the example done on opensips.org http://opensips.org.

Here's my scenario,

User1(softphone) calls opensips server and opensips do load
balancing and redirect the call to a Media Server. Then, Media
Server will send a REFER message to opensips specifying a
refer-to User2(another softphone) and the media server should
remove itself from the call and let User1 and User2 connect to
each other through opensips.

Here are my questions :

1) The rtpproxy module re-writes SDP and how does this affect if
I use b2bua module to handle REFER messages ?
2) Will the work done by nathelper and rtpproxy be undone if I
call b2b_init_request on the initial INVITE ?
3) Do I have to have a separate IP for b2bua server or is it ok
to run it on the same ip which the opensips is running ?
4) I have seen some people block the INVITE's coming from b2bua
server IP at initial INVITE.. do I have to do this too ?

Thank You, :)

Regards,
Dinusha.


___
Users mailing list
Users@lists.opensips.org  mailto: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] Need Help on Handling REFER Messages

2012-07-10 Thread Bogdan-Andrei Iancu

Hi Dinusha,

How I see it is: do LB, after LB, trigger B2B with REFER-handling 
scenario, and on the outbound part of b2b (using local route for INVITE 
and b2b_reply for incoming replies) insert rtpproxy.


Of course, I assume that LB and B2B are on the same instance of OpenSIPS.

Regards,

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


On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:

Hi all,

I currently have my opensips configured with a rtpproxy and uses the 
nathelper module and everything seem to be working fine.


Now, I have a new requirement where my opensips should have to handle 
REFER messages generated from a media server and I'm not sure what I 
should do.


I've seen that b2bua module is capable of this and I also had a look 
at the example done on opensips.org http://opensips.org.


Here's my scenario,

User1(softphone) calls opensips server and opensips do load balancing 
and redirect the call to a Media Server. Then, Media Server will send 
a REFER message to opensips specifying a refer-to User2(another 
softphone) and the media server should remove itself from the call and 
let User1 and User2 connect to each other through opensips.


Here are my questions :

1) The rtpproxy module re-writes SDP and how does this affect if I use 
b2bua module to handle REFER messages ?
2) Will the work done by nathelper and rtpproxy be undone if I call 
b2b_init_request on the initial INVITE ?
3) Do I have to have a separate IP for b2bua server or is it ok to run 
it on the same ip which the opensips is running ?
4) I have seen some people block the INVITE's coming from b2bua server 
IP at initial INVITE.. do I have to do this too ?


Thank You, :)

Regards,
Dinusha.


___
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


[OpenSIPS-Users] Need Help on Handling REFER Messages

2012-07-06 Thread Dinusha Kannangara
Hi all,

I currently have my opensips configured with a rtpproxy and uses the
nathelper module and everything seem to be working fine.

Now, I have a new requirement where my opensips should have to handle REFER
messages generated from a media server and I'm not sure what I should do.

I've seen that b2bua module is capable of this and I also had a look at the
example done on opensips.org.

Here's my scenario,

User1(softphone) calls opensips server and opensips do load balancing and
redirect the call to a Media Server. Then, Media Server will send a REFER
message to opensips specifying a refer-to User2(another softphone) and the
media server should remove itself from the call and let User1 and User2
connect to each other through opensips.

Here are my questions :

1) The rtpproxy module re-writes SDP and how does this affect if I use
b2bua module to handle REFER messages ?
2) Will the work done by nathelper and rtpproxy be undone if I call
b2b_init_request on the initial INVITE ?
3) Do I have to have a separate IP for b2bua server or is it ok to run it
on the same ip which the opensips is running ?
4) I have seen some people block the INVITE's coming from b2bua server IP
at initial INVITE.. do I have to do this too ?

Thank You, :)

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


[OpenSIPS-Users] Need Help for Opensips configuration on AMAZON EC2

2012-05-25 Thread tapas
Hi,

I am trying to use Opensips 1.8 on Amazon EC2 Cloud. But I am finding
difficulty with it. I attached my opensips configuration file here. I am
using Jitsi windows version as sip user client to connect with it. I have
public static ip on amazon EC2 cloud.  I am also using RTPPROXY as media
relay on same Opensips 1.8 server.

here is the configuration:

JITSI SIP Client A--NAT-INTERNET-AMAZON EC2 NATOpenSip 1.8
Server
 |

JITSI SIP Client B--NAT--|


With my opensip configuration both client can chat together and see each
other presence. They can also each other status.

Problem is happening with audio/video call. If call is connected then it
will not hang. it may go on for 2 hours and I can see audio and video. I
have also from RTPPROXY logs that it is relaying all packets perfectly
without loss. But sometimes Client A invites client B . Client B doesn't
receives invite request at all and if it receives invite request by chance
then it is unable to accept the call.  I am using udp as call transport
layer. i am also not using TLS as this stage.

I attached my configuration file ( I masked my public ip and host name). I
followed following advice to reach till this stage:

http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-behind-Static-NAT-Amazon-EC2-tt4970920.html#a4971239

Please advice me to solve this problem.

Tapas


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


[OpenSIPS-Users] Need help in call forwarding

2011-07-19 Thread Akib Sayyed
i need help in forwarding calls
i want to accept call on my did
then i want to send them to my IVR server
but i dont want to register any of user agent. still i want to forward calls
to my SEMS server how can i do that.
also one more thing i want to send custom message if sip address not
available
can anyone help me please

-- 
Akib Sayyed
Matrix-Shell
akibsay...@gmail.com
akibsay...@matrixshell.com
Mob:- +91-966-514-2243
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need help defining a stackexchange (i.e. stackoverflow) for telephony

2011-05-09 Thread simon-opensips
For those of that are fans of stackoverflow.com, and stackexchange.com, 
there's an effort to define a telephony stackexchange site. It's still in 
the definition phase -- what it needs to move forwards is more votes on 
on/off topic questions, and perhaps some better questions to vote for or 
against.


If you're interested in helping out, or following the progress, visit:
http://area51.stackexchange.com/proposals/12932/telephony/

Cheers,
spd

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


Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

2010-11-30 Thread Tijmen de Mes

Hi,

On Nov 25, 2010, at 10:06 AM, ha do wrote:

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i  
need 100

terminated i need to increase to 100, right???

how to fix the issue
Try  using socket_path=/tmp/socket in config.ini. The socket path  
should match the mi_datagram ,socket_name

 in the opensips config.

Tijmen de Mes
AG Projects


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


Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

2010-11-30 Thread ha do
Hi Tijmen

it works fine right now for callcontrol hangups a call in my last email
can i request to make the instruction on config.sample.ini of the OPENSIPS part
callcontrol uses the mi_datagram to make it clearer not confusing with mi_fifo
and the socket_path is the same socket_name in mi_datagram config of opensips
it should be good for someone, likes me

i still need help
 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,how to config cdrtool rating calls for opensips2


Thank you
Ha


- Original Message 
From: Tijmen de Mes tij...@ag-projects.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Tue, November 30, 2010 3:44:12 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

On Nov 25, 2010, at 10:06 AM, ha do wrote:
 and opensips.cfg with fifo config
 # - mi_fifo params -
 modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
 modparam(mi_fifo, fifo_mode, 0600)
 modparam(mi_fifo, fifo_group, 0)
 modparam(mi_fifo, fifo_group, root)
 modparam(mi_fifo, fifo_user, 0)
 modparam(mi_fifo, fifo_user, root)
 
 and the callcontrol config.ini
 [CallControl]
 group   = root
 [OpenSIPS]
 socket_path = /tmp
 ;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100
 terminated i need to increase to 100, right???
 
 how to fix the issue
Try  using socket_path=/tmp/socket in config.ini. The socket path should match 
the mi_datagram ,socket_name
in the opensips config.

Tijmen de Mes
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] need help on connection CDRTool to opensips

2010-11-29 Thread ha do
Hi Tijimen

[ha - solved] with help from bogdan_vs: i change the sock_path = 
/tmp/opensips.sock and use the mi_datagram in opensips.cfg
callcontrol hangup calls successfull. So the callcontrol use the mi_datagram, 
right??

i still need help
 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,

Thank you
Ha

- Original Message 
From: ha do haloha...@yahoo.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Thu, November 25, 2010 4:06:14 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi all

can anyone help me on call-control, i already try the 
mi_datagrambut i get the same error, permission denied

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com disconnected by call control after 60 seconds, call 
price 

is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue

thank you
Ha



- Original Message 
From: ha do haloha...@yahoo.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Wed, November 17, 2010 10:07:16 AM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi Tijimen


sorry for late reply


 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,



 i just try to see what happen in cdrtool, call from subscriber to subscriber
 
 these are the logs
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
 callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
 Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
 callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39
 
 log of call-control
 Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
 sip:00842...@192.168.1.39 is postpaid not limited
 
 it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

[ha] it is done and work perfectly except 1 thing

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com disconnected by call control after 60 seconds, call 
price 


is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue


Thank you
Ha`

- Original Message 
From: Tijmen de Mes tij...@ag-projects.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Mon, November 15, 2010 4:11:20 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

 
 The following steps are performed to rate a CDR:
 
 1. Determination of the billing party

Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

2010-11-25 Thread ha do
Hi all

can anyone help me on call-control, i already try the 
mi_datagrambut i get the same error, permission denied

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com disconnected by call control after 60 seconds, call 
price 
is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue

thank you
Ha



- Original Message 
From: ha do haloha...@yahoo.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Wed, November 17, 2010 10:07:16 AM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi Tijimen


sorry for late reply


 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,



 i just try to see what happen in cdrtool, call from subscriber to subscriber
 
 these are the logs
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
 callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
 Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
 callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39
 
 log of call-control
 Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
 sip:00842...@192.168.1.39 is postpaid not limited
 
 it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

[ha] it is done and work perfectly except 1 thing

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com disconnected by call control after 60 seconds, call 
price 

is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue


Thank you
Ha`

- Original Message 
From: Tijmen de Mes tij...@ag-projects.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Mon, November 15, 2010 4:11:20 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

 
 The following steps are performed to rate a CDR:
 
 1. Determination of the billing party
 a. SIP account u...@domain
 b. SIP domain of the SIP account
 c. Source IP of the session
d. Default (when none of the above matches)
 if there is no sip account u...@domain in cdrtool the cdrtool try next
 option(sip domain) if sip domain does not exist it try next option(source 
ip)and
 then the default option
 please let me know if i am wrong
This is correct.

 2. Determination of the destination id
 a. CanonicalURI (the destination after all lookups inside the SIP Proxy)
 b. SipTranslatedRequestURI (the Request URI as presented by the SIP UA)
 c. CalledStationId (the content of the To header, used as a last resort)
 if the CanonicalURI does not exist

Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

2010-11-16 Thread ha do
Hi Tijimen


sorry for late reply


 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,



 i just try to see what happen in cdrtool, call from subscriber to subscriber
 
 these are the logs
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
 callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
 Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
 callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39
 
 log of call-control
 Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
 sip:00842...@192.168.1.39 is postpaid not limited
 
 it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

[ha] it is done and work perfectly except 1 thing

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com disconnected by call control after 60 seconds, call 
price 
is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue


Thank you
Ha`

- Original Message 
From: Tijmen de Mes tij...@ag-projects.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Mon, November 15, 2010 4:11:20 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

 
 The following steps are performed to rate a CDR:
 
 1. Determination of the billing party
 a. SIP account u...@domain
 b. SIP domain of the SIP account
 c. Source IP of the session
d. Default (when none of the above matches)
 if there is no sip account u...@domain in cdrtool the cdrtool try next
 option(sip domain) if sip domain does not exist it try next option(source 
ip)and
 then the default option
 please let me know if i am wrong
This is correct.

 2. Determination of the destination id
 a. CanonicalURI (the destination after all lookups inside the SIP Proxy)
 b. SipTranslatedRequestURI (the Request URI as presented by the SIP UA)
 c. CalledStationId (the content of the To header, used as a last resort)
 if the CanonicalURI does not exist it try to next option(Request URI) ...
 please let me know if i am wrong
This is also correct.

 3. Determination of the costs
 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?

 
 how can i config cdrtool rating all calls from opensips1 and opensips2
 could you please guide me some steps to do
Did you load the sample data so you can see if a call gets rated?

 
 i just try to see what happen in cdrtool, call from subscriber to subscriber
 
 these are the logs
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
 callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
 Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
 callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39
 
 log of call-control
 Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
 sip:00842...@192.168.1.39 is postpaid not limited
 
 it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

--
Tijmen de Mes
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] need help on connection CDRTool to opensips

2010-11-11 Thread Tijmen de Mes

Hi,

You should verify by hand that you can connect to the database by
executing a mysql -h 192.168.1.39 -u opensips -psips  opensips.

Maybe you forgot to remove the bind interfaces directive in the mysql  
config.


Best regards,

Tijmen de Mes
AG Projects

On Nov 9, 2010, at 4:11 AM, ha do wrote:


Hi all

i installed opensips and mediaproxy in server 1, ip address :  
192.168.1.39

and cdrtool and freeradius in server 2, ip address : 192.168.1.42

the opensips, mediaproxy, freeradius starting are fine


i use the link below as a guide
http://cdrtool.ag-projects.com/browser/doc/INSTALL.txt

the problem i got only with cdrtool
Nov  9 04:56:22 cdrtool cdrtool[3219]: Read 12291 PSTN destinations  
from cache

in 0 seconds
Nov  9 04:56:22 cdrtool cdrtool[3219]: Error in connect(): pconnect  
as opensips

to 192.168.1.39 failed
Nov  9 04:56:22 cdrtool cdrtool[3219]: Database DB_opensips error:   
(0) select *

from domain
Nov  9 04:56:22 cdrtool cdrtool[3219]: Error in connect(): pconnect  
as opensips

to 192.168.1.39 failed
Nov  9 04:56:22 cdrtool cdrtool[3219]: Database DB_opensips error:   
(0) select *

from trusted
Nov  9 04:56:22 cdrtool cdrtool[3219]: PSTN destinations cache size:  
0.64 MB
Nov  9 04:56:22 cdrtool cdrtool[3219]: SIP destinations cache size:  
0.00 MB
Nov  9 04:56:22 cdrtool cdrtool[3219]: Cached 12291 total, 12291  
default, 0

gateway, 0 domain, 0 subscriber destinations
Nov  9 04:56:22 cdrtool cdrtool[3219]: Cached 0 SIP destinations


the cdrtool is fine with almost component except the connection to  
opensips

the global.inc with define opensips server
class DB_opensips extends DB_Sql {
var $Host = 192.168.1.39;
var $Database = opensips;
var $User = opensips;
var $Password = sips;
var $Halt_On_Error = no;
}

and issue the command  grant all on opensips.* to  
opensips@'192.168.1.%'

identified by 'sips'; in opensips server

please help

Ha`





___
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] need help on connection CDRTool to opensips

2010-11-11 Thread ha do
Hi Tijmen

Maybe you forgot to remove the bind interfaces directive in the mysql config.
that is useful information, i edit the my.cnf and now it works fine now

i read the RATING.txt, PREPAID.txt times to times but i cannot understand it


The following steps are performed to rate a CDR:

1. Determination of the billing party
a. SIP account u...@domain 
b. SIP domain of the SIP account
c. Source IP of the session
d. Default (when none of the above matches)
if there is no sip account u...@domain in cdrtool the cdrtool try next 
option(sip domain) if sip domain does not exist it try next option(source 
ip)and 
then the default option
please let me know if i am wrong

2. Determination of the destination id
a. CanonicalURI (the destination after all lookups inside the SIP Proxy) 
b. SipTranslatedRequestURI (the Request URI as presented by the SIP UA)
c. CalledStationId (the content of the To header, used as a last resort)
if the CanonicalURI does not exist it try to next option(Request URI) ...
please let me know if i am wrong

3. Determination of the costs


i try to test 
1. opensips1 is the registrar server and try to do prepaid for every 
subscribers 
of opensips
subscriber registers to opensips1, opensips1 domain 192.168.1.39

2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service provider

how can i config cdrtool rating all calls from opensips1 and opensips2
could you please guide me some steps to do

i did check the global.inc and cdr_generic.php 
-global.inc is a copy of global.inc.simple.sample and i change 
# Normalize engine settings
$CDRTool['normalize']['defaultCountryCode']  = 84;
-cdr-generic.php does not change


i config  in web

the destination
Ops,Reseller,Trusted 
peer,Domain,Subscriber,Destination,Region,Description,Incr,Min Dur,Max Dur,Max 
Price
2,084,,vietnam,6,6,0,

rate
Ops,Reseller,Rate,Destination,App,Connect,Duration,Conn In,Duration In
2,0,84,84,audio,0,998,,

profile
Ops,Reseller,Profile,Rate 1,00-H1,Rate 2,H1-H2,Rate 3,H2-H3,Rate 4,H3-24
2,0,84,84,24,0,0,,0,,0


i just try to see what happen in cdrtool, call from subscriber to subscriber

these are the logs
Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000 
callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39 
Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid 
callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39

log of call-control
Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to 
sip:00842...@192.168.1.39 is postpaid not limited

it always return postpaid

Thank you




- Original Message 
From: Tijmen de Mes tij...@ag-projects.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Thu, November 11, 2010 4:42:49 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

You should verify by hand that you can connect to the database by
executing a mysql -h 192.168.1.39 -u opensips -psips  opensips.

Maybe you forgot to remove the bind interfaces directive in the mysql config.

Best regards,

Tijmen de Mes
AG Projects

On Nov 9, 2010, at 4:11 AM, ha do wrote:

 Hi all
 
 i installed opensips and mediaproxy in server 1, ip address : 192.168.1.39
 and cdrtool and freeradius in server 2, ip address : 192.168.1.42
 
 the opensips, mediaproxy, freeradius starting are fine
 
 
 i use the link below as a guide
 http://cdrtool.ag-projects.com/browser/doc/INSTALL.txt
 
 the problem i got only with cdrtool
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Read 12291 PSTN destinations from cache
 in 0 seconds
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Error in connect(): pconnect as 
opensips
 to 192.168.1.39 failed
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Database DB_opensips error:  (0) 
 select 
*
 from domain
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Error in connect(): pconnect as 
opensips
 to 192.168.1.39 failed
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Database DB_opensips error:  (0) 
 select 
*
 from trusted
 Nov  9 04:56:22 cdrtool cdrtool[3219]: PSTN destinations cache size: 0.64 MB
 Nov  9 04:56:22 cdrtool cdrtool[3219]: SIP destinations cache size: 0.00 MB
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Cached 12291 total, 12291 default, 0
 gateway, 0 domain, 0 subscriber destinations
 Nov  9 04:56:22 cdrtool cdrtool[3219]: Cached 0 SIP destinations
 
 
 the cdrtool is fine with almost component except the connection to opensips
 the global.inc with define opensips server
 class DB_opensips extends DB_Sql {
 var $Host = 192.168.1.39;
 var $Database = opensips;
 var $User = opensips;
 var $Password = sips;
 var $Halt_On_Error = no;
 }
 
 and issue the command  grant all on opensips.* to opensips@'192.168.1.%'
 identified by 'sips'; in opensips server
 
 please help
 
 Ha`
 
 
 
 
 
 ___
 Users mailing list
 Users@lists.opensips.org

[OpenSIPS-Users] need help on CDRTool

2010-11-10 Thread ha do
hi 

i try to learn CDRTool, 

i config the global.inc  with 
# Normalize engine settings
$CDRTool['normalize']['defaultCountryCode']  = 84;

the cdr_generic.php 
class CDRS {

var $CDR_class   = 'CDR';
var $intAccessCode   = '00';
var $natAccessCode   = '0';
var $maxrowsperpage  = 15;
var $status  = array();
var $normalizedField = 'Normalized';
var $DestinationIdField  = 'DestinationId';
var $BillingIdField  = 'UserName';

i config  in web

the destination
Ops,Reseller,Trusted 
peer,Domain,Subscriber,Destination,Region,Description,Incr,Min Dur,Max Dur,Max 
Price
2,084,,vietnam,6,6,0,

rate
Ops,Reseller,Rate,Destination,App,Connect,Duration,Conn In,Duration In
2,0,84,84,audio,0,998,,

profile
Ops,Reseller,Profile,Rate 1,00-H1,Rate 2,H1-H2,Rate 3,H2-H3,Rate 4,H3-24
2,0,84,84,24,0,0,,0,,0


when i make call and get the syslog of cdrtool
Nov 11 06:20:57 opensips cdrtool[2312]: MaxSessionTime Duration=36000 
callid=1289440810-2424-hiep...@192.168.1.36 From=sip:843...@192.168.1.41 
Gateway=192.168.1.36 To=sip:00842...@192.168.1.41
Nov 11 06:20:57 opensips cdrtool[2312]: MaxSessionTime=unlimited Type=postpaid 
callid=1289440810-2424-hiep...@192.168.1.36 billingparty=843...@192.168.1.41

get the log from callcontrol
Call id 1289440810-2424-hiep...@192.168.1.36 of 843...@192.168.1.41 to 
sip:00842...@192.168.1.41 is postpaid not limited


what do i miss thing to make CDRTool rating a call, please help

Thank you
Ha`



  

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


[OpenSIPS-Users] need help on connection CDRTool to opensips

2010-11-08 Thread ha do
Hi all

i installed opensips and mediaproxy in server 1, ip address : 192.168.1.39
and cdrtool and freeradius in server 2, ip address : 192.168.1.42

the opensips, mediaproxy, freeradius starting are fine


i use the link below as a guide
http://cdrtool.ag-projects.com/browser/doc/INSTALL.txt

the problem i got only with cdrtool
Nov  9 04:56:22 cdrtool cdrtool[3219]: Read 12291 PSTN destinations from cache 
in 0 seconds
Nov  9 04:56:22 cdrtool cdrtool[3219]: Error in connect(): pconnect as opensips 
to 192.168.1.39 failed
Nov  9 04:56:22 cdrtool cdrtool[3219]: Database DB_opensips error:  (0) select 
* 
from domain
Nov  9 04:56:22 cdrtool cdrtool[3219]: Error in connect(): pconnect as opensips 
to 192.168.1.39 failed
Nov  9 04:56:22 cdrtool cdrtool[3219]: Database DB_opensips error:  (0) select 
* 
from trusted
Nov  9 04:56:22 cdrtool cdrtool[3219]: PSTN destinations cache size: 0.64 MB
Nov  9 04:56:22 cdrtool cdrtool[3219]: SIP destinations cache size: 0.00 MB
Nov  9 04:56:22 cdrtool cdrtool[3219]: Cached 12291 total, 12291 default, 0 
gateway, 0 domain, 0 subscriber destinations
Nov  9 04:56:22 cdrtool cdrtool[3219]: Cached 0 SIP destinations


the cdrtool is fine with almost component except the connection to opensips
the global.inc with define opensips server
class DB_opensips extends DB_Sql {
  var $Host = 192.168.1.39;
  var $Database = opensips;
  var $User = opensips;
  var $Password = sips;
  var $Halt_On_Error = no;
}

and issue the command  grant all on opensips.* to opensips@'192.168.1.%' 
identified by 'sips'; in opensips server

please help

Ha`



  

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


Re: [OpenSIPS-Users] Need help on realtime integration OpenSIPS with Freeswitch.

2010-09-03 Thread ram
Hi hema

its possible to use same database for both servers
opensips and fs uses,

 XML_CURL in FS can use the opensips database

Ram

On Tue, Aug 24, 2010 at 4:11 PM, hemaram hema_ramamoor...@yahoo.com wrote:


 Hi Bogdan,

 We are implementing a similar set up like Hung's.
 We want the Opensips to serve as Proxy, Registrar and Load-balancer (all
 three at a time) and the Freeswitch cluster will just take care of the PBX
 functionalities.

 Can this be made possible? From all the wiki pages and mailing lists that I
 read, what I understand is that the Opensips can act either as Proxy and
 Registar or as a Load-balancer at a point of time.

 Looking forward to you reply. Thanks in advance!

 Regards,
 Hema.
 --
 View this message in context:
 http://opensips-open-sip-server.1449251.n2.nabble.com/Need-help-on-realtime-integration-OpenSIPS-with-Freeswitch-tp4996544p5456342.html
 Sent from the OpenSIPS - Users mailing list archive at Nabble.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] Need help on realtime integration OpenSIPS with Freeswitch.

2010-08-27 Thread hemaram

Hi Bogdan,

We are implementing a similar set up like Hung's. 
We want the Opensips to serve as Proxy, Registrar and Load-balancer (all
three at a time) and the Freeswitch cluster will just take care of the PBX
functionalities.

Can this be made possible? From all the wiki pages and mailing lists that I
read, what I understand is that the Opensips can act either as Proxy and
Registar or as a Load-balancer at a point of time.

Looking forward to you reply. Thanks in advance!

Regards,
Hema.
-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Need-help-on-realtime-integration-OpenSIPS-with-Freeswitch-tp4996544p5456342.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


Re: [OpenSIPS-Users] Need help on realtime integration OpenSIPS with Freeswitch.

2010-05-07 Thread hungnguyen

Hi Bogdan.
Thank for your help. 
I done your suggestions. The system run very well. ^^

But with this Opensips only do proxy server and FS boxes must do register
server.
It is great if Opensips can do register server and only load balance other
request. FS boxes have it database and it is configured to share view with
opensips DB (like realtime integration Opensips with Asterisk).

I have read in list and see that there are some same ideals. So i wonder has
sbd done this.

Bogdan, please let me thank you again. 
 
-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Need-help-on-realtime-integration-OpenSIPS-with-Freeswitch-tp4996544p5018830.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


Re: [OpenSIPS-Users] Need help on realtime integration OpenSIPS with Freeswitch.

2010-05-05 Thread Bogdan-Andrei Iancu
Hi,

you can see the default cfg file (that comes with opensips) for a 
generic frame (authenticating and registering) - on that, add the LB or 
dispatcher part to send the call to the pool of FSs.

Regards,
Bogdan

hung nguyen wrote:
 Hi.

 I deploy cluster Freeswitch boxes with share Database( use ODBC),they 
 act as PBX (register server, proxy server, media server ...). 
 Now FS is load balanced via DNS-SRV record.

 I read in wiki about: Load balance using OpenSIPS,Realtime integration 
 OpenSIPS with Asterisk; and think it can be apply with FS.
 I want to deploy Opensips between FS boxes, all users and gateways. 
 Opensips will act as register server for all users, and ( if can ) 
 load balance server for all FS boxes.

 Thanks to suggestions.
 

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


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


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


[OpenSIPS-Users] Need help on realtime integration OpenSIPS with Freeswitch.

2010-05-03 Thread hung nguyen
Hi list.
I read some document about interation OpenSIPS with Asterisk. But now, i
need to deploy with Freeswitch. Anybody done this?
I deploy Freeswitch with using ODBC in the core, but i don't know how to
create view share datebase between FS DB and Opensips DB.
Tks.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] need help -- opensips cp -- sip trace setup giving errors

2010-03-24 Thread Christian Vo
Hello,
Just installed opensips control panel and some things are not working:

I noticed that selecting the SIP trace feature was initially giving me error:

Array ( [0] = sorry -- cannot open write fifo )


So I then uncommented the sections in 
opensips-cp/config/tools/system/siptrace/db.inc.php , providing proper db login 
credentials...

Trying to access the SIP trace feature then gave me blank main screen,
Apache error log message:


[Wed Mar 17 14:06:30 2010] [error] [client 10.31.53.162] PHP Fatal error:  Call 
to undefined method MDB2_Error::setFetchMode() in 
/srv/www/htdocs/opensips-cp/web/tools/system/siptrace/lib/db_connect.php on 
line 39, referer: http://10.32.0.97/cp/menu.php


Does anyone know what needs to be fixed?
Thx



---
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
---
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] need help -- opensips cp -- sip trace setup giving errors

2010-03-18 Thread Christian Vo
Hello,
Just installed opensips control panel and some things are not working:

I noticed that selecting the SIP Trace feature was initially giving me 
on-screen error:

Array ( [0] = sorry -- cannot open write fifo )


So I then uncommented the sections in 
opensips-cp/config/tools/system/siptrace/db.inc.php , providing proper db login 
credentials...

Trying to access the SIP Trace feature then gave me blank main screen,
Apache error log message:


[Wed Mar 17 14:06:30 2010] [error] [client 10.31.53.162] PHP Fatal error:  Call 
to undefined method MDB2_Error::setFetchMode() in 
/srv/www/htdocs/opensips-cp/web/tools/system/siptrace/lib/db_connect.php on 
line 39, referer: http://10.32.0.97/cp/menu.php

Running on OpenSuSE11.2...

Does anyone know what needs to be fixed?
Thx



---
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
---
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] need help -- opensips cp -- sip trace setup giving errors

2010-03-18 Thread Bogdan-Andrei Iancu
Hi Christian,

does your opensips load the mi_fifo module and create a fifo file with 
the same name as the fifo you configured in the opensips-cp boxes? (note 
that the fifo is created automatically by opensips at startup).

also take care and check the permissions of the fifo file - if you run 
opensips as root, the fifo file will have the root owner and opensips-cp 
(running as apache/www-data) will not be allowed to write into it. So, 
you should configure opensips to create the fifo with more loose 
permissions; see
http://www.opensips.org/html/docs/modules/1.6.x/mi_fifo.html#id227261

Regards,
Bogdan

Christian Vo wrote:
 Hello,
 Just installed opensips control panel and some things are not working:
 I noticed that selecting the SIP Trace feature was initially giving me 
 on-screen error:
 “Array ( [0] = sorry -- cannot open write fifo )”
 So I then uncommented the sections in 
 opensips-cp/config/tools/system/siptrace/db.inc.php , providing proper 
 db login credentials…
 Trying to access the SIP Trace feature then gave me blank main screen,
 Apache error log message:
 [Wed Mar 17 14:06:30 2010] [error] [client 10.31.53.162] PHP Fatal 
 error: Call to undefined method MDB2_Error::setFetchMode() in 
 /srv/www/htdocs/opensips-cp/web/tools/system/siptrace/lib/db_connect.php 
 on line 39, referer: _http://10.32.0.97/cp/menu.php_
 Running on OpenSuSE11.2…
 Does anyone know what needs to be fixed?
 Thx
 
 This email message is for the sole use of the intended recipient(s) 
 and may contain confidential information. Any unauthorized review, 
 use, disclosure or distribution is prohibited. If you are not the 
 intended recipient, please contact the sender by reply email and 
 destroy all copies of the original message.
 
 

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


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


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


Re: [OpenSIPS-Users] need help -- opensips cp -- sip trace setup giving errors

2010-03-18 Thread Christian Vo
Thanks Bogdan, 
I've checked that mi_fifo is loaded, and that /tmp/opensips.fifo is created by 
user/group opensips:opensips
Based on what I could find via google, I made the apache user part of opensips 
group.. Buy now I  get a new error on the SIP Trace main screen:

sorry -- reply fifo opening error


I also noticed that my local.inc.php file for 
opensips-cp/config/tools/system/mi doesn't contain any code...?
(I installed using the latest opensips cp v4.0 tarball) 

There was some email thread about 
Adding some lines to opensips-cp/config/tools/system/domains/local.inc.php  
(http://www.openser.org/pipermail/users/2008-December/001804.html)
Which said same problem like MI tool:


 add these lines into opensips-cp/config/tools/domains/local.inc.php :

$config-reply_fifo_filename=webfifo_.rand();
$config-reply_fifo_path=/tmp/.$config-reply_fifo_filename;

But no idea what MI's local.inc.php file is supposed to contain .. all I see 
are the comments and nothing more... 

Appreciate the help!


-Original Message-
From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Thursday, March 18, 2010 1:27 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] need help -- opensips cp -- sip trace setup 
giving errors

Hi Christian,

does your opensips load the mi_fifo module and create a fifo file with 
the same name as the fifo you configured in the opensips-cp boxes? (note 
that the fifo is created automatically by opensips at startup).

also take care and check the permissions of the fifo file - if you run 
opensips as root, the fifo file will have the root owner and opensips-cp 
(running as apache/www-data) will not be allowed to write into it. So, 
you should configure opensips to create the fifo with more loose 
permissions; see
http://www.opensips.org/html/docs/modules/1.6.x/mi_fifo.html#id227261

Regards,
Bogdan

Christian Vo wrote:
 Hello,
 Just installed opensips control panel and some things are not working:
 I noticed that selecting the SIP Trace feature was initially giving me 
 on-screen error:
 Array ( [0] = sorry -- cannot open write fifo )
 So I then uncommented the sections in 
 opensips-cp/config/tools/system/siptrace/db.inc.php , providing proper 
 db login credentials...
 Trying to access the SIP Trace feature then gave me blank main screen,
 Apache error log message:
 [Wed Mar 17 14:06:30 2010] [error] [client 10.31.53.162] PHP Fatal 
 error: Call to undefined method MDB2_Error::setFetchMode() in 
 /srv/www/htdocs/opensips-cp/web/tools/system/siptrace/lib/db_connect.php 
 on line 39, referer: _http://10.32.0.97/cp/menu.php_
 Running on OpenSuSE11.2...
 Does anyone know what needs to be fixed?
 Thx
 
 This email message is for the sole use of the intended recipient(s) 
 and may contain confidential information. Any unauthorized review, 
 use, disclosure or distribution is prohibited. If you are not the 
 intended recipient, please contact the sender by reply email and 
 destroy all copies of the original message.
 
 

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


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


___
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


  1   2   >