[OpenSER-Users] Newbie issue: Cannot exec HelloWorldServlet on WeSIP

Alvaro Mari Diego amdiego at dit.upm.es
Tue Nov 13 12:00:31 CET 2007


Hi everyone,

I'm new to WeSIP, so I've got stuck pretty fast, as expected :)

I got WeSIP running on OpenSER 1.2.0. I'm trying to run a HelloWorld sip
servlet to test WeSIP, which responses a 200 OK and a MESSAGE request
saying "Hello, World", to any incoming request to a
sip:greetings at amd-openims.test URI. I mounted my sar file, and installed
it in wesip webapps with the web manager application, and got WeSIP
properly connected to OpenSER' seas. Openser is configured to route any
MESSAGE request to WeSIP AS. But when I try to send a message to
sip:greetings at amd-openims.test from a client logged as
alice at amd-openims.test, WeSIP console displays this:

********************************************************************

SeasMessageEvent         [SeasRouter] - New message received, from
138.4.7.163:6060 to 138.4.7.163:5080 over UDP
SeasTransactionEvent     [SeasRouter] - hash_index = 54974,label=620758046
flags=0
ExpressMessageChannel    [ExpressMChannel[0]] - peerAddress =
138.4.7.163/6060
ExpressMessageChannel    [ExpressMChannel[0]] - About to process MESSAGE
sip:greetings at amd-openims.test SIP/2.0
SipConnector     [ExpressMChannel[0]] - createProcessor: Reusing existing
processor
SipProcessor     [ExpressMChannel[0]] -  An incoming message is being
assigned
SipProcessor     [SipProcessor[4]] -  <<<<<<<<< Request Received <<<<<<<<<
MESSAGE sip:greetings at amd-openims.test SIP/2.0
Route:
<sip:138.4.7.163:5080;lr=on>,<sip:iscmark at scscf.amd-openims.test:6060;lr=on;s=1;h=0;d=0>
Via: SIP/2.0/UDP
138.4.7.163:6060;branch=z9hG4bKeb6d.ff7360e1.0,SIP/2.0/UDP
138.4.7.163:4060;branch=z9hG4bKeb6d.000ef08.0,SIP/2.0/UDP
138.4.7.149:63926;branch=z9hG4bK-d87543-b370c6252d6ad226-1--d87543-;rport=63926
Max-Forwards: 14
To: "Servicio HelloWorld" <sip:greetings at amd-openims.test>
From: "alice" <sip:alice at amd-openims.test>;tag=737cbe08
Call-ID: Y2FiYmY0MmM2NjFhYzU5NWUzNTE2MmM5MWY2ZjdhMGI.
CSeq: 2 MESSAGE
Allow: INVITE,CANCEL,ACK,BYE,INFO,OPTIONS,MESSAGE,SUBSCRIBE,NOTIFY,REFER
Content-Type: application/unknown?
User-Agent: X-Lite release 1011s stamp 41150
P-Charging-Vector:
icid-value="P-CSCFabcd4739818c00000007";icid-generated-at=138.4.7.163;orig-ioi="amd-openims.test"
Content-Length: 262


SeasHashTable    [SipProcessor[4]] - Inserting hashIdx:54974
label:620758046 into hashTable
SipProcessor     [SipProcessor[4]] - Transaction [z9hG4bKeb6d.ff7360e1.0]
is new Transaction?? --> true
EngineSipMapper          [SipProcessor[4]] - Request from 138.4.7.163
mapped to: ConvergedEngine[WeSIP_engine].StandardHttpHost[localhost]
ConvergedEngineValve     [SipProcessor[4]] - Invoking Host:localhost
ConvergedHostValve       [SipProcessor[4]] - SipSession not found for
requestMESSAGE, trying match against Rules
ConvergedHostValve       [SipProcessor[4]] - No servlet-mapping matched
this Request.
SipResponse      [SipProcessor[4]] -  >>>>>>>>> Sending Response >>>>>>>>>
SIP/2.0 481 Call Leg/Transaction Does Not Exist
Via: SIP/2.0/UDP
138.4.7.163:6060;branch=z9hG4bKeb6d.ff7360e1.0,SIP/2.0/UDP
138.4.7.163:4060;branch=z9hG4bKeb6d.000ef08.0,SIP/2.0/UDP
138.4.7.149:63926;branch=z9hG4bK-d87543-b370c6252d6ad226-1--d87543-;rport=63926
Max-Forwards: 14
To: "Servicio HelloWorld" <sip:greetings at amd-openims.test>
From: "alice" <sip:alice at amd-openims.test>;tag=737cbe08
Call-ID: Y2FiYmY0MmM2NjFhYzU5NWUzNTE2MmM5MWY2ZjdhMGI.
CSeq: 2 MESSAGE
Content-Length: 0


LingerList       [SipProcessor[4]] - scheduled transaction
z9hG4bKeb6d.ff7360e1.0 for deletion
ExpressMessageChannel    [SipProcessor[4]] - sending with spiral=false
SipConnector     [SipProcessor[4]] - recycle: Recycling processor
SipProcessor[4]
ActionRouter$ActionSender        [ActionSender] - Writing 509 bytes into
Action Socket
SeasHashTable    [ExpressMChannel[0]] - Removing hashIdx:54974
label:620758046 from hashTable
SeasHashTable    [ExpressMChannel[0]] - Transaction with
id:z9hG4bKeb6d.ff7360e1.0, hash_idx:54974, label:620758046 removed from
the Seas Hash Table
ExpressMessageChannel    [ExpressMChannel[0]] - Done processing MESSAGE
sip:greetings at amd-openims.test SIP/2.0

********************************************************************


And, as I feared, got a 481  response in my client.

I don't know what I'm doing wrong. I wonder it could be a misconfiguration
in the WeSIP server.xml, or maybe something wrong in my servlet.

I attach you in a zip my HelloWorld Servlet, openser.cfg file, and wesip
server.xml file.

Thanks in advance,

Cheers,

-- 
Alvaro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorldIssue.zip
Type: application/zip
Size: 10012 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20071113/9bca6038/attachment.zip>


More information about the sr-users mailing list