Re: [OpenSIPS-Users] DROUTING module flag changes

2021-10-04 Thread Liviu Chircu
On 04.10.2021 16:35, Ben Newlin wrote: What’s done is done in this case, but something to think about for future breaking changes, especially relating to the DB. Hi Ben, I totally agree with you on this one -- the shifting of the carrier flags in the /drouting/ module was *completely*

Re: [OpenSIPS-Users] DROUTING module flag changes

2021-10-04 Thread Ben Newlin
: [OpenSIPS-Users] DROUTING module flag changes Liviu, Thank you, I do see it there. So it is confirmed the flags have shifted. It appears the module documentation is still in need of some updates to reflect this change for carriers. Ben Newlin From: Liviu Chircu Date: Friday, October 1, 2021

Re: [OpenSIPS-Users] DROUTING module flag changes

2021-10-01 Thread Ben Newlin
, Ben Newlin Subject: Re: [OpenSIPS-Users] DROUTING module flag changes On 01.10.2021 21:34, Ben Newlin wrote: Can anyone clarify the expected behavior here? Were the values for the flags column changed as part of removing the weight flag? Hey Ben, I believe you're referring to a change from 3.1

Re: [OpenSIPS-Users] DROUTING module flag changes

2021-10-01 Thread Liviu Chircu
On 01.10.2021 21:34, Ben Newlin wrote: Can anyone clarify the expected behavior here? Were the values for the flags column changed as part of removing the weight flag? Hey Ben, I believe you're referring to a change from 3.1, where the carrier "W" flag was removed & all other flags were

[OpenSIPS-Users] DROUTING module flag changes

2021-10-01 Thread Ben Newlin
Hello, I need some clarification on the new “sort_alg” columns added to the DROUTING module tables in 3.x. The column was added to the DrRules table, and the documentation has been updated to reflect that the “W” flag passed to do_routing is now deprecated and has been replaced by the value

Re: [OpenSIPS-Users] drouting module in opensips 2.4

2018-08-08 Thread Bogdan-Andrei Iancu
Hi Kirill, Starting with 2.4 there is a change in how the initial load is done by drouting (and other modules). If previously the the initial load was part of the module init sequence (and delaying the whole opensips init with this load), now the load is done after the init sequence, so

[OpenSIPS-Users] drouting module in opensips 2.4

2018-07-06 Thread Kirill Galinurov
Hi all I migrate from 2.3 to in 2.4 on Centos 7.4. OpenSIPS 2.3 starts without going to background, while drouting module fetches all rules from DB into memory. OpenSIPS 2.4 goes to background immediately, and fetches rules only after that. If you try opensipsctl fifo dr_number_routing mts 0

Re: [OpenSIPS-Users] drouting module -- How to use registered gatewayas outbound gateway

2017-12-16 Thread Jeffrey Zhao
opensips.org>; "Jeffrey Zhao"<chunyong.z...@qq.com>; Subject: Re: [OpenSIPS-Users] drouting module -- How to use registered gatewayas outbound gateway You could also put the AoR that the gateways will use to register as an attribute on the rule/carrier/gateway in D

Re: [OpenSIPS-Users] drouting module -- How to use registered gateway as outbound gateway

2017-12-15 Thread Ben Newlin
oun...@lists.opensips.org> on behalf of Bogdan-Andrei Iancu <bog...@opensips.org> Reply-To: OpenSIPS users mailling list <users@lists.opensips.org> Date: Friday, December 15, 2017 at 11:35 AM To: OpenSIPS users mailling list <users@lists.opensips.org>, Jeffrey Zhao <chunyong.z...@qq.com>

Re: [OpenSIPS-Users] drouting module -- How to use registered gateway as outbound gateway

2017-12-15 Thread Bogdan-Andrei Iancu
Hi Jeffrey, To do something like that, you need to have in DR (as gateway) the AOR used by the GW to register with. And after you do do_routing() you do lookup(location). Now the tricky part is to link them, as Drouting is IP/domain driven while user location is AOR driven. So, in DR use

[OpenSIPS-Users] drouting module -- How to use registered gateway as outbound gateway

2017-12-14 Thread Jeffrey Zhao
Dear all We are using drouting module for dialplan routing, for NAT issues, we need to register outbound voice gateway to opensips, instead of fixed static IP. Is there any way to use registered gateway as routing destination? Thanks. ___ Users

