[OpenSIPS-Users] SUSPECT: Rewrite From Header In CANCEL forwarded packet
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Mar 13 12:19:33 CET 2009
Hi Marc,
use uac_replace_from() from UAC module to get changes persistent across
the transaction:
http://www.opensips.org/html/docs/modules/1.4.x/uac.html#id227417
Note the CANCEL is locally regenerated (even if received) - it is
propagating hopbyhop.
Regards,
Bogdan
Marc Leurent wrote:
> Good Morning,
> I'am using a loadbalanced platform with dispatcher module. When a packet is
> sent from a Gateway to a peer, I rewrite the From Header which contains the
> IP of the gateway in order to put the proxy domain because some Hardphones
> like
> Thomson ST2030 will keep the domain in call history to be able to call back a
> person. If the UA use the direct IP of the gateway, the call will failed, it
> has to go through the proxy! So I would like to rewrite From header coming
> from gateways
>
> It's working for INVITE, OPTIONS,... in main route, but CANCEL packets are not
> rewritten and UA sent back a message saying transaction does not exists
> because From header is different from INVITE!
>
> I have put this in main route:
>
> if (ds_is_from_list()) { # Returns true if the current request comes
> from a host from the dispatcher-list
> xlog("L_INFO", "Rewriting From Domain in $rm $(hdr(From))");
> #subst('/^From:(.*)@xxx.xxx.xxx.[0-9]+(.*)$/From:
> \1 at xxx-dev.xxx.xx\2/ig');
> }
>
> Have you got any idea how to rewrite CANCEL packet?
> I have tried to put the same thing in failure route but it does not work.
>
> Thanks
>
> Best Regards
>
>
More information about the Users
mailing list