Hi,
before the rewritehost(), are you doing ant lookup(location) like?
because the $du may get set by certain function (like lookup() or
loose_route() ), so you need to reset it if you change the destination
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)\...@\2/i');
> prefix("VMR_");
> rewritehost("173.203.78.63");
> xlog("----- new ruri=<$ru>, dst=<$du>\n");
> $du= NULL;
> xlog("----- new ruri=<$ru>, dst=<$du>\n");
> t_relay();
> exit;
>
>
>
> Nov 3 15:49:17 Proxy01 /usr/local/sbin/opensips[25791]: Call control: user
> channel limit exceeded [1/1]
> Nov 3 15:49:17 Proxy01 /usr/local/sbin/opensips[25791]: ----- new
> ruri=<sip:[email protected];user=phone>,
> dst=<sip:75.65.8.158:2049>
> Nov 3 15:49:17 Proxy01 /usr/local/sbin/opensips[25791]: ----- new
> ruri=<sip:[email protected];user=phone>, dst=<<null>>
>
>
> Doing the $du=NULL; fixes it. But it shouldn't be doing this right? In
> other parts of my script I don't have to do this.
>
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users