Re: [OpenSIPS-Users] DROUTING module changing Carrier IDs

2015-03-26 Thread Bogdan-Andrei Iancu
Hi Ben, If you run the dr_carrier_status MI command, do you see the same #012 in the ID of the carrier ? #012 is '\n' - are you sure you do not have it by mistake in DB ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 25.03.2015 21:53,

Re: [OpenSIPS-Users] DROUTING module changing Carrier IDs

2015-03-26 Thread Bogdan-Andrei Iancu
in the right direction. Ben Newlin *From:*users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Newlin, Ben *Sent:* Thursday, March 26, 2015 10:54 AM *To:* Bogdan-Andrei Iancu; OpenSIPS users mailling list *Subject:* Re: [OpenSIPS-Users] DROUTING module changing

Re: [OpenSIPS-Users] DROUTING module changing Carrier IDs

2015-03-26 Thread Newlin, Ben
-Andrei Iancu [mailto:bog...@opensips.org] Sent: Thursday, March 26, 2015 10:02 AM To: OpenSIPS users mailling list; Newlin, Ben Subject: Re: [OpenSIPS-Users] DROUTING module changing Carrier IDs Hi Ben, If you run the dr_carrier_status MI command, do you see the same #012 in the ID of the carrier

Re: [OpenSIPS-Users] DROUTING module changing Carrier IDs

2015-03-26 Thread Newlin, Ben
, 2015 10:54 AM To: Bogdan-Andrei Iancu; OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] DROUTING module changing Carrier IDs Bogdan, It did occur to me that the code seemed to be the octal for newline, but I don't know what the significance of that could be. The MI command output

[OpenSIPS-Users] DROUTING module changing Carrier IDs

2015-03-25 Thread Newlin, Ben
I am using OpenSIPS 1.11 and I am recently getting some weird behavior from the DROUTING module. The module is corrupting the Carrier ID that is being returned via AVP. This behavior is occurring only with the Carrier ID, not the gateway or rule IDs, and only when it is returned from the

[OpenSIPS-Users] drouting module

2012-10-03 Thread Engineer voip
Hello All, I use drouting module to routing calls, it's work good but when i have a Gateway HS the opensips sends the calls to this Gateway four times before to send it to another Gateway like that: *INVITE sip:10800806@x.x.x.x;user=phone, with session description INVITE

Re: [OpenSIPS-Users] drouting module

2012-10-03 Thread Binan AL Halabi
...@lists.opensips.org Sent: Wednesday, October 3, 2012 12:02 PM Subject: [OpenSIPS-Users] drouting module Hello All, I use drouting module to routing calls, it's work good but when i have a Gateway HS the opensips sends the calls to this Gateway  four times before to send it to another Gateway like

Re: [OpenSIPS-Users] drouting module

2012-10-03 Thread Engineer voip
*To:* OpenSIPS users mailling list users@lists.opensips.org; users-request users-requ...@lists.opensips.org *Sent:* Wednesday, October 3, 2012 12:02 PM *Subject:* [OpenSIPS-Users] drouting module Hello All, I use drouting module to routing calls, it's work good but when i have a Gateway HS the opensips

