Re: [OpenSIPS-Users] Dialplan

2023-12-05 Thread Prathibha B
Thanks, I'll check it out. On Tue, 5 Dec 2023 at 16:29, Bogdan-Andrei Iancu wrote: > Then take a look at the call_center module: > https://opensips.org/html/docs/modules/3.4.x/call_center.html > > Regards > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer >

Re: [OpenSIPS-Users] Dialplan

2023-12-05 Thread Bogdan-Andrei Iancu
Then take a look at the call_center module: https://opensips.org/html/docs/modules/3.4.x/call_center.html Regards Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 05.12.2023 12:49, Prathibha B wrote: Yes, you are right. On

Re: [OpenSIPS-Users] Dialplan

2023-12-05 Thread Prathibha B
Yes, you are right. On Tue, 5 Dec 2023 at 15:04, Bogdan-Andrei Iancu wrote: > What do you mean by "free call taker in the group" ? something like in > call centers? > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > https://www.opensips-solutions.com > https://www.siphub.com > >

Re: [OpenSIPS-Users] Dialplan

2023-12-05 Thread Bogdan-Andrei Iancu
What do you mean by "free call taker in the group" ? something like in call centers? Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 04.12.2023 14:30, Prathibha B wrote: How to identify a free call taker in the group? On

Re: [OpenSIPS-Users] Dialplan

2023-12-04 Thread Prathibha B
How to identify a free call taker in the group? On Mon, 4 Dec 2023 at 17:57, Prathibha B wrote: > How to write dialplan to route the calls coming to 112, to one of the free > call takers? > > -- > Regards, > B.Prathibha > -- Regards, B.Prathibha

[OpenSIPS-Users] Dialplan

2023-12-04 Thread Prathibha B
How to write dialplan to route the calls coming to 112, to one of the free call takers? -- Regards, B.Prathibha ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Dialplan/Routing

