Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 94054 invoked from network); 2 Feb 2009 17:50:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 17:50:48 -0000 Received: (qmail 69561 invoked by uid 500); 2 Feb 2009 17:50:44 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 69517 invoked by uid 500); 2 Feb 2009 17:50:44 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 69506 invoked by uid 99); 2 Feb 2009 17:50:44 -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 09:50:44 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jocke29@gmail.com designates 209.85.218.21 as permitted sender) Received: from [209.85.218.21] (HELO mail-bw0-f21.google.com) (209.85.218.21) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 17:50:37 +0000 Received: by bwz14 with SMTP id 14so622955bwz.18 for ; Mon, 02 Feb 2009 09:50:15 -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; bh=N9AVuXrVqeXPzZru7lzdMUOjOdknsUovFO1/WdtZm/M=; b=iTHr7IJjpt+W3kQN1PJ3oyUr5U+eerPqDUE5nkhXV4C+EXfZbYh8NSz7eSwxgzGudb 7sE7EQgbozP0sBDIb6iKG57VL55ClIKcmarLWyhTZagh9qW9RIYRcElMCTFuc4E0xnQy uw8iETuJ241Cjm+ZzbDm5CPogpqO+czzSOssM= 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; b=jZmPBHxJuXFkORYEuHIczb2k7zcR9ziquWpEFTIUwq7DNjvZIktPzhjdw3+3ORNvVC bBkgMyFow4GcWrzsPiD8ydmOKa8PHYn4qmJVUW+n+D8xmEDP99EskdGSwO79tkgiQ/T+ 0zVqnAR/Qe+1/tU1H4jze3EavurZd1EXcp4II= MIME-Version: 1.0 Received: by 10.181.216.14 with SMTP id t14mr1759576bkq.8.1233597015520; Mon, 02 Feb 2009 09:50:15 -0800 (PST) In-Reply-To: References: <4986F795.9010808@it20one.at> Date: Mon, 2 Feb 2009 18:50:15 +0100 Message-ID: Subject: Re: [SCXML ]Re: Need some guidance in making a SIP application using commons-SCXML From: jocke eriksson To: Commons Users List Content-Type: multipart/alternative; boundary=001636c59711e7f7120461f32f1e X-Virus-Checked: Checked by ClamAV on apache.org --001636c59711e7f7120461f32f1e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Well I have one implementation based on Sailfin and Commons SCXML and it works great. If you could be a bit more specific about what you want to do then pleas let me know and I will help. Our implementation is close to CCXML. Regards Jocke. 2009/2/2 Saurabh Agarwal > Thanks Rahul, > > Sorry for posting on dev list but I would request you to please end my > discussion on this list from any subsequent post I will use user list ,I > just dont want to loose context , Hope you will understand. > > > > I have one more simple question is anybody aware of any SCXML editors ( if > possible free or open source ) , Rahut are you aware wich software is used > in the slides you mailed me . > > Thanks & Regards > Saurabhj > > On Mon, Feb 2, 2009 at 10:05 PM, Rahul Akolkar >wrote: > > > 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 > > > > > > > -- > > "Successful people make more mistakes because they do more " > Thanks > Saurabh Agarwal > --001636c59711e7f7120461f32f1e--