Re: [OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-31 Thread thrillerbee
bump. On Tue, Mar 29, 2011 at 11:27 AM, thrillerbee thriller...@gmail.com wrote: Hopefully my last question: Using append_branch() and $branch allows me to add all destinations as branches with q-values. However, I am unable to remove/edit the initial entry in $ds as set by do_routing():

Re: [OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-31 Thread thrillerbee
I was able to manipulate $ru as set by do_routing() to get the behavior I'm looking for. It's not very clean, but it's functional. On Thu, Mar 31, 2011 at 9:00 AM, thrillerbee thriller...@gmail.com wrote: bump. On Tue, Mar 29, 2011 at 11:27 AM, thrillerbee thriller...@gmail.comwrote:

Re: [OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-29 Thread Anca Vamanu
Hi thrillerbe, I think that if you only want to build the list of selected destinations, you can just call use_next_gw and add the uri in RURI to a destination string ( because use_next_gw sets the RURI to the destination-

Re: [OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-29 Thread Bogdan-Andrei Iancu
Hi, Another tricks: 1) you can read the pending destinations directly from AVPs, without calling the use_next_gw() function. See: http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id293166 2) as append_branch() does not accept variables as params, use the $branch variable to

Re: [OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-29 Thread thrillerbee
Bogdan, When I configure: $(branch(uri)[0]) = $ru; $(branch(q)[0]) = 100; xlog(L_INFO,branch 0 = $(branch(uri)[0]) with q-value $(branch(q)[0])\n); I get this debug: ERROR:core:pv_set_branch_fields: SCRIPT BUG - inexisting branch assigment [0/0] ERROR:core:do_assign: setting PV failed

Re: [OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-29 Thread thrillerbee
Hopefully my last question: Using append_branch() and $branch allows me to add all destinations as branches with q-values. However, I am unable to remove/edit the initial entry in $ds as set by do_routing(): Contact: *sip:15552345678@1.1.1.1, *sip:15552345678@1.1.1.1;q=1,

[OpenSIPS-Users] drouting module with append_branch() and q-values

2011-03-28 Thread thrillerbee
I'm trying to get OpenSIPS to act as a REDIRECT server and have run into a couple issues. I'm using the drouting module to do lookups. Essentially, a dialed number could have potentially several routes, I want to return a 300 with these routes in the Contact header. Please tell me if this is

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-20 Thread Anton Zagorskiy
...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Friday, December 17, 2010 9:12 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b Hi Anton, Could you sent me a dump for the dr related DB tables? Regards, Bogdan Anton Zagorskiy wrote: I've

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-20 Thread Bogdan-Andrei Iancu
- boun...@lists.opensips.org] On Behalf Of Anton Zagorskiy Sent: Thursday, December 16, 2010 11:54 AM To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b Hi! What about investigation my crash? Should I send any additional information? -Original

Re: [OpenSIPS-Users] Drouting module parameters not found

2010-12-20 Thread Bogdan-Andrei Iancu
Ronald, use the SVN check out for 1.6 branch - http://www.opensips.org/Resources/Downloads#svn Regards, Bogdan Ronald Cepres wrote: Not actually from SVN but from the website. Here is the actual download link: http://opensips.org/pub/opensips/latest/src/opensips-1.6.3-tls_src.tar.gz

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-20 Thread Anton Zagorskiy
www.oyster-telecom.ru -Original Message- From: users-boun...@lists.opensips.org [mailto:users- boun...@lists.opensips.org] On Behalf Of Anton Zagorskiy Sent: Thursday, December 16, 2010 11:54 AM To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] drouting module

Re: [OpenSIPS-Users] Drouting module parameters not found

2010-12-20 Thread Ronald Cepres
Thanks Bogdan! Regards, Ronald On Mon, Dec 20, 2010 at 10:48 PM, Bogdan-Andrei Iancu bog...@voice-system.ro wrote: Ronald, use the SVN check out for 1.6 branch - http://www.opensips.org/Resources/Downloads#svn Regards, Bogdan Ronald Cepres wrote: Not actually from SVN but from the

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-17 Thread Bogdan-Andrei Iancu
, December 16, 2010 11:54 AM To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b Hi! What about investigation my crash? Should I send any additional information? -Original Message- From: users-boun...@lists.opensips.org [mailto:users- boun

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-16 Thread Anton Zagorskiy
list' Subject: Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b Yes, openSIPS crashed because of there are INFO:core:sig_usr: signal 15 received messages in a log file. I've tested on new VM with CentOS 5.5 with sources from svn stable release Please see bt and bt full results

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-16 Thread Anton Zagorskiy
-telecom.ru www.oyster-telecom.ru -Original Message- From: users-boun...@lists.opensips.org [mailto:users- boun...@lists.opensips.org] On Behalf Of Anton Zagorskiy Sent: Thursday, December 16, 2010 11:54 AM To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] drouting module

[OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-14 Thread Anton Zagorskiy
Hi! I'm trying to use drouting module, but something says to me that I using it wrong because openSIPS goes to crash. I've inserted following values in the DB: 1. dr_gateways: gwid(2) type(1) address(192.168.0.10) strip(0) pri_prefix(1000) attrs() probe_mode(0) description(Gateway1) 2.

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-14 Thread Bogdan-Andrei Iancu
Hi Anton, Why do you say it crashes ? do you have a corefile ? your logs do not show any t_relay() after do_routing()could you post the relevant snip of your cfg? Regards, Bogdan Anton Zagorskiy wrote: Hi! I'm trying to use drouting module, but something says to me that I using it

Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b

2010-12-14 Thread Anton Zagorskiy
] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, December 14, 2010 4:25 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] drouting module 1.6.3 with b2b Hi Anton, Why do you say it crashes ? do you have a corefile ? your logs do not show any t_relay() after do_routing

Re: [OpenSIPS-Users] Drouting module parameters not found

2010-12-13 Thread Bogdan-Andrei Iancu
Hi Ronald, Are you sure you have the latest 1.6.3 sources from SVN ? Regards, Bogdan Ronald Cepres wrote: Hi to all, I have a problem about the drouting module. Here is a snippet of my script configuration: ... loadmodule drouting.so modparam(drouting, db_url,

Re: [OpenSIPS-Users] Drouting module parameters not found

2010-12-13 Thread Ronald Cepres
Not actually from SVN but from the website. Here is the actual download link: http://opensips.org/pub/opensips/latest/src/opensips-1.6.3-tls_src.tar.gz Btw, I have also tried recompiling the source code successfully. However, the previously mentioned errors when running OpenSIPS itself remains

[OpenSIPS-Users] Drouting module parameters not found

2010-12-12 Thread Ronald Cepres
Hi to all, I have a problem about the drouting module. Here is a snippet of my script configuration: ... loadmodule drouting.so modparam(drouting, db_url, mysql://user:p...@localhost/opensips) modparam(drouting, gw_id_avp, $avp(s:gw_id)) modparam(drouting, rule_id_avp, $avp(s:rule_id)) ...

[OpenSIPS-Users] drouting module

2010-12-10 Thread Anton Zagorskiy
Hello. It seems that when I call do_route() the route[1] was automatically called.. As I understand I should manually call relay functions after do_routing(). Any ideas why that is happening? :) WBR, Anton Zagorskiy VoIP Developer, Oyster Telecom Phone.: +7 812 601-0666 Fax: +7 812

Re: [OpenSIPS-Users] drouting module

2010-12-10 Thread Anca Vamanu
On 12/10/2010 01:47 PM, Anton Zagorskiy wrote: Hello. It seems that when I call do_route() the route[1] was automatically called.. As I understand I should manually call relay functions after do_routing(). Have you set the routeid field in in the dr_rules table record to 1 :) ? If you set

Re: [OpenSIPS-Users] drouting module

2010-12-10 Thread a.zagorskiy
Yes, you were right! Thank you. But now openSIPS goes to crash... [6176]: *** route[invite]: call do_routing() [6176]: DBG:core:db_new_result: allocate 28 bytes for result set at 0x81db470 [6176]: DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the query [6176]:

Re: [OpenSIPS-Users] drouting module

2010-12-10 Thread Anca Vamanu
Hi, Please investigate the crash. First you have to get a core. Do: ulimit -c unlimited and when starting opensips also use a -w path argument ( to set the working directory). Then after you get a core ( you will see the message core was generated ) investigate the core with gdb, run 'gdb

Re: [OpenSIPS-Users] DROUTING module

2010-11-25 Thread Bogdan-Andrei Iancu
Hello Denis, The dr_rules table (in 1.6.3 only) has an attrs column for that. See : http://opensips.svn.sourceforge.net/viewvc/opensips/branches/1.6/scripts/mysql/drouting-create.sql?revision=7136view=markup Regards, Bogdan Denis Putyato wrote: Hello! Please tell me where in dr_rules

[OpenSIPS-Users] DROUTING module

2010-11-16 Thread Denis Putyato
Hello! Please tell me where in dr_rules table rule_attrs_avp (str) of DROUTING module store? http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id294102 Thank you. ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] drouting module

2009-08-31 Thread Bogdan-Andrei Iancu
...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Wednesday, August 26, 2009 1:02 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] drouting module Hi Sebastian, Sebastian Sastre wrote: Hi, When applying the do_routing function