2022-10-10 Thread Bogdan-Andrei Iancu
Hi Nitesh, The "420 Bad Extension" is generated by the residential cfg when the lookup on the caller fails (the caller party is not found as registered in OpenSIPS). Now, I assume you are dialing kind of DID (to be routed to PSTN), so it should NOT hit the lookup (which is when calling to

[OpenSIPS-Users] Dialplan/Routing

2022-09-27 Thread Nitesh Divecha
Hello All, I'm a newbie with Opensips! Got good knowledge with Asterisk and SIP in general. Trying to figure out how to route calls out on the SIP trunk. Running following: "Server": "OpenSIPS (3.3.1 (x86_64/linux))" OpenSIPS Control Panel 9.3.2 Debian 11 Opensips is configured with

Re: [OpenSIPS-Users] dialplan out_var

2022-08-30 Thread Антон Ершов
Yes. exactly I apologize for my stupidity вт, 30 авг. 2022 г. в 17:12, Stas Kobzar : > Hi, > $fn is from name and name maybe quoted in the header value. > Try to use $fU to have username part (actual number) > > On Tue, Aug 30, 2022 at 9:00 AM Bogdan-Andrei Iancu > wrote: > >> Again, >> >> your

Re: [OpenSIPS-Users] dialplan out_var

2022-08-30 Thread Stas Kobzar
Hi, $fn is from name and name maybe quoted in the header value. Try to use $fU to have username part (actual number) On Tue, Aug 30, 2022 at 9:00 AM Bogdan-Andrei Iancu wrote: > Again, > > your DP rule is performing NO change over the input. The whole input, as > received, it provided as

Re: [OpenSIPS-Users] dialplan out_var

2022-08-30 Thread Bogdan-Andrei Iancu
Again, your DP rule is performing NO change over the input. The whole input, as received, it provided as output. And the quotes you see in the output value are part of the input value. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS

Re: [OpenSIPS-Users] dialplan out_var

2022-08-30 Thread Антон Ершов
that's the point. there are no conversions, but quotes appear вт, 30 авг. 2022 г. в 09:26, Bogdan-Andrei Iancu : > Your DP rule is doing nothing, as transformation - it is matching > everything and returning it as output..so not sure what are your > expectations here. > > Regards, > >

Re: [OpenSIPS-Users] dialplan out_var

2022-08-30 Thread Bogdan-Andrei Iancu
Your DP rule is doing nothing, as transformation - it is matching everything and returning it as output..so not sure what are your expectations here. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 27-30 Sept 2022, Athens

Re: [OpenSIPS-Users] dialplan out_var

2022-08-29 Thread Антон Ершов
maybe it is so. but where can you go wrong with this simple rule "id" "dpid" "pr" "match_op" "match_exp" "match_flags" "subst_exp" "repl_exp" "timerec" "disabled" "attrs" 1 0 0 1 ".*" 0 "^(.*)$" "\1" 0 "test" /usr/sbin/opensips[30317]: DBG:dialplan:dp_translate_f: dpid is 0 partition is default

Re: [OpenSIPS-Users] dialplan out_var

2022-08-29 Thread Bogdan-Andrei Iancu
Hi, No quotes are added by the dialplan module at all. I think out value inherited the quotes from the input value, the From Display Name, which may be a quoted value. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 27-30

[OpenSIPS-Users] dialplan out_var

2022-08-29 Thread Антон Ершов
Hello friends! In version: opensips 3.2.8 (x86_64/linux) I observe strange behavior of the dialplan module. the value returned to the $var(out) variable is wrapped in quotes. In version 3.2.5 no such behavior was observed. this forces you to do additional work with the result obtained in order to

Re: [OpenSIPS-Users] dialplan module - ensuring a substring exists in URI

2021-04-21 Thread Kingsley Tart
Hi, Thanks but I tried that and whatever I tried I could not get it to work. I don't know whether I have misunderstood what you meant? With this setup: +--++--++-+-+-+ | dpid | pr | match_op | match_exp | match_flags |

Re: [OpenSIPS-Users] dialplan module - ensuring a substring exists in URI

2021-04-21 Thread Bogdan-Andrei Iancu
Hi Kingsley, You could try with a single rule, like optional matching the param (like "(;user=phone)?") and in subst + repl part do not include the param inside the \1 parenthesis, having it added all the time in the repl part. Still you need a more complex matching if you have multiple

Re: [OpenSIPS-Users] dialplan module - dpid - could it be a string?

2021-04-21 Thread Kingsley Tart
ased > > dialplan IDs for use in the script, just like this. > > > > [1] > > https://github.com/OpenSIPS/opensips/issues/new?assignees===feature_request.md=%5BFEATURE%5D > > > > Ben Newlin > > > > From: Users on behalf of > > Kingsley Tart > > Date

Re: [OpenSIPS-Users] dialplan module - dpid - could it be a string?

2021-04-21 Thread Bogdan-Andrei Iancu
/OpenSIPS/opensips/issues/new?assignees===feature_request.md=%5BFEATURE%5D Ben Newlin *From: *Users on behalf of Kingsley Tart *Date: *Tuesday, April 20, 2021 at 12:22 PM *To: *OpenSIPS users mailling list *Subject: *[OpenSIPS-Users] dialplan module - dpid - could it be a string? I love

Re: [OpenSIPS-Users] dialplan module - dpid - could it be a string?

2021-04-20 Thread Ben Newlin
Tart Date: Tuesday, April 20, 2021 at 12:22 PM To: OpenSIPS users mailling list Subject: [OpenSIPS-Users] dialplan module - dpid - could it be a string? I love the dialplan module and how the rules can be reloaded from a DB. However, is there any reason why the dpid can't be a string instead

[OpenSIPS-Users] dialplan module - ensuring a substring exists in URI

2021-04-20 Thread Kingsley Tart
Hi, I want a DP ruleset to ensure that ";user=phone" is in the SIP URI, ie if it is not there, add it, but if it is already there, do nothing. I've managed to do this with two lines, but is there a more efficient way? This is what I have in the dialplan table in this ruleset?

[OpenSIPS-Users] dialplan module - dpid - could it be a string?

2021-04-20 Thread Kingsley Tart
I love the dialplan module and how the rules can be reloaded from a DB. However, is there any reason why the dpid can't be a string instead of an integer? (ie the value that's stored in the dialplan.dpid field). I think it would be handy to be able to apply names to dialplan rulesets as it would

Re: [OpenSIPS-Users] Dialplan regex help

2020-01-23 Thread Sharad Kumar via Users
Thank you guys. It's working now. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Dialplan regex help

2020-01-22 Thread Tomi Hakkarainen
Hi, The replacement should be \1 not \2. At least in my tests on https://regexr.com with \2 the result is 9729 and with \1 its 972123456789 Matching Regular Expression - ^0[0-9]{8}$ Substitution Regular Expression: ^(0)([0-9]{8})$ Replacement Expression:

Re: [OpenSIPS-Users] Dialplan regex help

