[OpenSIPS-Users] rewritehostport not working, but it has before

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Nov 3 16:33:08 CET 2010


I see....

when doing rewriteuri(), do also :
    $du = NULL;

Regards,
Bogdan

osiris123d wrote:
>                                          revert_uri();
>                                         if (uri=~"^sip:9[2-9][0-9]{6}@") {
>                                                 strip(1);
>                                         };
>                                        
> subst_uri('/^sip:([0-9]+)@(.*)$/sip:$avp(s:areacode)\1@\2/i');
>                                         prefix("VMR_");
>                                         rewritehost("173.XXX.XX.63");
> xlog("----- new ruri=<$ru>, dst=<$du>\n");
>
>                                         t_relay();
>                                         exit;
>
>
> And my log shows
>
> ----- new ruri=<sip:VMR_9012211610 at 173.XXX.XX.63;user=phone>,
> dst=<sip:75.65.8.158:2049>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list