I don't know that its mentioned in the documentation, but I ran across the
same issue and remembered finding something about it by searching nabble's
opensips part.

Its one of those things you chalk up to experience.

Sent from Droid
On Feb 6, 2011 8:54 PM, "Nigel Daniels" <nigel.dani...@connectandsell.com>
wrote:
> that seems to be working, thanks alot ! clearly I need to re-read the docs
>
> On Sun, Feb 6, 2011 at 6:48 PM, Dave Singer <dave.sin...@wideideas.com
>wrote:
>
>> Isn't
>> $var(my_uri) = "5...@example.com";
>> $ru = "sip:" + $var(my_ruri);
>> the same as
>> rewriteuri("sip:5...@example.com");
>> just that using $ru you can use it just like assigning to other vars
>> like you are doing.
>>
>>
>> On Sun, Feb 6, 2011 at 6:36 PM, Duane Larson <duane.lar...@gmail.com>
>> wrote:
>> > Avpops
>> >
>> > Sent from Droid
>> >
>> > On Feb 6, 2011 8:34 PM, "Nigel Daniels" <
>> nigel.dani...@connectandsell.com>
>> > wrote:
>> >> the problem is that rewriteuri() does not support variables is there
any
>> >> alternative to rewriteuri() for changing the uri
>> >>
>> >> On Sun, Feb 6, 2011 at 6:26 PM, Tyler Merritt <ty...@fonality.com>
>> wrote:
>> >>
>> >>> I do this as well:
>> >>>
>> >>> $var(origFromNumber) = $(re{uri.user});
>> >>> $var(finalFromURI) = "sip:81" + $(var(origFromNumber){s.substr,1,0})
+
>> >>> "@"
>> >>> + $fd;
>> >>>
>> >>> This works fine for me. Takes what is essentially a DID and formats
it
>> to
>> >>> a SIP PEER string as per the carrier.
>> >>>
>> >>> You say that var(z) prints correctly in the logs, but according to
the
>> >>> parser it's not a legit URI. It may just be that your upstream routes
>> >>> don't
>> >>> recognize this format.
>> >>>
>> >>> We use the usr_loc and db_aliases in order to match the URI up with a
>> >>> destination - have you ensured that there is a valid destination for
>> this
>> >>> SIP URI?
>> >>>
>> >>> _______________________________________________
>> >>> Users mailing list
>> >>> Users@lists.opensips.org
>> >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> Nigel Daniels
>> >> Network & Systems Administrator
>> >> ConnectAndSell inc.
>> >> (650)-533-2542 <+16505332542>
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users@lists.opensips.org
>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >
>> >
>>
>> _______________________________________________
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
> --
> Nigel Daniels
> Network & Systems Administrator
> ConnectAndSell inc.
> (650)-533-2542
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to