<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">rewritehost() sucessfully work with UAC. But As I know <br></span>1) It statless function<br>2) It read only string argumetns, and do not read variables</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-21 14:43 GMT+04:00 Satish Patel <span dir="ltr"><<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I will give it a try again today, can you please make sure my t_relay() syntax is correct?<br>
<br>
So t_relay will rewrite my host past right and send call to trunk.<br>
<br>
While ago I was using rewritehost() function but I think it's not working with UAC registrant module.<br>
<br>
<br>
Sent from my iPhone<br>
<div class="HOEnZb"><div class="h5"><br>
On Aug 21, 2014, at 3:53 AM, Daniel Tryba <<a href="mailto:daniel@pocos.nl">daniel@pocos.nl</a>> wrote:<br>
<br>
> On Thursday 21 August 2014 05:56:46 Satish Patel wrote:<br>
>>                if ( $rU =~ "sip:1[0-9]@*") {<br>
><br>
> Try $ru instead, $rU only contains the dialled "number". So<br>
> $ru =~ "sip:1[0-9]@*"<br>
> or<br>
> $rU =~ "1[0-9]"<br>
><br>
> But note the regexp, that only matches the exact numbers 10 to 19, if you are<br>
> trying to match prefixes you are doing it wrong (tm).<br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>