Re: [OpenSIPS-Users] drouting module

2009-08-27 Thread Sebastian Sastre
...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Wednesday, August 26, 2009 1:02 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] drouting module Hi Sebastian, Sebastian Sastre wrote: Hi, When applying the do_routing function

Re: [OpenSIPS-Users] drouting module

2009-08-26 Thread Sebastian Sastre
Subject: Re: [OpenSIPS-Users] drouting module stop asking so much! ;) D El 25/08/2009, a las 18:05, Sebastian Sastre sebast...@next-ip.com escribió: Hi, When applying the do_routing function without specifying the group id, what are the matching patterns that it will look

Re: [OpenSIPS-Users] drouting module

2009-08-26 Thread Bogdan-Andrei Iancu
Hi Sebastian, Sebastian Sastre wrote: Hi, When applying the do_routing function without specifying the group id, what are the matching patterns that it will look for? As documented, if no group id is given to the function, it will try to discover the group Id by looking in the

[OpenSIPS-Users] drouting module

2009-08-25 Thread Sebastian Sastre
Hi, When applying the do_routing function without specifying the group id, what are the matching patterns that it will look for? In other words If I want ALL the users behind domain test.com how would I do it? Leaving the username field empty and putting test.com in the domain did

Re: [OpenSIPS-Users] drouting module

