I have been using mobicents regularly for a month now as I got to build an AS prototype for my company. Now I have to write a MSCML Resource Adapter to use within my application. I have been reading carefully to discussions about MGCP RA and the great RA tutorial from Maretzke.
However, I would like to know if my design is right for this RA. I will use the SIP stack with SipListener in my MSCMLResourceAdaptor.java and have a method to send MSCML Request message. This method will create an activity for this message. When I will receive the MSCML response message into a SIP INFO, I will retrieve this activity and deliver it on a new fired event.
Exemple: MSCML defines a PlayCollect to play a prompt and collect digits.
I will have something like mscmlra.sendPlayCollect("prompt.wav") in a part of my code.
RA will store an activity with a UniqueID in a HashMap.
Later, I got a SIP INFO with MSCML Response.
I parse it, create object, retrieve activity and fires to my SBB on a silver plate.
Do you think this is right?
Message was edited by: jplmelanson