Dear all,<br><br>I'm having difficulties in the dialplan module. My problem is in the regular expressions added to the database. I tried some examples from previous users but they don't work for me.<br>example:<br>
<br>dpid 10<br>pr 100<br>match_op 0<br>match_exp ^123(.*)$<br>match_len 0<br>subst_exp ^123<br>repl_exp 0030<br><br><br>Previous example from Daniel that I found in user lists:<br><br><pre style="margin: 0em;">s/subst_exp/repl_exp/<br>
<br></pre><tt>subst_exp - is regular expression that can be used to group parts of the
</tt><tt>input
</tt><pre style="margin: 0em;">repl_exp - is used to build the output<br><br>Example: you want to remove the first 0 and prefix +44 to a number:<br><br>subst_exp=^0(.+)$<br>repl_exp=+44\1<br><br><br></pre>Can someone provide an example that works with the latest kamailio please? Also where I can find more docs about dialplan?<br>
<br>Thank you all<br><br>Alex<br>