Hi All

I've used the following code

  xlog("L_NOTICE", "SERVICE State: $avp(s:customer_id), $avp(s:state)");
  if ( $avp(s:state) == "SA" ) {
    if ( $tU =~ "^[6789].{7}" ) {
      $rU = "08" + $tU;
      xlog("L_NOTICE", "Rewrite Area Code: 08 - $rU");
    }
  }

The issue is that I now seem to be getting two calls per actual call on
my radius logs. One is closed off with a code 200 and the other a code 183.

I assume the problem is that the contact needs to be rewritten ever time
its seen by opensips ?

Mike



On 2/09/11 10:10 AM, Brett Nemeroff wrote:
> On Thu, Sep 1, 2011 at 6:22 PM, Mike O'Connor <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hi Brett
>
>     So I need to rewrite the R-URI, the command which does this is
>     'rewriteuser' which only touches the actual phone number in the
>     sip:1233@domain.
>
>
> Mike,
> I'd just avoid using rewriteuser altogether. Instead use $rU which is
> the userpart of the RURI and is a R/W variable.
>
> The docs for uac_replace_to (same as from) are here:
> http://www.opensips.org/html/docs/modules/1.7.x/uac#id292749
>
> I think you just have to rebuild an entire valid URI for this
> function, you can't just rewrite the userpart like you can with the
> RURI. Someone correct me if I'm wrong. Feature request, hint hint..
>
>
>
> �
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to