Frank Durda IV wrote:
I have another large carrier that I am trying to send calls to, and they have a requirement that you not send them the npdi and rn=nnnnnnnn parameters for all calls. If you do, the call handling will be botched and the call will fail, even if the LRN information is exactly correct.
[...]
So, is there a way to do something with rn=NNNNNNNNNN and npdi/npdi=yes parameters without having to write a custom function to do it?
Where exactly are these parameters? RFC 4694 is for tel URIs, so I would assume this is either in the From URI or Request-URI?
What you want is the subst() or replace() functions if it is in any of the header fields or the subst_uri() function for the Request-URI. They all allow you to search/replace using regular expressions and are mighty powerful.
There is a small number of quirks, such as don't use the end-of-line matching thing $ (supposedly because EOL is \r\n not just \n which confuses things), but you can usually work around that. Just play around with various regexps until you get it right.
HTH and best regards, Martin