Re: [OpenSIPS-Users] INVITE as a variable?

2010-01-06 Thread Alex Balashov
On the contrary, rewriting the Request URI (which is what I assume you 
mean by "rewrite the number in the INVITE itself"), including the user 
part of the Request URI (the part before the @), is one of the most 
basic functions the proxy *can* perform.

See the pseudovariables $ru (and for the user part specifically, $rU, or 
$rd for the domain and $rp for the port).  They are mutable:

$rU = "39824234234";
$rd = "sip.biloxi.net";

-- Alex

On 01/06/2010 09:52 AM, Brad Bendy wrote:

> Hi list,
>
> Im trying to find a way to extract and the re-write the number in the
> INVITE itself, Mera and a few other switch manufacturers are all of a
> sudden are trying to route on INVITE and not the To field, when the
> INVITE has a prefix in it they fail to complete the call then. I can't
> seem to find any built in variables or way to do that, is it just not
> possible to rewrite the INVITE or am I missing something? It would seem
> pretty straight forward but no way to do this, am I just blind?
>
> Thanks for any help
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] INVITE as a variable?

2010-01-06 Thread Brad Bendy
Hi list,

Im trying to find a way to extract and the re-write the number in the
INVITE itself, Mera and a few other switch manufacturers are all of a
sudden are trying to route on INVITE and not the To field, when the
INVITE has a prefix in it they fail to complete the call then. I can't
seem to find any built in variables or way to do that, is it just not
possible to rewrite the INVITE or am I missing something? It would seem
pretty straight forward but no way to do this, am I just blind?

Thanks for any help

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users