回复: 回复: Dialog Concurrency Control Issue.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

回复: 回复: Dialog Concurrency Control Issue.

jing
hi,Schneur.
Thanks for your advice.
But I did put the check before  create_dialog("B")  in the original oprnsips.cfg:
 
if (is_method("INVITE")) {
                xlog("active dialog is $stat(active_dialogs)");
                if ($stat(active_dialogs)>=1){
                sl_send_reply("503", "Service Unavailable");
                exit;
                }
                # create dialog with timeout
                if ( !create_dialog("B") ) {
                        send_reply("500","Internal Server Error");
                        exit;
                }
                setflag(ACC_DO); # do accounting
        }
 

So what is wrong in the script?
And I still want to know how to judge a call is "active_dialogs"?
Thanks a lot.
 
regards,
jing
------------------ 原始邮件 ------------------
发件人: "Schneur Rosenberg";<[hidden email]>;
发送时间: 2014年7月14日(星期一) 晚上6:25
收件人: "OpenSIPS users mailling list"<[hidden email]>;
主题: Re: [OpenSIPS-Users]回复: Dialog Concurrency Control Issue.

You need to do this before the create_dialog() call

On Jul 14, 2014 10:33 AM, "jing" <[hidden email]> wrote:
Thanks for your reply.But I have another question, I used  active_dialogs  in the cfg file as this:
 
if (is_method("INVITE")) {
                if ($stat(active_dialogs)>=1){
                sl_send_reply("503", "Service Unavailable");
                }
But it seems not right.
I use sipp to test the limit ,but when the value of active_dialogs aim to the number I set ,
opensips sent 503,but  the value of active_dialogs sitll increase.
So I want to know how the value of this paramer comefrom.
Or is there something wrong in my cfg document?
 
regards,
Jing


------------------ 原始邮件 ------------------
发件人: "Schneur Rosenberg [via OpenSIPS (Open SIP Server)]"<[hidden email]>;
发送时间: 2014年7月14日(星期一) 下午2:08
收件人: "jing "<[hidden email]>;
主题: Re: Dialog Concurrency Control Issue.

Very simple, before creating a new dialog check how many open dialogs exist.

On Jul 14, 2014 9:05 AM, "jing" <[hidden email]> wrote:
hi,Bogdan


 I want to limit the total number of active dialogs ,what should I do ?

I found there are many questions about "Concurrent calls limitation " based
on per user, it's not what I need.

I appreciate your advice very much,  more detailed the better.

Thanks,
Regards,
jing



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592368.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



If you reply to this email, your message will be added to the discussion below:
http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592369.html
To unsubscribe from Dialog Concurrency Control Issue., click here.
NAML


View this message in context: 回复: Dialog Concurrency Control Issue.
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: 回复: 回复: Dialog Concurrency Control Issue.

Bogdan-Andrei Iancu-2
Hi,

I see you added the missing "exit" after the sl_send_reply() and you do create the dialog for each INVITE (hopefully only for the initial ones :) ).

What seems to be the exact problem now ?

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 15.07.2014 05:21, jing wrote:
hi,Schneur.
Thanks for your advice.
But I did put the check before  create_dialog("B")  in the original oprnsips.cfg:
 
if (is_method("INVITE")) {
                xlog("active dialog is $stat(active_dialogs)");
                if ($stat(active_dialogs)>=1){
                sl_send_reply("503", "Service Unavailable");
                exit;
                }
                # create dialog with timeout
                if ( !create_dialog("B") ) {
                        send_reply("500","Internal Server Error");
                        exit;
                }
                setflag(ACC_DO); # do accounting
        }
 

So what is wrong in the script?
And I still want to know how to judge a call is "active_dialogs"?
Thanks a lot.
 
regards,
jing
------------------ 原始邮 件 ------------------
发件人: "Schneur Rosenberg";[hidden email];
发送时间: 2014年7月14日(星期一) 晚上6:25
收件人: "OpenSIPS users mailling list"[hidden email];
主题: Re: [OpenSIPS-Users]回复: Dialog Concurrency Control Issue.

You need to do this before the create_dialog() call

On Jul 14, 2014 10:33 AM, "jing" <[hidden email]> wrote:
Thanks for your reply.But I have another question, I used  active_dialogs  in the cfg file as this:
 
if (is_method("INVITE")) {
                if ($stat(active_dialogs)>=1){
                sl_send_reply("503", "Service Unavailable");
                }
But it seems not right.
I use sipp to test the limit ,but when the value of active_dialogs aim to the number I set ,
opensips sent 503,but  the value of active_dialogs sitll increase.
So I want to know how the value of this paramer comefrom.
Or is there something wrong in my cfg document?
 
regards,
Jing


------------------ 原始邮 件 ------------------
发件人: "Schneur Rosenberg [via OpenSIPS (Open SIP Server)]"<[hidden email]>;
发送时间: 2014年7月14日(星期一) 下午2:08
收件人: "jing "<[hidden email]>;
主题: Re: Dialog Concurrency Control Issue.

Very simple, before creating a new dialog check how many open dialogs exist.

On Jul 14, 2014 9:05 AM, "jing" <[hidden email]> wrote:
hi,Bogdan


 I want to limit the total number of active dialogs ,what should I do ?

I found there are many questions about "Concurrent calls limitation " based
on per user, it's not what I need.

I appreciate your advice very much,  more detailed the better.

Thanks,
Regards,
jing



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592368.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



If you reply to this email, your message will be added to the discussion below:
http://opensips-open-sip-server.1449251.n2.nabble.com/Dialog-Concurrency-Control-Issue-tp6172931p7592369.html
To unsubscribe from Dialog Concurrency Control Issue., click here.
NAML


View this message in context: 回复: Dialog Concurrency Control Issue.
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users