Hi all,

I'm tryting to implement a E164 normalizer using the dialplan module,
by now I have 3 simple rules:

dpid priority matchop matchex matchlen subsex replaceex  attributes
0    1        1       (00|\+)([1-9][0-9]+) 0 (00|\+)([1-9][0-9]+) \2
0    1        1       ([5-9][0-9]{8}) 0 ([5-9][0-9]{8}) 34\1

The first rule 'it's supposed' to remove + or 00 from full qualified E164 
numbers,
the seccond rule 'should' add 34 as prefix to all 'valid' spanish numbers, they 
was
running on some little test I did, but when try to put them on pre-production 
enviroment
I get strage results.

I call dp_translate as dp_translate("0","$rU/$rU");

And this what I get :

Input RURI              Output RURI
900xxx...@dom.tld       xxx...@dom.tld

And the quetion is why?, are my match rules wrong? why subex and matchex must 
be the same?

Best regards.

--
Raul Alexis Betancor Santana
Dimension Virtual S.L.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to