Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 52173 invoked from network); 2 Feb 2009 16:36:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 16:36:11 -0000 Received: (qmail 24325 invoked by uid 500); 2 Feb 2009 16:36:08 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 24268 invoked by uid 500); 2 Feb 2009 16:36:08 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 24257 invoked by uid 99); 2 Feb 2009 16:36:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 08:36:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rahul.akolkar@gmail.com designates 74.125.92.144 as permitted sender) Received: from [74.125.92.144] (HELO qw-out-1920.google.com) (74.125.92.144) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 16:36:02 +0000 Received: by qw-out-1920.google.com with SMTP id 4so736890qwk.60 for ; Mon, 02 Feb 2009 08:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9zk2Q85CqNUWpo/4IwWCBgg0eHxvt3mPHM4tKjbGHK4=; b=HSJE1z0Ho6VuwGca2TRKhBRHqGz1lvsRdEo8x7D/Xa46xarDbj4Zz8mYJenCeZehAg dVgnqf9uRpawQ2XGZdwvjBAzUqhwlK387PHo+UhVpFykOCWU9V/bly5qF3sRIqN4HHr3 g0+Ox0tFwjxB+CDIIPhG0MmfTZPF2ZaojZ3a0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Adi2beXcfffUyEhYB/dScSvRFh0XB1SS2FUhMJree5B4iiDB7U3nqyIxytwRSqd+Zg oBbXP2H0EZiPNV83D3UEiuXKcyABYJyECYDTNeKA0XOSz7yoHxFozlK1PUSOPg8FgvQ+ eKI8EPGJyVLIBMgHnW999460rp2bGMJVqyCvc= MIME-Version: 1.0 Received: by 10.229.82.81 with SMTP id a17mr1666273qcl.107.1233592541058; Mon, 02 Feb 2009 08:35:41 -0800 (PST) In-Reply-To: References: <4986F795.9010808@it20one.at> Date: Mon, 2 Feb 2009 11:35:41 -0500 Message-ID: Subject: Re: Need some guidance in making a SIP application using commons-SCXML From: Rahul Akolkar To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I've responded below, but if there are subsequent posts, please continue this discussion on the user list, which suits this topic better. If you change the email subject, please prefix with [SCXML]. With respect to SIP and SCXML, I'm aware there have been integration efforts, though there isn't any code I can point you to. As a brief conceptual example, see slides 20 and 21 from this WWW07 presentation: http://www.w3.org/2007/Talks/www2007-SCXML.pdf More inline ... On Mon, Feb 2, 2009 at 10:42 AM, Saurabh Agarwal wrote: > Thanks Siegfried , > Yes I am aware that in Sip Servlet spec SIP messgages are treated as Java > Classes etc . > > What I intended to ask that how can I use Commons-SCXML with SIP , Actually > this is waht i want to do . > > 1. I want to make a SIP application server that will recieve some SIP > messages ( INVITE , REFER etc ) and do some processing etc on it like check > some headers , fork SIP messages etc . > > I want to do this with the help of Sailfin and SIP Servelts . > > 2. Now what I want now is also use SCXML as my state machine may change very > dynamically as per client requirments so I want to use SCXML so that we dont > have to go on changing code frequenly and can concentrate on buisness logic. > Sounds similar to the example I point out above. > Can anybody help me the following: > > 1. How can I integrate SIP servlet ( running inside sailfin ) with > commons-scxml. There isn't anything special about sailfin in the client environment for Commons SCXML sense. > 2. How can I pass the SIP message to the state machine defined in SCXML and > is it possible to easily modify headers in it . > The basic idea in most use cases is to convert incoming requests or messages (here, SIP related) to events that get fired on the state machine. The state machine context needs to be populated with all the information needed for the state machine to make the necessary transitions and thereby, execute the necessary actions (the context can be programmatically populated, or payloads can be attached to events as might make sense for a particular usecase). Client specific interactions (clients of Commons SCXML) are carried out with custom actions or using the external communications module. I'd say give the SCXML spec a quick read if you haven't already. Then check out the Commons SCXML user guide [1], particularly the items on contexts [2], event payloads [3] and custom actions [4]. -Rahul [1] http://commons.apache.org/scxml/guide.html [2] http://commons.apache.org/scxml/guide/contexts-evaluators.html [3] http://commons.apache.org/scxml/guide/core-events.html [4] http://commons.apache.org/scxml/guide/custom-actions.html > > Any help is highly appreciated . > > Thanks > Saurabh > > On Mon, Feb 2, 2009 at 7:09 PM, Siegfried Goeschl < > siegfried.goeschl@it20one.at> wrote: > >> Hi, >> >> I don't know SCXML but worked with SIP >> >> +) a SIP message is not a ASCII message but a Java data structure very >> similiar to ServletRequest and ServletResponce (afaik SipServletRequest >> and SipServletResponse) >> +) depending on your requirements you have to parse the SDP's >> >> Cheers >> >> Siegfried Goeschl >> >> >> Saurabh Agarwal wrote: >> > Hi All, >> > >> > I am new to commons-SCXML and I am trying to make SIP application using >> > sailfin ( Leveraging SIP Servlets ). >> > >> > I came across SCXML and thought it can be of great use , As far as I had >> > understood I can write the state machines iusing scxml and dont have >> > to write much java code except some helper functions. >> > >> > I have couple of questions which I am not able to understand yet : >> > >> > 1. How to integrate SIP Servlet and Commons-scxml ( I tried to understand >> > shale but unable to do so ). >> > 2. Can Commons-scxml parse and do some logic on a SIP message ( Ascii >> messge >> > ) and give me results. >> > >> > Any pointers are highly appreciated. >> > >> > Please help >> > >> > Thanks >> > Saurabh Agarwal >> > >> > > > > -- > > "Successful people make more mistakes because they do more " > Thanks > Saurabh Agarwal > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org