Hello,<br><br>This is not happening when the request is redirected to wesip, using:<br><br><span style="font-family: monospace;">route[1] {<br>
if(!as_relay_t("app_server_one")){<br> t_reply("500","Application Server error");<br> }<br>}</span><br><br>The request printed in the wesip debug logs have the route. <br><br>But if I don't redirect the request to wesip and use the following:
<br><span style="font-family: monospace;"><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>I see that openser removes the top most Route header.<br><br>Am I doing something wrong?<br><br>Thanks<br></span><br><div><span class="gmail_quote">
On 4/27/07, <b class="gmail_sendername">Daniel-Constantin Mierla</b> <<a href="mailto:daniel@voice-system.ro">daniel@voice-system.ro</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>openser via loose_route() will remove top most Route header if it is<br>added by the proxy (matches local IP addresses and aliases).<br><br>Cheers,<br>Daniel<br><br><br>On 04/27/07 15:54, Jose Antonio Garvayo wrote:
<br>> Hi,<br>><br>> I have testing openser 1.2.0 with seas module and wesip.<br>><br>> If I send an INVITE message with a Route header, the SIP servlet<br>> receives the INVITE with the full Route Header, and when I proxy it
<br>> the Route is the same, but I expected that the top most Route header<br>> has been removed. Who is in charge to do it? openser or wesip? I first<br>> thought it might be openser through loose_route(), but it seems not to
<br>> be the case.<br>><br>> The openser cfg file is similar to the example given in wesip tutorial:<br>><br>> 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<br>> 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<br>> (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<br>> received, from <a href="http://10.161.14.10:6025">
10.161.14.10:6025</a> <<a href="http://10.161.14.10:6025">http://10.161.14.10:6025</a>> to<br>> <a href="http://10.161.14.10:7000">10.161.14.10:7000</a> <<a href="http://10.161.14.10:7000">http://10.161.14.10:7000
</a>> over UDP<br>> 14:43:37 27abr2007 DEBUG SeasTransactionEvent [SeasRouter]-<br>> hash_index = 60870,label=1842040723 flags=0<br>> 14:43:37 27abr2007 DEBUG ExpressMessageChannel [ExpressMChannel[76]]-<br>
> peerAddress = <a href="http://10.161.14.10/6025">10.161.14.10/6025</a> <<a href="http://10.161.14.10/6025">http://10.161.14.10/6025</a>><br>> 14:43:37 27abr2007 DEBUG ExpressMessageChannel [ExpressMChannel[76]]-
<br>> About to process INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user2@mot.net">user2@mot.net</a>><br>> SIP/2.0<br>> 14:43:37 27abr2007 DEBUG SipConnector [ExpressMChannel[76]]-
<br>> createProcessor: Reusing existing processor<br>> 14:43:37 27abr2007 INFO SipProcessor [ExpressMChannel[76]]- An<br>> incoming message is being assigned<br>> 14:43:37 27abr2007 DEBUG ExpressMessageChannel [ExpressMChannel[76]]-
<br>> Done processing INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user2@mot.net">user2@mot.net</a>><br>> SIP/2.0<br>> 14:43:37 27abr2007 DEBUG SipProcessor [SipProcessor[3]]- <<<<<<<<<
<br>> Request Received <<<<<<<<<<br>> INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user2@mot.net">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><br>> <<a href="http://10.161.14.10:6025">http://10.161.14.10:6025</a>>;branch=<a href="mailto:z9hG4bK1-13972359389@10.161.14.101">
z9hG4bK1-13972359389@10.161.14.101</a><br>> <mailto:<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> <<a href="http://10.161.14.10:6025">http://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> <mailto:<a href="mailto:sip">
sip</a>:<a href="mailto:user1@mot.net">user1@mot.net</a>>>;tag=6661<br>> To: <<a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user2@mot.net">user2@mot.net
</a>>><br>> Supported: 100rel<br>> Route: <sip:<a href="http://10.161.14.10:7000">10.161.14.10:7000</a><br>> <<a href="http://10.161.14.10:7000">http://10.161.14.10:7000</a>>;lr=on>,<sip:<a href="http://10.161.14.10:6025">
10.161.14.10:6025</a><br>> <<a href="http://10.161.14.10:6025">http://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> <mailto:<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
<br>> hashIdx:60870 label:1842040723 into hashTable<br>> 14:43:37 27abr2007 DEBUG SipProcessor [SipProcessor[3]]- Transaction<br>> [ <a href="mailto:z9hG4bK1-13972359389@10.161.14.101">z9hG4bK1-13972359389@10.161.14.101
</a><br>> <mailto:<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
<br>> from <a href="http://10.161.14.10">10.161.14.10</a> <<a href="http://10.161.14.10">http://10.161.14.10</a>> mapped to:<br>> ConvergedEngine[Standalone].StandardHttpHost[localhost]<br>> 14:43:37 27abr2007 DEBUG ConvergedEngineValve [SipProcessor[3]]-
<br>> Invoking Host:localhost<br>> 14:43:37 27abr2007 DEBUG ConvergedHostValve [SipProcessor[3]]-<br>> SipSession not found for requestINVITE, trying match against Rules<br>> 14:43:37 27abr2007 DEBUG ConvergedHost [SipProcessor[3]]- Mapped
<br>> request to:/sampleservlet<br>> 14:43:37 27abr2007 DEBUG ConvergedContextValve [SipProcessor[3]]- new<br>> session created : <a href="mailto:1-13972359389@10.161.14.10">1-13972359389@10.161.14.10</a><br>> <mailto:
<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]]-<br>> Creating Express message channel <a href="http://10.161.14.10/7000">
10.161.14.10/7000</a><br>> <<a href="http://10.161.14.10/7000">http://10.161.14.10/7000</a>><br>> 14:43:37 27abr2007 DEBUG ExpressMessageChannel [SipProcessor[3]]-<br>> setting spiral=false<br>> 14:43:37 27abr2007 DEBUG SipRequest [SipProcessor[3]]- >>>>>>>>>
<br>> Sending Request >>>>>>>>><br>> INVITE <a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user2@mot.net">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><br>> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user1@mot.net">user1@mot.net</a>>>;tag=83FBA2EBC5A9EE4615D194DECA1EE955
<br>> To: <<a href="mailto:sip:user2@mot.net">sip:user2@mot.net</a> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:user2@mot.net">user2@mot.net</a>>><br>> Supported: 100rel<br>> Route: <sip:<a href="http://10.161.14.10:7000">
10.161.14.10:7000</a><br>> <<a href="http://10.161.14.10:7000">http://10.161.14.10:7000</a>>;lr=on>,<sip:<a href="http://10.161.14.10:6025">10.161.14.10:6025</a><br>> <<a href="http://10.161.14.10:6025">
http://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> <mailto:<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> <<a href="http://10.161.14.10:7000">
http://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><br>> <<a href="http://10.161.14.10:7000">http://10.161.14.10:7000
</a>>;branch=z9hG4bK2137041384<br>> Content-Length: 337<br>><br>><br>><br>><br>> Thanks in advance<br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Users mailing list<br>> <a href="mailto:Users@openser.org">Users@openser.org</a><br>> <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>>
<br></blockquote></div><br>