[OpenSIPS-Users] Diaplan - Using Regex Back References
Dan-Cristian Bogos
danb at sms4sip.com
Thu Apr 16 11:07:16 CEST 2009
Hi Bogdan,
Many thanks for so fast reaction.
I can confirm that the trunk version works fine now.
Cheers,
DanB
On Wed, 2009-04-15 at 19:28 +0300, Bogdan-Andrei Iancu wrote:
> Hi Dan,
>
> Again, you are right :). I found the bug and fixed in on trunk version -
> could you please give it a try and test it a bit? I want to be 110% sure
> it is correct before backporting it to stable.
>
> Thanks and regards,
> Bogdan
>
> Dan-Cristian Bogos wrote:
> > Guys,
> >
> > I have experimented with regex rules and back references when using
> > dialplan module, and it looks like the dialplan returns only the part
> > preceding the back reference, including it, but not what comes after.
> > Can anyone help me with experimenting it?
> >
> > As an example:
> >
> > match_op: 1
> > match_exp: user1
> > subst_exp: (.+)
> > repl_exp: sip:\1 at opensips.org
> >
> > Output from dp_translate:
> > """
> > opensipsctl fifo dp_translate 99 user1
> > Output:: sip:user1
> > ATTRIBUTES::
> > """
> >
> > I would expect that the result would be Output:: sip:user1 at opensips.org.
> >
> > Am I the one doing anything wrong?
> >
> > Ta,
> > DanB
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
>
More information about the Users
mailing list