Hello Alvaro,
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 sip.xml,
which must be located in the WEB-INF directory inside your .sar archive.
take a look at one of the applications provided with WeSIP, like
ringtone or click2call.
you'r sip.xml will say something like this:
<servlet-mapping>
<!-- SipServlet name -->
<servlet-name>your_servlet_name</servlet-name>
<!--
Condition: The Request received must be a MESSAGE
-->
<pattern>
<equal>
<var>request.method</var>
<value>MESSAGE</value>
</equal>
</pattern>
</servlet-mapping>
hope this helps..
elias
El 13/11/2007, a las 12:00, Alvaro Mari Diego escribió:
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@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@amd-openims.test from a client logged as
alice(a)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@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@amd-openims.test SIP/2.0
Route:
<sip:138.4.7.163:5080;lr=on>,<sip:iscmark@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@amd-openims.test>
From: "alice" <sip:alice@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@amd-openims.test>
From: "alice" <sip:alice@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@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
<HelloWorldIssue.zip>_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users