Am 04.07.2011 13:59, schrieb Alex Balashov:
On 07/04/2011 07:53 AM, Klaus Darilion wrote:
Is there a method to replace the whole part after
the @ with a single
assignment (setting domain,port and parameters)?
I want to avoid:
$ru = "sip:" + $rU + "@" + "1.2.3.4:5060";
There is rewritehostport(). But if you have PV arguments, I don't know
if it will take them.
Actually I try to replace rewritehostport as it also leaves the URI
parameters untouched.
E.g. If client sent sip:004312345@domain;transport=tls the transport
parameter would survive. Thus I need to replace the parameters as well.
regards
Klaus