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

2021-04-21 Thread Kingsley Tart
I've added it as a feature request:

https://github.com/OpenSIPS/opensips/issues/2477

Cheers,
Kingsley.

On Wed, 2021-04-21 at 10:58 +0300, Bogdan-Andrei Iancu wrote:
> Indeed, it may be an interesting one. And as Ben said, we are also
> using M4 for the scripting, nevertheless, if you want to integrate
> with OpenSIPS Control Panel, it may become tricky ;)
> 
> Regards,
> On 4/20/21 9:05 PM, Ben Newlin wrote:
> > This sounds like it might be a good feature request [1] and I agree
> > it sounds nice. I can’t offer any assistance in that direction at
> > this time, but I wanted to say that we use M4 in our config scripts
> > to allow us to define string constants like this and make the
> > script more readable, among other reasons. Could be a good short-
> > term workaround. We specifically use it to define string-based
> > 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: 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
> > 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 be more intuitive. If dpid could be a string,
> > then
> > I could for example create a ruleset that I could refer to as
> > "uk_local_to_e164" instead of "7".
> > 
> > Could this be a thing?
> > 
> > -- 
> > Cheers,
> > Kingsley.
> > 
> > 
> > ___
> > 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
>  
> ___
> 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] dialplan module - dpid - could it be a string?

2021-04-21 Thread Bogdan-Andrei Iancu
Indeed, it may be an interesting one. And as Ben said, we are also using 
M4 for the scripting, nevertheless, if you want to integrate with 
OpenSIPS Control Panel, it may become tricky ;)


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Bootcamp 2021 online
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 4/20/21 9:05 PM, Ben Newlin wrote:


This sounds like it might be a good feature request [1] and I agree it 
sounds nice. I can’t offer any assistance in that direction at this 
time, but I wanted to say that we use M4 in our config scripts to 
allow us to define string constants like this and make the script more 
readable, among other reasons. Could be a good short-term workaround. 
We specifically use it to define string-based 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: *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 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 be more intuitive. If dpid could be a string, then
I could for example create a ruleset that I could refer to as
"uk_local_to_e164" instead of "7".

Could this be a thing?

--
Cheers,
Kingsley.


___
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


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


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

2021-04-20 Thread Ben Newlin
This sounds like it might be a good feature request [1] and I agree it sounds 
nice. I can’t offer any assistance in that direction at this time, but I wanted 
to say that we use M4 in our config scripts to allow us to define string 
constants like this and make the script more readable, among other reasons. 
Could be a good short-term workaround. We specifically use it to define 
string-based 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: 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 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 be more intuitive. If dpid could be a string, then
I could for example create a ruleset that I could refer to as
"uk_local_to_e164" instead of "7".

Could this be a thing?

--
Cheers,
Kingsley.


___
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] 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 be more intuitive. If dpid could be a string, then
I could for example create a ruleset that I could refer to as
"uk_local_to_e164" instead of "7".

Could this be a thing?

-- 
Cheers,
Kingsley.


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