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=&labels=&template=feature_request.md&title=%5BFEATURE%5D > > > > Ben Newlin > > > > From: Users <users-boun...@lists.opensips.org> on behalf of > > Kingsley Tart <kings...@dns99.co.uk> > > Date: Tuesday, April 20, 2021 at 12:22 PM > > To: OpenSIPS users mailling list <users@lists.opensips.org> > > 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