<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> <servlet-mapping></div><div> <!-- SipServlet name --></div><div> <servlet-name>your_servlet_name</servlet-name></div><div> <!--</div><div> Condition: The Request received must be a MESSAGE</div><div> --></div><div> <pattern></div><div> <equal></div><div> <var>request.method</var></div><div> <value>MESSAGE</value></div><div> </equal></div><div> </pattern></div><div> </servlet-mapping></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 [SeasRouter] - New message received, from<br>138.4.7.163:6060 to 138.4.7.163:5080 over UDP<br>SeasTransactionEvent [SeasRouter] - hash_index = 54974,label=620758046<br>flags=0<br>ExpressMessageChannel [ExpressMChannel[0]] - peerAddress =<br>138.4.7.163/6060<br>ExpressMessageChannel [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 [ExpressMChannel[0]] - createProcessor: Reusing existing<br>processor<br>SipProcessor [ExpressMChannel[0]] - An incoming message is being<br>assigned<br>SipProcessor [SipProcessor[4]] - <<<<<<<<< Request Received <<<<<<<<<<br>MESSAGE sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a> SIP/2.0<br>Route:<br><sip:138.4.7.163:5080;lr=on>,<sip:<a href="mailto:iscmark@scscf.amd-openims.test">iscmark@scscf.amd-openims.test</a>:6060;lr=on;s=1;h=0;d=0><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" <sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a>><br>From: "alice" <sip:<a href="mailto:alice@amd-openims.test">alice@amd-openims.test</a>>;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 [SipProcessor[4]] - Inserting hashIdx:54974<br>label:620758046 into hashTable<br>SipProcessor [SipProcessor[4]] - Transaction [z9hG4bKeb6d.ff7360e1.0]<br>is new Transaction?? --> true<br>EngineSipMapper [SipProcessor[4]] - Request from 138.4.7.163<br>mapped to: ConvergedEngine[WeSIP_engine].StandardHttpHost[localhost]<br>ConvergedEngineValve [SipProcessor[4]] - Invoking Host:localhost<br>ConvergedHostValve [SipProcessor[4]] - SipSession not found for<br>requestMESSAGE, trying match against Rules<br>ConvergedHostValve [SipProcessor[4]] - No servlet-mapping matched<br>this Request.<br>SipResponse [SipProcessor[4]] - >>>>>>>>> Sending Response >>>>>>>>><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" <sip:<a href="mailto:greetings@amd-openims.test">greetings@amd-openims.test</a>><br>From: "alice" <sip:<a href="mailto:alice@amd-openims.test">alice@amd-openims.test</a>>;tag=737cbe08<br>Call-ID: Y2FiYmY0MmM2NjFhYzU5NWUzNTE2MmM5MWY2ZjdhMGI.<br>CSeq: 2 MESSAGE<br>Content-Length: 0<br><br><br>LingerList [SipProcessor[4]] - scheduled transaction<br>z9hG4bKeb6d.ff7360e1.0 for deletion<br>ExpressMessageChannel [SipProcessor[4]] - sending with spiral=false<br>SipConnector [SipProcessor[4]] - recycle: Recycling processor<br>SipProcessor[4]<br>ActionRouter$ActionSender [ActionSender] - Writing 509 bytes into<br>Action Socket<br>SeasHashTable [ExpressMChannel[0]] - Removing hashIdx:54974<br>label:620758046 from hashTable<br>SeasHashTable [ExpressMChannel[0]] - Transaction with<br>id:z9hG4bKeb6d.ff7360e1.0, hash_idx:54974, label:620758046 removed from<br>the Seas Hash Table<br>ExpressMessageChannel [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 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><HelloWorldIssue.zip></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>