Hi,<br><br>I have testing openser 1.2.0 with seas module and wesip. <br><br><span style="font-family: monospace;">If I send an INVITE message with
a Route header, the SIP servlet receives the INVITE with the full Route
Header, and when I proxy it the Route is the same, but I expected that
the top most Route header has been removed. Who is in charge to do it?
openser or wesip? I first thought it might be openser through
loose_route(), but it seems not to be the case. <br></span><br>The openser cfg file is similar to the example given in wesip tutorial:<br><br><span style="font-family: monospace;">route{<br> if (!mf_process_maxfwd_header("10")) {
<br> sl_send_reply("483","Too Many Hops");<br> exit;<br> };<br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");
<br> exit;<br> };<br><br> xlog("L_INFO", "$rm: ci=$ci ft=$ft tt=$tt cseq=$cs ruri:$ru received from: $si:$sp \n");<br><br> if (!method=="REGISTER")<br> record_route();
<br><br> if (loose_route()) {<br> xlog("L_INFO", "RR enforced\n");<br> append_hf("P-hint: rr-enforced\r\n");<br> route(1);<br> };<br><br> if (uri==myself) {
<br> xlog("L_INFO", "uri == myself");<br> if (method=="REGISTER") {<br> save("location");<br> exit;<br> };
<br> lookup("aliases");<br> if (!uri==myself) {<br> xlog("L_INFO", "outbound alias\n");<br> append_hf("P-hint: outbound alias\r\n");
<br> route(1);<br> };<br> if (!lookup("location")) {<br> sl_send_reply("404", "Not Found");<br> exit;
<br> };<br> xlog("L_INFO", "usrloc applied\n");<br> append_hf("P-hint: usrloc applied\r\n");<br> };<br> route(1);<br>}<br><br>route[1] {<br>
if(!as_relay_t("app_server_one")){<br> t_reply("500","Application Server error");<br> }<br>}<br><br>route[2] {<br> xlog ("L_INFO", "$rm: cseq:$cs $ru: RELAYING (PROXY) to $du (flags: $mF) ...\n");
<br> if (!t_relay()) {<br> sl_reply_error();<br> };<br> exit;<br><br>}<br><br>This the log from wesip:<br><br>14:43:37 27abr2007 DEBUG SeasMessageEvent [SeasRouter]- New message received, from <a href="http://10.161.14.10:6025">
10.161.14.10:6025</a> to <a href="http://10.161.14.10:7000">10.161.14.10:7000</a> over UDP<br>14:43:37 27abr2007 DEBUG SeasTransactionEvent [SeasRouter]- hash_index = 60870,label=1842040723 flags=0<br>14:43:37 27abr2007 DEBUG ExpressMessageChannel [ExpressMChannel[76]]- peerAddress =
<a href="http://10.161.14.10/6025">10.161.14.10/6025</a><br>14:43:37 27abr2007 DEBUG ExpressMessageChannel [ExpressMChannel[76]]- About to process INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> SIP/2.0<br>
14:43:37 27abr2007 DEBUG SipConnector [ExpressMChannel[76]]- createProcessor: Reusing existing processor<br>14:43:37 27abr2007 INFO SipProcessor [ExpressMChannel[76]]- An incoming message is being assigned<br>14:43:37 27abr2007 DEBUG ExpressMessageChannel [ExpressMChannel[76]]- Done processing INVITE
<a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> SIP/2.0<br>14:43:37 27abr2007 DEBUG SipProcessor [SipProcessor[3]]- <<<<<<<<< Request Received <<<<<<<<<<br>
INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> SIP/2.0
<br>Via: SIP/2.0/UDP <a href="http://10.161.14.10:6025">10.161.14.10:6025</a>;branch=<a href="mailto:z9hG4bK1-13972359389@10.161.14.101">z9hG4bK1-13972359389@10.161.14.101</a>
<br>Contact: <sip:<a href="http://10.161.14.10:6025">10.161.14.10:6025</a>;transport=UDP>
<br>Max-Forwards: 14
<br>From: <<a href="mailto:sip:user1@mot.net">sip:user1@mot.net</a>>;tag=6661
<br>To: <<a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a>>
<br>Supported: 100rel
<br>Route: <sip:<a href="http://10.161.14.10:7000">10.161.14.10:7000</a>;lr=on>,<sip:<a href="http://10.161.14.10:6025">10.161.14.10:6025</a>;lr=on>
<br>Call-ID: <a href="mailto:1-13972359389@10.161.14.10">1-13972359389@10.161.14.10</a>
<br>CSeq: 1 INVITE
<br>Allow: INVITE,CANCEL,ACK,BYE,UPDATE,MESSAGE,PRACK,REFER
<br>Content-Type: application/sdp
<br>Content-Length: 337
<br> <br><br>14:43:37 27abr2007 DEBUG SeasHashTable [SipProcessor[3]]- Inserting hashIdx:60870 label:1842040723 into hashTable<br>14:43:37 27abr2007 DEBUG SipProcessor [SipProcessor[3]]- Transaction [<a href="mailto:z9hG4bK1-13972359389@10.161.14.101">
z9hG4bK1-13972359389@10.161.14.101</a>] is new Transaction?? --> true<br>14:43:37 27abr2007 DEBUG EngineSipMapper [SipProcessor[3]]- Request from <a href="http://10.161.14.10">10.161.14.10</a> mapped to: ConvergedEngine[Standalone].StandardHttpHost[localhost]
<br>14:43:37 27abr2007 DEBUG ConvergedEngineValve [SipProcessor[3]]- Invoking Host:localhost<br>14:43:37 27abr2007 DEBUG ConvergedHostValve [SipProcessor[3]]- SipSession not found for requestINVITE, trying match against Rules
<br>14:43:37 27abr2007 DEBUG ConvergedHost [SipProcessor[3]]- Mapped request to:/sampleservlet<br>14:43:37 27abr2007 DEBUG ConvergedContextValve [SipProcessor[3]]- new session created :<a href="mailto:1-13972359389@10.161.14.10">
1-13972359389@10.161.14.10</a><br>14:43:37 27abr2007 INFO ExpressMessageChannel [SipProcessor[3]]- Creating Express message channel <a href="http://10.161.14.10/7000">10.161.14.10/7000</a><br>14:43:37 27abr2007 DEBUG ExpressMessageChannel [SipProcessor[3]]- setting spiral=false
<br>14:43:37 27abr2007 DEBUG SipRequest [SipProcessor[3]]- >>>>>>>>> Sending Request >>>>>>>>> <br> INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> SIP/2.0
<br>Max-Forwards: 14
<br>From: <<a href="mailto:sip:user1@mot.net">sip:user1@mot.net</a>>;tag=83FBA2EBC5A9EE4615D194DECA1EE955
<br>To: <<a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a>>
<br>Supported: 100rel
<br>Route: <sip:<a href="http://10.161.14.10:7000">10.161.14.10:7000</a>;lr=on>,<sip:<a href="http://10.161.14.10:6025">10.161.14.10:6025</a>;lr=on>
<br>CSeq: 1 INVITE
<br>Allow: INVITE,CANCEL,ACK,BYE,UPDATE,MESSAGE,PRACK,REFER
<br>Content-Type: application/sdp
<br>Call-ID: <a href="mailto:1-13972359389@10.161.14.10">1-13972359389@10.161.14.10</a>
<br>Contact: <sip:<a href="http://10.161.14.10:7000">10.161.14.10:7000</a>;transport=udp>
<br>P-AS-Hint: B2BUA
<br>Via: SIP/2.0/UDP <a href="http://10.161.14.10:7000">10.161.14.10:7000</a>;branch=z9hG4bK2137041384
<br>Content-Length: 337
<br> <br><br><br><br>Thanks in advance<br></span>