On Sun, Jan 29, 2017 at 06:42:23PM +0100, Roman Dissauer wrote: > When I get an INVITE with Diversion Header the Request is forwarded > without Diversion Header and the Request User is taken from Diversion > User. Problem is that on the Destination Host I cannot get original > Request User what is the intended destination! Is this intended > behaviour? How can I change this behaviour? > > I already tried to delete the Diversion Header on request_route but > this didn’t change the behaviour. > INVITE sip:+43123456789@x.x.x.x:5060 SIP/2.0. > From: <sip:+43987654321@y.y.y.y>;tag=gK022ac5cb. > To: <sip:436761234567@x.x.x.x>. > Diversion: <sip:+436761234567@y.y.y.y:5060>;privacy=full;screen=no; > reason=unconditional; counter=1. > INVITE sip:436761234567@x.x.x.x:5060 SIP/2.0. > From: <sip:+43987654321@y.y.y.y>;tag=gK022ac5cb. > To: <sip:436761234567@x.x.x.x>.
This behavior is AFAIK not something that kamailio does out of the box and is just plain wrong (since the Diversion indicates the source of a forward/deflection). Maybe somebody made a typo to set $ru to $di instead of $du :) What may work is calling msg_apply_changes after the delete: http://www.kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.f.msg_apply_changes _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users