2020-01-22 Thread Liviu Chircu
Hi Sharad, Your solution seems correct to me, and should be working. The only possible improvement I see, purely cosmetical: * match_exp: ^0[0-9]{8}$ * subst_exp: ^0([0-9]{8})$ * repl: 972\1 Does your current rule not work for you, or are you just asking for confirmation? Best regards,

[OpenSIPS-Users] Dialplan regex help

2020-01-22 Thread Sharad Kumar via Users
Hey guys, I need your little help in regex, I have a regex that search the 9 Digits DID and append 972 as a prefix. So for example - DID - 012345678 After regex - 9720123456789 But now I want to remove the first 0 by regex so that I should get the output like this - 97212345678 These are my

Re: [OpenSIPS-Users] Dialplan Help

2019-10-04 Thread Fabian Gast
If you just want to remove the "+" at the beginning, you can use something like $avp(normalized) = $(avp(number){re.subst,/^\+//}); Fabian > > On Thu, 3 Oct 2019 at 11:35, Mark Farmer < [ mailto:farm...@gmail.com | > farm...@gmail.com ] > wrote: > > > > Hi everyone > I'm having a problem

Re: [OpenSIPS-Users] Dialplan Help

2019-10-03 Thread Mark Farmer
Never mind, seems setting matching operator to regex is the wrong thing to do. Sorry! On Thu, 3 Oct 2019 at 11:35, Mark Farmer wrote: > Hi everyone > > I'm having a problem with my rule not matching, I'm trying to remove the + > at the beginning of the input DID using a regex rule: > >

[OpenSIPS-Users] Dialplan Help

2019-10-03 Thread Mark Farmer
Hi everyone I'm having a problem with my rule not matching, I'm trying to remove the + at the beginning of the input DID using a regex rule: Matching exp: ^\+(44[1-9][0-9]+$) Substitution exp: ^\+(.*)$ Replacement exp: \1 But dp_translate() never matches. mi dp_translate input=+441205875104

Re: [OpenSIPS-Users] dialplan module

2016-04-01 Thread Francjos
I read the tutorial but it seems not to be approrpiate to my environnement. In the enterprise where i do my training, they wish to put in palce two Opensips servers and two Freeswitch servers. The Opensips serves must register to their sip provider via a sip trunk (the registration is already

Re: [OpenSIPS-Users] dialplan module

2016-03-31 Thread Johan De Clercq
There is a nice tutorial on this on the opensips website. 2016-03-31 15:18 GMT+02:00 Francjos <35...@heb.be>: > Please, which configurations do i have to make in Opensips and FreeSwitch > servers in order calls from clients that come through my provider (OVH) to > land in FreeSwitch server via

Re: [OpenSIPS-Users] dialplan module

2016-03-31 Thread Bogdan-Andrei Iancu
Hi, Then you have to install also the opensips-dialplan package from the same repo. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 31.03.2016 12:03, Francjos wrote: I do not install opensips from source, i've done a deposit from opensips

Re: [OpenSIPS-Users] dialplan module

2016-03-31 Thread Francjos
I do not install opensips from source, i've done a deposit from opensips repository to /etc/apt/sources.list. So i dont see how i can recompile via "make menuconfig" because there is no Makefile. -- View this message in context:

Re: [OpenSIPS-Users] dialplan module

2016-03-31 Thread Nagorny, Dimitry
users-boun...@lists.opensips.org [mailto:users- /*boun...@lists.opensips.org] Im Auftrag von Francjos /*Gesendet: Donnerstag, 31. März 2016 10:26 /*An: users@lists.opensips.org /*Betreff: [OpenSIPS-Users] dialplan module /* /*Hello, /* /*I'm using Opensips 2.1.2 but the dialplan module is not present in the /*director

[OpenSIPS-Users] dialplan module

2016-03-31 Thread Francjos
Hello, I'm using Opensips 2.1.2 but the dialplan module is not present in the directory /usr/lib/opensips/modules. Because of this, the module can't be loaded. Is there a way to include the module? Thanks -- View this message in context:

Re: [OpenSIPS-Users] Dialplan module is not connecting to Database

2016-03-23 Thread Richard Robson
OK, I was passing the MI command via the CP interface and getting the errors there it is working via the console [root@gl-sip-01 ~]# opensipsctl fifo dp_translate greenlight:11 01382843843 Output:: 441382843843 ATTRIBUTES:: [root@gl-sip-01 ~]# opensipsctl fifo dp_translate 11 01382843843

Re: [OpenSIPS-Users] Dialplan module is not connecting to Database

2016-03-23 Thread Bogdan-Andrei Iancu
Hi Richard, So, at the end , what is the full correct syntax for calling the dp_translate via fifo ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 23.03.2016 13:37, Richard Robson wrote: Hi Guys, I've got this working now. Here's a

Re: [OpenSIPS-Users] Dialplan module is not connecting to Database

2016-03-23 Thread Richard Robson
Hi Guys, I've got this working now. Here's a couple of things I've found. You appear to need partitions, despite the documentation to the contrary. The MI command dp_translate does not accept the partition:dpid as a valid input it seems to want just the dpid the New book has " in its examples.

[OpenSIPS-Users] Dialplan module is not connecting to Database

2016-03-22 Thread Richard Robson
Hi, I'm trying to use the dialplan module, but every time I get a "400 Wrong db connection para" the connection is the same for all other modules, which are working fine and I can connect via opensipsCP, mysql and phpmyadmin. I'm using version 2.1 Mar 22 12:22:13 gl-sip-01 opensips:

Re: [OpenSIPS-Users] Dialplan error: fail to build rule

2015-10-01 Thread Bogdan-Andrei Iancu
Hi Sasmita, Can you extract a backtrace from the core file ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01.10.2015 09:39, Sasmita Panda wrote: Hi , I have tried to make assign that to empty string . Now my dialplan collection looks like

Re: [OpenSIPS-Users] Dialplan error: fail to build rule

2015-10-01 Thread Bogdan-Andrei Iancu
Hi Sasmita, Please check this page: http://www.opensips.org/Documentation/TroubleShooting-Crash Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01.10.2015 15:57, Sasmita Panda wrote: What should I do for that ? Will i increase the debug

Re: [OpenSIPS-Users] Dialplan error: fail to build rule

2015-09-30 Thread Bogdan-Andrei Iancu
Hi Sasmita, It complains about the "subst_exp" field, which cannot be NULL at all - used or not, cannot be NULL. If you do not need it , set it to empty string. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 30.09.2015 15:48, Sasmita Panda

[OpenSIPS-Users] Dialplan error: fail to build rule

2015-09-30 Thread Sasmita Panda
Hi All , I am using mongodb and opensips-1.11 . I am trying to use mongodb as a database for drouting and dialplan module . I have added the required data in mongodb . my mongodb looks like bellow . > db.dr_rules.find() { "_id" : ObjectId("560bd53b6562e8ba08918e76"), "ruleid" : 1,

Re: [OpenSIPS-Users] Dialplan module and priority

2015-07-18 Thread Ali Pey
Thank you for the responses. I have alternated priorities and every other thing I could think of and it would not change the behavior. It always picks the first match if it's a regex type (match_op=1). It works as expected if it's equal type (match_op=0) Priority doesn't seem to kick in when it

Re: [OpenSIPS-Users] Dialplan module and priority

2015-07-17 Thread Muhammad Danish Moosa
Hi. Higher the priority value means 888444's selection should be prioritized. Did you reload the config , have used similar rules and worked. On Fri, Jul 17, 2015 at 3:01 AM, SamyGo govoi...@gmail.com wrote: Hi, Swapping the priority works the way you want ? I have a feeling this makes sense

[OpenSIPS-Users] Dialplan module and priority

2015-07-16 Thread Ali Pey
Hello, Let's say I have the two following rules in my dialplan table: Rule 1: - match_op = 1 (regexp) - Priority=1 - match_exp = ^888[0-9]{7} Rule 2: - match_op = 1 (regexp) - Priority=2 - match_exp = ^888444[0-9]{4} If I use dp_translate for 8882221234, it matches rule 1 and that's good. If

Re: [OpenSIPS-Users] Dialplan module and priority

2015-07-16 Thread SamyGo
Hi, Swapping the priority works the way you want ? I have a feeling this makes sense (just like an ACL or firewall rules) ^888444* should get called before ^888* . On Thu, Jul 16, 2015 at 5:47 PM, Ali Pey ali...@gmail.com wrote: Hello, Let's say I have the two following rules in my dialplan

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2014-07-09 Thread jing
hi,Bogdan how to get the path/to/corefile? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Dialplan-Segfaults-with-Blank-Fields-tp5135472p7592308.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2014-07-09 Thread Bogdan-Andrei Iancu
Hi, See: http://www.opensips.org/Documentation/TroubleShooting-Crash mainly, the chapter How to make sure OpenSIPS dumps a proper core file Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 09.07.2014 09:18, jing wrote: hi,Bogdan how to get

Re: [OpenSIPS-Users] Dialplan

2014-03-10 Thread Liviu Chircu
Hello Khaled, You could build a regexp dialplan rule such as ^[0-9]{7}$ in order to strictly match, for example, a 7-digit number. Best regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 03/07/2014 05:04 PM, M.Khaled W Chehab wrote: Hi, how to match a dialplan

[OpenSIPS-Users] Dialplan

2014-03-07 Thread M.Khaled W Chehab
Hi, how to match a dialplan number length in 1.10 since in 1.6 there were modparam(dialplan, match_len_col, column_name) regards ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Dialplan dp_translate error

2013-11-18 Thread Liviu Chircu
Hello Alexander, Are you using a pre or post 1.9 version of OpenSIPS? Best regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 11/18/2013 01:54 PM, Alexander Mustafin wrote: Hi. I'm using some translation rules for various purposes. I've got dial plan rule with

Re: [OpenSIPS-Users] Dialplan dp_translate error

2013-11-18 Thread Liviu Chircu
Hello again, On second thoughts, I can tell you're running a post 1.9 version of OpenSIPS. Now in debug mode you should see all the rules being dumped in the logs with every reload operation, either at startup or through MI. Could you check if the DPID: 3 rules actually appear listed in that

Re: [OpenSIPS-Users] Dialplan dp_translate error

2013-11-18 Thread Alexander Mustafin
Thanks, Liviu! My bad - the rule is wrong. And in the debug I’ve seen error: Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: Compiling ^\d{3,6}\%23\d*$ expression with flag: 0 Nov 19 03:20:02 ops /usr/sbin/opensips[31841]: DBG:dialplan:build_rule: building subst rule

[OpenSIPS-Users] Dialplan + Dynamic Routing

2013-02-04 Thread Nick Khamis
Hello Everyone, I was just wondering if there are instances that need both the Dialplan and Dynamic Routing functionality. One thing I am reluctant to loose is the regular expression of Dialplan however, having both dialplan and dr seem somewhat redundant right now. Thanks in Advance, Nick.

Re: [OpenSIPS-Users] Dialplan + Dynamic Routing

2013-02-04 Thread Bogdan-Andrei Iancu
Hi Nick, Yes, you may have scripts where to use both modules. They are different as: (a) DR is dedicated to routing and DP is just a string translator and (b) DR is prefix driven while DP is regexp driven in matching. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer

Re: [OpenSIPS-Users] dialplan table and Control Panel tool.

2012-11-16 Thread Miguel J.
a...@opensips.org Reply-to: OpenSIPS users mailling list users@lists.opensips.org Para: OpenSIPS users mailling list users@lists.opensips.org Asunto: Re: [OpenSIPS-Users] dialplan table and Control Panel tool. Fecha: Thu, 15 Nov 2012 12:45:49 +0200 Hi, No, don't change anything. In 5 minutes

[OpenSIPS-Users] dialplan table and Control Panel tool.

2012-11-15 Thread Miguel J.
Dear Opensips lists: I've a trouble with the OpenSips Control Panel tool when the dialplan table has more than 4 rows. If this table contains up to 40,000 rows, the content is provided in the web tool and everything works fine but if this table contains a record more, the tool leaves

Re: [OpenSIPS-Users] dialplan table and Control Panel tool.

2012-11-15 Thread Max Mühlbronner
Hi, maybe you need to adjust memory_limit in php.inf and restart apache. At least this helped me a few times when i had the same problem with dynamic routing/dr_rules table. Max M. On 11/15/2012 11:23 AM, Miguel J. López Valverde wrote: Dear Opensips lists: I've a trouble with the

Re: [OpenSIPS-Users] dialplan table and Control Panel tool.

2012-11-15 Thread Alex Ionescu
Hi, No, don't change anything. In 5 minutes a fix will be available on SVN trunk. There is a small bug in the code. Miguel, how did you install OpenSIPS Control Panel ? SVN or tarball ? Regards, Alex Ionescu On 11/15/2012 12:40 PM, Max Mühlbronner wrote: Hi, maybe you need to adjust

Re: [OpenSIPS-Users] dialplan table and Control Panel tool.

2012-11-15 Thread Miguel J.
@lists.opensips.org Asunto: Re: [OpenSIPS-Users] dialplan table and Control Panel tool. Fecha: Thu, 15 Nov 2012 12:45:49 +0200 Hi, No, don't change anything. In 5 minutes a fix will be available on SVN trunk. There is a small bug in the code. Miguel, how did you install OpenSIPS Control Panel ? SVN or tarball

Re: [OpenSIPS-Users] dialplan table and Control Panel tool.

2012-11-15 Thread Alex Ionescu
-to*: OpenSIPS users mailling list users@lists.opensips.org *Para*: OpenSIPS users mailling list users@lists.opensips.org mailto:opensips%20users%20mailling%20list%20%3cus...@lists.opensips.org%3e *Asunto*: Re: [OpenSIPS-Users] dialplan table and Control Panel tool. *Fecha*: Thu, 15 Nov 2012 12:45:49 +0200

Re: [OpenSIPS-Users] Dialplan with # or *

2012-11-08 Thread Binan AL Halabi
with OpenSIPS 1.6) page 168. Binan. Från: Jorge Medina jorgemmm4...@hotmail.com Till: binanalhal...@yahoo.com; john.rami...@une.com.co Skickat: torsdag, 8 november 2012 16:20 Ämne: RE: [OpenSIPS-Users] Dialplan with # or * Hi,   Thanks for your answer,     I

[OpenSIPS-Users] Dialplan with # or *

2012-11-02 Thread Jorge Medina
Hi, I need to inclue # and * characters begining dialing. Customers will dial #400 and *20(+ digits). Sipserver never routes these strings to softswich. I had included in dialplan intenting several ways without results. id dpid pr match_op match_exp

Re: [OpenSIPS-Users] DialPlan Module Nested dp_translate

2012-05-05 Thread Bogdan-Andrei Iancu
Hi Jamuel, And idea will be to simulate sub-levels by groups. Like top level rules (with wider regexps) are in group 1 and they point (via attributes) to another group of rules (tighter). Like in your case: Group 1 Matching Regular Expression: ^\+1.* Substitution Regular Expression:

[OpenSIPS-Users] DialPlan Module Nested dp_translate

2012-05-01 Thread Jamuel Starkey
Hi, I'm using OpenSIPs v1.7.2 and trying to come up with a way to nest dialplan dp_translate. I'd like to match against a fairly broad regex and do a replacement and then match the resulting replacement with a narrower regex this time just set an attribute (no replacement). I don't see how

Re: [OpenSIPS-Users] DialPlan Module Nested dp_translate

2012-05-01 Thread pa...@eremina.net
I can't understand what for you need to set a Attribute? pseudo code: dp_translate(0,$ruri/$ruri) (in dialplan table present rule with dpid=1, match_reg_exp=1415.*) if (dp_translate(1,$riru/$var(smth)) { $var(myvar) = '415'; do_anything; } 2012/5/2 Jamuel Starkey jam...@hcvoip.com: Hi, I'm

Re: [OpenSIPS-Users] Dialplan module and matching numbers

2012-04-05 Thread Ali Pey
Hi Sammy, Thank you for your response but I don't think you understood my question. As the subject of the thread suggests my question is regarding the dialplan module. I don't want to list all hundreds of my numbers in my config script and then restart opensips every time I need to make a

Re: [OpenSIPS-Users] Dialplan module and matching numbers

2012-04-05 Thread Bogdan-Andrei Iancu
Hi Ali, the dpid is DialPlan ID - the idea is that you can group the rules in different sets and use a certain set at a given moment. This dpid is linked to the first param of the dp_translate() function - you tell to the function which set of rules to use (and only the rules from that set

Re: [OpenSIPS-Users] Dialplan module and matching numbers

2012-04-05 Thread Ali Pey
Thank you Bogdan. That makes sense. I guess I would only need one dpid in my case. Regards, Ali On Thu, Apr 5, 2012 at 10:02 AM, Bogdan-Andrei Iancu bog...@opensips.orgwrote: ** Hi Ali, the dpid is DialPlan ID - the idea is that you can group the rules in different sets and use a certain

Re: [OpenSIPS-Users] Dialplan module and matching numbers

2012-04-04 Thread SamyGo
Hey, I think using this would help if( $tU =~ 1234567890) { $avp(gid) = 1; }else if( $tU =~ 9876543210 ){ $avp(gid) = 2; } if (!load_balance($avp(gid),transc;pstn)) { sl_send_reply(500,Service full); exit; } engage

Re: [OpenSIPS-Users] Dialplan problem ?

2010-11-02 Thread Bogdan-Andrei Iancu
Hi Marcio, I see you are using subst_exp without repl_exp. Those two fields can be used as: 1) subst_exp + repl_exp in a subst like replacement : s/subst_exp/repl_exp/g 2) repl_exp as a static string for replacement See:

Re: [OpenSIPS-Users] Dialplan problem ?

2010-10-22 Thread Bogdan-Andrei Iancu
Hi Marcio, first of all be sure you are using the latest SVN check out from 1.6 branch. What is really interesting in your case I do not see any err / warning message...and the code is generating err/warn messages before destroying the rule. What is happening is that during the DB load, when

Re: [OpenSIPS-Users] Dialplan problem ?

2010-10-13 Thread Bogdan-Andrei Iancu
Hi Marcio, The answer is: Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:build_rule: references:1 , max:1 Oct 13 17:05:47 perseu /sbin/opensips[13077]: DBG:dialplan:destroy_rule: destroying rule with priority 1 It looks like opensips rejects the rules while loading them at

Re: [OpenSIPS-Users] Dialplan module

2010-07-29 Thread Bogdan-Andrei Iancu
Hi, What match-op are you using for that rule ? Regards, Bogda Антон Загорский wrote: Hello. I'm using a head version of opensips. In case when in the column subst_expr there is nothing, dp_translate() does not place to the output the repl_exp column value. But it should accordingly the

[OpenSIPS-Users] Dialplan module

2010-07-20 Thread Антон Загорский
Hello. I'm using a head version of opensips. In case when in the column subst_expr there is nothing, dp_translate() does not place to the output the repl_exp column value. But it should accordingly the dialplan module documentation. ___ Users

Re: [OpenSIPS-Users] Dialplan module

2010-07-20 Thread Denis Putyato
Hello Are you using regexp in repl_exp ? -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Антон Загорский Sent: Tuesday, July 20, 2010 4:19 PM To: users@lists.opensips.org Subject: [OpenSIPS-Users] Dialplan module Hello

Re: [OpenSIPS-Users] Dialplan module

2010-07-20 Thread Антон Загорский
@lists.opensips.org Subject: [OpenSIPS-Users] Dialplan module Hello. I'm using a head version of opensips. In case when in the column subst_expr there is nothing, dp_translate() does not place to the output the repl_exp column value. But it should accordingly the dialplan module documentation

Re: [OpenSIPS-Users] Dialplan module

2010-07-20 Thread Denis Putyato
mailling list' Subject: Re: [OpenSIPS-Users] Dialplan module No, just an exact string like sip:1...@mydomain.com Hello Are you using regexp in repl_exp ? -Original Message- From: users-boun...@lists.opensips.org [mailto:users- boun...@lists.opensips.org] On Behalf Of Антон Загорский

[OpenSIPS-Users] Dialplan reload

2010-07-07 Thread Hasitha Lalinda
Hi, Can anyone please tell me how to reload the dialplan without restarting opensips? I tried using the commands below. both returned the same error: r...@sip:~# opensipsctl fifo dp_reload 500 command 'dp_reload' not available r...@sip:~# opensipsctl dialplan reload 500 command 'dp_reload' not

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2010-06-23 Thread Anca Vamanu
. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Thursday, June 10, 2010 11:10 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields Hi Sven, I

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2010-06-22 Thread Dave May
11:10 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields Hi Sven, I made a fix on SVN trunk (see revision 6948) - please check it out. After more tests, I will move it to 1.6 branch too. Regards, Bogdan Sven Schulz wrote: #0

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2010-06-10 Thread Bogdan-Andrei Iancu
Hi Sven, I made a fix on SVN trunk (see revision 6948) - please check it out. After more tests, I will move it to 1.6 branch too. Regards, Bogdan Sven Schulz wrote: #0 0x2b566cc159cc in build_rule (values=0x79f540) at dp_db.c:382 #1 0x2b566cc168d3 in dp_load_db () at dp_db.c:249

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2010-06-04 Thread Sven Schulz
How do I do that? On 6/3/10 4:27 PM, Bogdan-Andrei Iancu bog...@voice-system.ro wrote: Hi Sven, could you get the backtrace from the core file ? Regards, Bogdan Sven Schulz wrote: I was having problem with control panel (dialplan) so I decides to enter diaplan rules using mysql

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2010-06-04 Thread Bogdan-Andrei Iancu
gdb /path/to/opensips /path/to/corefile once you get the gdb prompt, do "bt" Regards, Bogdan Sven Schulz wrote: How do I do that? On 6/3/10 4:27 PM, "Bogdan-Andrei Iancu" bog...@voice-system.ro wrote: Hi Sven, could you get the backtrace from the core file ? Regards,

Re: [OpenSIPS-Users] Dialplan Segfaults with Blank Fields

2010-06-03 Thread Bogdan-Andrei Iancu
Hi Sven, could you get the backtrace from the core file ? Regards, Bogdan Sven Schulz wrote: I was having problem with control panel (dialplan) so I decides to enter diaplan rules using mysql commands. If I dont populate the fields “sub_exp” and “repl_exp”, opensips will segfault when

[OpenSIPS-Users] Dialplan module Usage

2009-10-22 Thread Indiver
Hi Every one, I'm new to the opensips. I dont know wheter it is a right question to post here. I worked on the amost all modules of opensips. I had some queries regarding dialplan module. 1)What is the exact usage of dialplan module other than calling regexpression from database. I tried some

Re: [OpenSIPS-Users] Dialplan module Usage

2009-10-22 Thread Indiver
Hi Flavio, Thanks for your response. I had to implement the similar scenario as mentioned by you. I tried with different scenario by using forums,but in vain. can you send the configuration implemented by your for local and pstn. we have to authenticate our customers for certain destinations.

Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases

2009-10-19 Thread Bogdan-Andrei Iancu
- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Brett Nemeroff Sent: Friday, October 16, 2009 12:31 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases I don't mean to point out the obvious here

Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases

2009-10-18 Thread Bogdan-Andrei Iancu
...@lists.opensips.org] On Behalf Of Brett Nemeroff Sent: Friday, October 16, 2009 12:31 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases I don't mean to point out the obvious here, but \4 doesn't exist. that'd refer to the 4th set

Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases

2009-10-16 Thread Sebastian Sastre
Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Brett Nemeroff Sent: Friday, October 16, 2009 12:31 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases I don't mean to point out

Re: [OpenSIPS-Users] Dialplan issues: simple strip\prefix cases

2009-10-15 Thread Brett Nemeroff
I don't mean to point out the obvious here, but \4 doesn't exist. that'd refer to the 4th set of parens in your expression. See your exp, you only have 2. As a completely separate issue, I also suspect that ^4224+ is wrong. I'm not an expert in regex, but I think that means starts with 4224 and

Re: [OpenSIPS-Users] Dialplan module not working

2009-10-14 Thread Indiver
Hi Brett, Thanks for your quick response. I tested with the criteria you have given but in vain. I had followed the following scenario for dialplan module. Step 1: Added rules in opensips-cp as follows: Matching Regular Expression: sip:1[0-9]...@localhost Substitution Regular

Re: [OpenSIPS-Users] Dialplan module not working

2009-10-14 Thread Brett Nemeroff
Honestly, you'd be better off matching with $ruri.user and not the full RURI unless you really mean that. FWIW, I can't imagine that sip:1[0-9]...@localhost would *ever* match. Why don't you set an xlog showing what the RURI is, then write a regex you know matches that? Did you try my

[OpenSIPS-Users] Dialplan module not working

2009-10-13 Thread Indiver
HI Everyone, I want to implement the dialplan module. But i was confused little bit in the configuration part. my database table of dialplan module is ++--++--+---+---+---+--+---+ | id | dpid | pr | match_op | match_exp | match_len

Re: [OpenSIPS-Users] Dialplan module not working

2009-10-13 Thread Brett Nemeroff
Your very close.. look, your regex shows ^67.+ (starts with 67) BUT your string does NOT start with 67. it starts with sip:67 (ie: si != 67) so it just doesn't match. Also, I wouldn't use the $var vars here.. instead try: dp_translate(1, $ruri.user/$ruri.user) THEN your shown regex will work

Re: [OpenSIPS-Users] Dialplan module not working

2009-10-13 Thread Bogdan-Andrei Iancu
Hi Nehru, the rule matching regexp (match_exp ) expects to receive a string starting with 67, but you pass a string with sip: in front. Regards, Bogdan Indiver wrote: HI Everyone, I want to implement the dialplan module. But i was confused little bit in the configuration part. my database

Re: [OpenSIPS-Users] dialplan/dp_translate not working as expected

2009-08-30 Thread Petr Man
Hello Bogdan, I completely missed your answer. The set of rules I am using is to match all outgoing sip uris starting with asterisk to go to sipbroker.com. I used the same code Todd Bradley as did. The relevant part of the log: Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]: To user is:

Re: [OpenSIPS-Users] dialplan/dp_translate not working as expected

2009-08-24 Thread Bogdan-Andrei Iancu
Hi Petr, Just to be sure you have the same problem, could you post the debug logs for the dialplan processing (use debug=8) ? Regards, Bogdan Petr Man wrote: Hello list, I have been trying to bring my dialplan to life the whole night without success. I am experiencing the same problem as

  1   2   >