<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello Alvaro,</div><div><br class="webkit-block-placeholder"></div><div>In order to get your SIP messages from OpenSER into your application, you need to configure 2 pieces: openser.cfg (config-script, which you have successfully configured) and also you'r sipservlet's <b>sip.xml</b>, which must be located in the WEB-INF directory inside your .sar archive.</div><div><br></div><div>take a look at one of the applications provided with WeSIP, like ringtone or click2call.</div><div><br class="webkit-block-placeholder"></div><div>you'r sip.xml will say something like this:</div><div><br class="webkit-block-placeholder"></div><div><div>&nbsp;&nbsp; &nbsp;&lt;servlet-mapping&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!-- SipServlet name --&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;servlet-name&gt;your_servlet_name&lt;/servlet-name&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Condition: The Request received must be a MESSAGE</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;pattern&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;equal&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;var&gt;request.method&lt;/var&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;value&gt;MESSAGE&lt;/value&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/equal&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/pattern&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/servlet-mapping&gt;</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>hope this helps..</div><div><br class="webkit-block-placeholder"></div><div>elias</div></div><br><div><div>El 13/11/2007, a las 12:00, Alvaro Mari Diego escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi everyone,<br><br>I'm new to WeSIP, so I've got stuck pretty fast, as expected :)<br><br>I got WeSIP running on OpenSER 1.2.0. I'm trying to run a HelloWorld sip<br>servlet to test WeSIP, which responses a 200 OK and a MESSAGE request<br>saying "Hello, World", to any incoming request to a<br>sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a> URI. I mounted my sar file, and installed<br>it in wesip webapps with the web manager application, and got WeSIP<br>properly connected to OpenSER' seas. Openser is configured to route any<br>MESSAGE request to WeSIP AS. But when I try to send a message to<br>sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a> from a client logged as<br><a href="mailto:alice@amd-openims.test">alice@amd-openims.test</a>, WeSIP console displays this:<br><br>********************************************************************<br><br>SeasMessageEvent &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SeasRouter] - New message received, from<br>138.4.7.163:6060 to 138.4.7.163:5080 over UDP<br>SeasTransactionEvent &nbsp;&nbsp;&nbsp;&nbsp;[SeasRouter] - hash_index = 54974,label=620758046<br>flags=0<br>ExpressMessageChannel &nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - peerAddress =<br>138.4.7.163/6060<br>ExpressMessageChannel &nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - About to process MESSAGE<br>sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a> SIP/2.0<br>SipConnector &nbsp;&nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - createProcessor: Reusing existing<br>processor<br>SipProcessor &nbsp;&nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - &nbsp;An incoming message is being<br>assigned<br>SipProcessor &nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - &nbsp;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; Request Received &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>MESSAGE sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a> SIP/2.0<br>Route:<br>&lt;sip:138.4.7.163:5080;lr=on&gt;,&lt;sip:<a href="mailto:iscmark@scscf.amd-openims.test">iscmark@scscf.amd-openims.test</a>:6060;lr=on;s=1;h=0;d=0&gt;<br>Via: SIP/2.0/UDP<br>138.4.7.163:6060;branch=z9hG4bKeb6d.ff7360e1.0,SIP/2.0/UDP<br>138.4.7.163:4060;branch=z9hG4bKeb6d.000ef08.0,SIP/2.0/UDP<br>138.4.7.149:63926;branch=z9hG4bK-d87543-b370c6252d6ad226-1--d87543-;rport=63926<br>Max-Forwards: 14<br>To: "Servicio HelloWorld" &lt;sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a>&gt;<br>From: "alice" &lt;sip:<a href="mailto:alice@amd-openims.test">alice@amd-openims.test</a>&gt;;tag=737cbe08<br>Call-ID: Y2FiYmY0MmM2NjFhYzU5NWUzNTE2MmM5MWY2ZjdhMGI.<br>CSeq: 2 MESSAGE<br>Allow: INVITE,CANCEL,ACK,BYE,INFO,OPTIONS,MESSAGE,SUBSCRIBE,NOTIFY,REFER<br>Content-Type: application/unknown?<br>User-Agent: X-Lite release 1011s stamp 41150<br>P-Charging-Vector:<br>icid-value="P-CSCFabcd4739818c00000007";icid-generated-at=138.4.7.163;orig-ioi="amd-openims.test"<br>Content-Length: 262<br><br><br>SeasHashTable &nbsp;&nbsp;&nbsp;[SipProcessor[4]] - Inserting hashIdx:54974<br>label:620758046 into hashTable<br>SipProcessor &nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - Transaction [z9hG4bKeb6d.ff7360e1.0]<br>is new Transaction?? --&gt; true<br>EngineSipMapper &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - Request from 138.4.7.163<br>mapped to: ConvergedEngine[WeSIP_engine].StandardHttpHost[localhost]<br>ConvergedEngineValve &nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - Invoking Host:localhost<br>ConvergedHostValve &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - SipSession not found for<br>requestMESSAGE, trying match against Rules<br>ConvergedHostValve &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - No servlet-mapping matched<br>this Request.<br>SipResponse &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - &nbsp;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Sending Response &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>SIP/2.0 481 Call Leg/Transaction Does Not Exist<br>Via: SIP/2.0/UDP<br>138.4.7.163:6060;branch=z9hG4bKeb6d.ff7360e1.0,SIP/2.0/UDP<br>138.4.7.163:4060;branch=z9hG4bKeb6d.000ef08.0,SIP/2.0/UDP<br>138.4.7.149:63926;branch=z9hG4bK-d87543-b370c6252d6ad226-1--d87543-;rport=63926<br>Max-Forwards: 14<br>To: "Servicio HelloWorld" &lt;sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a>&gt;<br>From: "alice" &lt;sip:<a href="mailto:alice@amd-openims.test">alice@amd-openims.test</a>&gt;;tag=737cbe08<br>Call-ID: Y2FiYmY0MmM2NjFhYzU5NWUzNTE2MmM5MWY2ZjdhMGI.<br>CSeq: 2 MESSAGE<br>Content-Length: 0<br><br><br>LingerList &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - scheduled transaction<br>z9hG4bKeb6d.ff7360e1.0 for deletion<br>ExpressMessageChannel &nbsp;&nbsp;&nbsp;[SipProcessor[4]] - sending with spiral=false<br>SipConnector &nbsp;&nbsp;&nbsp;&nbsp;[SipProcessor[4]] - recycle: Recycling processor<br>SipProcessor[4]<br>ActionRouter$ActionSender &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ActionSender] - Writing 509 bytes into<br>Action Socket<br>SeasHashTable &nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - Removing hashIdx:54974<br>label:620758046 from hashTable<br>SeasHashTable &nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - Transaction with<br>id:z9hG4bKeb6d.ff7360e1.0, hash_idx:54974, label:620758046 removed from<br>the Seas Hash Table<br>ExpressMessageChannel &nbsp;&nbsp;&nbsp;[ExpressMChannel[0]] - Done processing MESSAGE<br>sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a> SIP/2.0<br><br>********************************************************************<br><br><br>And, as I feared, got a 481 &nbsp;response in my client.<br><br>I don't know what I'm doing wrong. I wonder it could be a misconfiguration<br>in the WeSIP server.xml, or maybe something wrong in my servlet.<br><br>I attach you in a zip my HelloWorld Servlet, openser.cfg file, and wesip<br>server.xml file.<br><br>Thanks in advance,<br><br>Cheers,<br><br>-- <br>Alvaro<span>&lt;HelloWorldIssue.zip&gt;</span>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>http://lists.openser.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></body></html>