Definitely not adding it back anywhere. Is it possible that loose_route() or t_relay() would add it back? These are the relevant blocks of code this call is traversing.
xlog("L_ERR","We have a Proxy Route request, performing loose routing to end point [$(hdr(Route))]"); remove_hf("P-Proxy-Route"); remove_hf("Route"); if(loose_route()){ route(RELAY); }else{ sl_send_reply("404","Unable to route request"); } route[RELAY]{ xlog("L_INFO", "Setting up reply handler and relaying request\n"); t_on_reply("LOG"); if(!t_relay()){ sl_reply_error(); } } On Thu, Aug 15, 2013 at 8:57 AM, Carsten Bock <cars...@ng-voice.com> wrote: > Hi Geoffrey, > > it looks like you add the Route header somewhere else, since the > Route-Header has a different position before and after Kamailio. Maybe > a lookup (with Path?) or similar? If you want to remove a header, > which you added previously in the routing logic, then you will have to > apply the changes before removing the header again > (msg_apply_changes())... better would be not adding the header at all. > > Kind regards, > Carsten > > 2013/8/15 Geoffrey Mina <geoffreym...@gmail.com>: > > Can anyone tell me why Kamailio 4.0 is sending the INVITE out with the > Route > > Header intact? The call is running through this block which I thought > > should remove it before sending it out. The far end is having a hard > time > > dealing with the fact that the Route header is in there and we aren't > > looking for strict routing. > > > > if(is_present_hf("P-Proxy-Route")){ > > xlog("L_ERR","We have a Proxy Route request, performing loose > > routing to end point [$(hdr(Route))]"); > > remove_hf("P-Proxy-Route"); > > remove_hf("Route"); > > > > if(loose_route()){ > > route(RELAY); > > }else{ > > sl_send_reply("404","Unable to route request"); > > } > > > > } > > > > > > Here is the inbound and outbound INVITE (I have removed hosts and IPs > > intentionally) > > > > IN: > > > > INVITE sip:1177000...@dialer201.blah.com:5060 SIP/2.0 > > Via: SIP/2.0/UDP 0.0.0.0:5060;branch=z9hG4bK7495b309;rport > > From: "+14109972688" <sip:+14109972...@blah.com>;tag=as11488f8f > > To: <sip:1177000...@dialer201.blah.com:5060> > > Contact: <sip:+14109972688@0.0.0.0> > > Call-ID: 629cb67912fd16af758e6e7e67e89...@blah.com > > CSeq: 102 INVITE > > User-Agent: Asterisk PBX > > Max-Forwards: 70 > > Date: Wed, 14 Aug 2013 23:27:17 GMT > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO > > Supported: replaces > > Route: <sip:1177000...@sipgateway.blah.com> > > P-Proxy-Route: Yes > > Content-Type: application/sdp > > Content-Length: 242 > > > > > > OUT: > > INVITE sip:1177000...@sipgateway.blah.com SIP/2.0 > > Record-Route: <sip:0.0.0.0;lr;ftag=as11488f8f> > > Via: SIP/2.0/UDP 0.0.0.0;branch=z9hG4bK2a77.07f36206.0 > > Via: SIP/2.0/UDP 0.0.0.0:5060;branch=z9hG4bK7495b309;rport=5060 > > From: "+14109972688" <sip:+14109972...@blah.com>;tag=as11488f8f > > To: <sip:1177000...@dialer201.blah.com:5060> > > Contact: <sip:+14109972688@0.0.0.0> > > Call-ID: 629cb67912fd16af758e6e7e67e89...@cf-dialer.com > > CSeq: 102 INVITE > > User-Agent: Asterisk PBX > > Max-Forwards: 16 > > Date: Wed, 14 Aug 2013 23:27:17 GMT > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO > > Supported: replaces > > Content-Type: application/sdp > > Content-Length: 242 > > Route: <sip:1177000...@dialer201.blah:5060> > > > > > > > > _______________________________________________ > > 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 > > > > > > -- > Carsten Bock > CEO (Geschäftsführer) > > ng-voice GmbH > Schomburgstr. 80 > D-22767 Hamburg / Germany > > http://www.ng-voice.com > mailto:cars...@ng-voice.com > > Office +49 40 34927219 > Fax +49 40 34927220 > > Sitz der Gesellschaft: Hamburg > Registergericht: Amtsgericht Hamburg, HRB 120189 > Geschäftsführer: Carsten Bock > Ust-ID: DE279344284 > > Hier finden Sie unsere handelsrechtlichen Pflichtangaben: > http://www.ng-voice.com/imprint/ > > _______________________________________________ > 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 >
_______________________________________________ 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