Re: [OpenSIPS-Users] dispatcher with t_relay performance

2016-03-06 Thread SamyGo
I'd ask you to read difference between Load_balancer and Dispatcher module.
Dispatcher module is not an accurate measure but it is the only option when
it comes to load balancing REGISTER requests.

Dispatcher is hence very light weight as compared to Load Balancer. For a
200 CPS calls Load Balancer or Dispatcehr won't be putting any bigger
impact relative to the business logic itself. For example doing alot of DB
queries, engaging various other modules etc these things really define how
light or heavy your system is going to be.

Regards,
Sammy


On Sun, Mar 6, 2016 at 10:36 AM, Satish Patel  wrote:

> Any thought on it???
>
> On Fri, Mar 4, 2016 at 1:30 PM, Satish Patel  wrote:
> > We have dispatcher and we are using very simple code block like following
> >
> > if (method=="REGISTER" || method=="INVITE" ) {
> >  ds_select_dst("1", "2");
> >  t_relay();
> >}
> >
> > Does t_relay will keep all transaction in memory? and what will be the
> > performance issue?  we have ~200k cps calls.. what will be the impact?
>
> ___
> 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] E_DLG_STATE_CHANGED in event route

2016-03-06 Thread Admin
Hi all,

I want to track dialog state change using event_route but i am not
getting anything in the log file. The way i understand it is when the
dialog state changes, the event E_DLG_STATE_CHANGED is triggered, and
putting that in the event_route block, i should see it but it's not
showing in the log file. 

What am i missing? Thank you.

event_route[E_DLG_STATE_CHANGED] {
xlog("Dialog state changed\n");
}

I am running opensips 2.1.2 on debian 8 64bit.

=

loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "default_timeout", 14400)  # 4 hours timeout
modparam("dialog", "db_mode", 1)
modparam("dialog", "db_update_period", 60)
modparam("dialog", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME


# create dialog with timeout
if ( !create_dialog("B") ) {
send_reply("500","Internal Server Error");
exit;
}


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


Re: [OpenSIPS-Users] dispatcher with t_relay performance

2016-03-06 Thread Satish Patel
Any thought on it???

On Fri, Mar 4, 2016 at 1:30 PM, Satish Patel  wrote:
> We have dispatcher and we are using very simple code block like following
>
> if (method=="REGISTER" || method=="INVITE" ) {
>  ds_select_dst("1", "2");
>  t_relay();
>}
>
> Does t_relay will keep all transaction in memory? and what will be the
> performance issue?  we have ~200k cps calls.. what will be the impact?

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