2009-08-25 Thread David Villasmil
stop asking so much! ;) D El 25/08/2009, a las 18:05, Sebastian Sastre sebast...@next-ip.com escribió: Hi, When applying the do_routing function without specifying the group id, what are the matching patterns that it will look for? In other words If I want ALL the users behind

Re: [OpenSIPS-Users] DRouting Module and LCR Module

2009-05-09 Thread Bogdan-Andrei Iancu
Hi Mauro, You should consider the dialplan module for this - you can pass as input the RURI ($ru), match the domain part of it via a regexp and do a subst to replace the domain with the IP of the SBC. See: http://www.opensips.org/html/docs/modules/1.5.x/dialplan.html#id227206 Regards, Bogdan

[OpenSIPS-Users] DRouting Module and LCR Module

2009-05-04 Thread Mauro Davi'
Hi All, I need to route a call based on domain name. For example I need to route a call to a SBC if the domain is equal to 'domain.es'. The DRouting module and the LCR module can route a call based on username's rules. There is a way to route a call on a rule based on the domain part

Re: [OpenSIPS-Users] DRouting Module and LCR Module

2009-05-04 Thread Iñaki Baz Castillo
2009/5/4 Mauro Davi' mauro.d...@acotel.com: The DRouting module and the LCR module can route a call based on username’s rules. There is a way to route a call on a rule based on the domain part of the RURI?? Please, read the full description of load_gws([pvar]) in OpenSIPS:

Re: [OpenSIPS-Users] drouting module - dr_gateways table attrs field

2009-01-23 Thread Bogdan-Andrei Iancu
Hi Ibrahim, Thanks for report - fixed on the SVN (again, typo issues :( ) - please update and give another try. Regards, Bogdan ibrahim tunali wrote: Hi Bogdan, I tried now and opensips started without the problem. But i did not get the value after calling do_routing(). I see NULL value

Re: [OpenSIPS-Users] drouting module - dr_gateways table attrs field

2009-01-23 Thread Brett Nemeroff
I'm using an older version in production of openser with the LCR module and I've tried using $rd to account where the call went. I get a lot of problems doing this because of things like RE-INVITES and such. It's been a real headache. It doesn't seem to be consistently accurate. I can't reproduce

Re: [OpenSIPS-Users] drouting module - dr_gateways table attrs field

2009-01-22 Thread Bogdan-Andrei Iancu
Hi Ibrahim, have you set the attr avp? Something like: modparam(drouting, attrs_avp, '$avp(s:dr_attrs)') Then after do_routing() or use_next_gw(), do : xlog(-gw attr is $avp(s:dr_attrs)\n); the value of the attr is whatever you want - the module does not interpret it - it is just

Re: [OpenSIPS-Users] drouting module - dr_gateways table attrs field

2009-01-22 Thread ibrahim tunali
Hi Bogdan, I tried now and opensips started without the problem. But i did not get the value after calling do_routing(). I see NULL value on output of xlog; PSTN Termination RURI:9XX USER:XXX DOMAIN:sip.x.com CARRIER:null if(!do_routing()){ xlog(L_WARN,No