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?
++--+-
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 param
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 | subs