Hello again,
Replying to my own email again in case it helps anyone in the future
In the end what I was trying to achieve in this case with 2 values in the same AVP was a simple OR statement. To work around the fact it wasn't working as expected I end up doing the OR matching using regular expression in a single AVP
So the following config works:
modparam("dialplan", "match_dynamic", 1) $avp(s:PSTNAC) = "^(0|3)(.*)";
Dialplan entry: dpid = 1 match_op = 1 match_exp = $(avp(s:PSTNAC)[*]) match_len = 0 subst_exp = $(avp(s:PSTNAC)[*]) repl_exp = 9\2
Regards, Joao Arruda
Em qua., 22 de jul. de 2020 às 12:02, João Vitor Arruda joao.arruda@gmail.com escreveu:
modparam("dialplan", "match_dynamic", 1) $avp(s:PSTNAC) = "^0(.*)"; $avp(s:PSTNAC) = "^3(.*)";
Dialplan entry: dpid = 1 match_op = 1 match_exp = $(avp(s:PSTNAC)[*]) match_len = 0 subst_exp = $(avp(s:PSTNAC)[*]) repl_exp = 9\1