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.
Thanks in andvance for your help! Roman
Here The INVITEs with x.x.x.x as Kamailio external IP and y.y.y.y as Carrier IP
Incoming INVITE:
INVITE sip:+43123456789@x.x.x.x:5060 SIP/2.0. Via: SIP/2.0/UDP y.y.y.y:5060;branch=z9hG4bK02B7871714d9345f843. From: sip:+43987654321@y.y.y.y;tag=gK022ac5cb. To: sip:436761234567@x.x.x.x. Call-ID: 906143813_44460603@y.y.y.y. CSeq: 28100 INVITE. Max-Forwards: 19. Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS. Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed. Contact: sip:+43987654321@y.y.y.y:5060. P-Asserted-Identity: sip:+43987654321@y.y.y.y:5060. Diversion: sip:+436761234567@y.y.y.y:5060;privacy=full;screen=no; reason=unconditional; counter=1. Supported: timer,100rel. Session-Expires: 1800. Min-SE: 90. Content-Length: 260. Content-Disposition: session; handling=required. Content-Type: application/sdp. ...
Relayed INVITE:
INVITE sip:436761234567@x.x.x.x:5060 SIP/2.0. Record-Route: sip:10.23.101.1;r2=on;lr=on;ftag=gK022ac5cb. Record-Route: sip:x.x.x.x;r2=on;lr=on;ftag=gK022ac5cb. Via: SIP/2.0/UDP 10.23.101.1;branch=z9hG4bK8582.4fc0216dbecafde29127db502993222c.0. Via: SIP/2.0/UDP y.y.y.y:5060;rport=5060;branch=z9hG4bK02B7871714d9345f843. From: sip:+43987654321@y.y.y.y;tag=gK022ac5cb. To: sip:436761234567@x.x.x.x. Call-ID: 906143813_44460603@y.y.y.y. CSeq: 28100 INVITE. Max-Forwards: 18. Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS. Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed. Contact: sip:+43987654321@y.y.y.y:5060. P-Asserted-Identity: sip:+43987654321@y.y.y.y:5060. Supported: timer,100rel. Session-Expires: 1800. Min-SE: 90. Content-Length: 274. Content-Disposition: session; handling=required. ...