Re: [OpenSIPS-Users] Carrier route Failover
Hello Khaled, The fallback between rules (like from 1578 to 157) is controlled (can be enabled / disabled) via the F flag . See: http://www.opensips.org/html/docs/modules/1.9.x/drouting.html#id293614 Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 05/23/2013 07:31 PM, M.Khaled W Chehab wrote: Hi, I am using opensips 1.8.3, In the do_routing($cusid,FW) I allow fail over and weight, Moreover I create a two dial rules with same priority and prefix 1578,157 and assign to 1578 gwlist #USA that includes gw1 and gw2 to it for dial rule 157 I assign gwlist gw3 The dialed number is: 15782626262 As I allow fail over so, if the call didn't succeed in connecting through #USA (dial rule prefix 1578) it will jump to the shortest match rule that has a dial rule prefix 157 and go to gw3 Since I am in need to have both scenarios (failover and denting failover) , *_My question is :_*how can I set a flag or anything can do after rule prefix 1578 to allow or disallow the failing over I try to add an attribute flag (1 is blocked ,0 allow fail over) on dr_rules and get it before use_next_gw() ,but in this case only the call will go to gw1 $dlg_val(routeblock)=$avp(rule_attrs); if($dlg_val(routeblock)==1) { xlog(L_INFO, --Route 6---StickCheck--avp : $avp(rule_attrs)---$dlg_val(\routeblock\)\n); exit; } Please advice Regards ___ 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] Carrier route Failover
Hello Bogdan, Thanks for replying , I know this and in mention that below ,if you can read it again I will be apprriciated Regards From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Friday, May 24, 2013 1:20 PM To: OpenSIPS users mailling list Cc: M.Khaled W Chehab Subject: Re: [OpenSIPS-Users] Carrier route Failover Hello Khaled, The fallback between rules (like from 1578 to 157) is controlled (can be enabled / disabled) via the F flag . See: http://www.opensips.org/html/docs/modules/1.9.x/drouting.html#id293614 Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 05/23/2013 07:31 PM, M.Khaled W Chehab wrote: Hi, I am using opensips 1.8.3, In the do_routing($cusid,FW) I allow fail over and weight, Moreover I create a two dial rules with same priority and prefix 1578,157 and assign to 1578 gwlist #USA that includes gw1 and gw2 to it for dial rule 157 I assign gwlist gw3 The dialed number is: 15782626262 As I allow fail over so, if the call didn't succeed in connecting through #USA (dial rule prefix 1578) it will jump to the shortest match rule that has a dial rule prefix 157 and go to gw3 Since I am in need to have both scenarios (failover and denting failover) , My question is :how can I set a flag or anything can do after rule prefix 1578 to allow or disallow the failing over I try to add an attribute flag (1 is blocked ,0 allow fail over) on dr_rules and get it before use_next_gw() ,but in this case only the call will go to gw1 $dlg_val(routeblock)=$avp(rule_attrs); if($dlg_val(routeblock)==1) { xlog(L_INFO, --Route 6---StickCheck--avp : $avp(rule_attrs)---$dlg_val(\routeblock\)\n); exit; } Please advice Regards ___ 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] Carrier route Failover
Then, could you rephrase your question ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 05/24/2013 02:55 PM, M.Khaled W Chehab wrote: Hello Bogdan, Thanks for replying , I know this and in mention that below ,if you can read it again I will be apprriciated Regards *From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org] *Sent:* Friday, May 24, 2013 1:20 PM *To:* OpenSIPS users mailling list *Cc:* M.Khaled W Chehab *Subject:* Re: [OpenSIPS-Users] Carrier route Failover Hello Khaled, The fallback between rules (like from 1578 to 157) is controlled (can be enabled / disabled) via the F flag . See: http://www.opensips.org/html/docs/modules/1.9.x/drouting.html#id293614 Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 05/23/2013 07:31 PM, M.Khaled W Chehab wrote: Hi, I am using opensips 1.8.3, In the do_routing($cusid,FW) I allow fail over and weight, Moreover I create a two dial rules with same priority and prefix 1578,157 and assign to 1578 gwlist #USA that includes gw1 and gw2 to it for dial rule 157 I assign gwlist gw3 The dialed number is: 15782626262 As I allow fail over so, if the call didn't succeed in connecting through #USA (dial rule prefix 1578) it will jump to the shortest match rule that has a dial rule prefix 157 and go to gw3 Since I am in need to have both scenarios (failover and denting failover) , *_My question is :_*how can I set a flag or anything can do after rule prefix 1578 to allow or disallow the failing over I try to add an attribute flag (1 is blocked ,0 allow fail over) on dr_rules and get it before use_next_gw() ,but in this case only the call will go to gw1 $dlg_val(routeblock)=$avp(rule_attrs); if($dlg_val(routeblock)==1) { xlog(L_INFO, --Route 6---StickCheck--avp : $avp(rule_attrs)---$dlg_val(\routeblock\)\n); exit; } Please advice Regards ___ 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
[OpenSIPS-Users] Carrier route Failover
Hi, I am using opensips 1.8.3, In the do_routing($cusid,FW) I allow fail over and weight, Moreover I create a two dial rules with same priority and prefix 1578,157 and assign to 1578 gwlist #USA that includes gw1 and gw2 to it for dial rule 157 I assign gwlist gw3 The dialed number is: 15782626262 As I allow fail over so, if the call didn't succeed in connecting through #USA (dial rule prefix 1578) it will jump to the shortest match rule that has a dial rule prefix 157 and go to gw3 Since I am in need to have both scenarios (failover and denting failover) , My question is :how can I set a flag or anything can do after rule prefix 1578 to allow or disallow the failing over I try to add an attribute flag (1 is blocked ,0 allow fail over) on dr_rules and get it before use_next_gw() ,but in this case only the call will go to gw1 $dlg_val(routeblock)=$avp(rule_attrs); if($dlg_val(routeblock)==1) { xlog(L_INFO, --Route 6---StickCheck--avp : $avp(rule_attrs)---$dlg_val(\routeblock\)\n); exit; } Please advice Regards ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users