[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sems
Subject:    Re: [Sems] DSM app Re: Problems trying to use click2dial +	xmlrpc2di
From:       Jerome Martin <jmartin () longphone ! fr>
Date:       2009-03-16 9:53:23
Message-ID: 1237197203.5091.2.camel () anice ! longphone ! fr
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Stephan,

Thanks for the improvement, I'll test this ASAP.

Cheers,
Jerome

On Fri, 2009-03-13 at 19:15 +0100, Stefan Sayer wrote:

> Hello,
> 
> o Stefan Sayer [03/13/09 16:12]:
> >> - Trigger from an external app the call to caller, leg A. I will do 
> >> this via xmlrpc.
> >>    Should I call auth_dial and pass it the dsm as target application, 
> >> or directly implement a dialout in my dsm app ?
> > I think it's fine to use dial_auth for DI interface. We should add a 
> > function that takes some dictionary as parameter, which then is fed into 
> > the variables of the dsm session. lets see...
> so this is implemented now with r1319: you can give the 'dial' and 
> 'dial_auth' functions from di_dial some extra parameters as dictionary 
> (string, string), which will be added to the variable array of the call.
> 
> so you could do:
> s.dial_auth('test_di_dial_params', '123', 'sip:35@192.168.5.106', 
> 'sip:5@192.168.5.106', 'realm','user','pwd',{'somevar':'someval'})
> 
> and have a transition like
>   transition "depends on call var" state1 - test($somevar==someval) -> 
> state2;
> 
> or use it as function parameter (e.g. log(1, $somevar), add it to 
> monitoring etc.
> 
> Stefan
> 


Jérôme Martin | LongPhone
Responsable Architecture Réseau
122, rue la Boetie | 75008 Paris 
Tel :  +33 (0)1 56 26 28 44
Fax : +33 (0)1 56 26 28 45
Mail : jmartin@longphone.fr
Web : www.longphone.com



[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
Hi Stephan,<BR>
<BR>
Thanks for the improvement, I'll test this ASAP.<BR>
<BR>
Cheers,<BR>
Jerome<BR>
<BR>
On Fri, 2009-03-13 at 19:15 +0100, Stefan Sayer wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,

o Stefan Sayer [03/13/09 16:12]:
&gt;&gt; - Trigger from an external app the call to caller, leg A. I will do 
&gt;&gt; this via xmlrpc.
&gt;&gt;    Should I call auth_dial and pass it the dsm as target application, 
&gt;&gt; or directly implement a dialout in my dsm app ?
&gt; I think it's fine to use dial_auth for DI interface. We should add a 
&gt; function that takes some dictionary as parameter, which then is fed into 
&gt; the variables of the dsm session. lets see...
so this is implemented now with r1319: you can give the 'dial' and 
'dial_auth' functions from di_dial some extra parameters as dictionary 
(string, string), which will be added to the variable array of the call.

so you could do:
s.dial_auth('test_di_dial_params', '123', '<A \
HREF="sip:35@192.168.5.106">sip:35@192.168.5.106</A>',  '<A \
HREF="sip:5@192.168.5.106">sip:5@192.168.5.106</A>', \
'realm','user','pwd',{'somevar':'someval'})

and have a transition like
  transition &quot;depends on call var&quot; state1 - test($somevar==someval) -&gt; 
state2;

or use it as function parameter (e.g. log(1, $somevar), add it to 
monitoring etc.

Stefan

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">J&#233;r&#244;me Martin \
</FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#bebebe">| \
</FONT></FONT></B><B><FONT SIZE="2"><FONT \
COLOR="#99cc00">LongPhone</FONT></FONT></B><BR> <B><FONT SIZE="2"><FONT \
COLOR="#808080">Responsable Architecture R&#233;seau</FONT></FONT></B><BR> <FONT \
SIZE="2"><FONT COLOR="#bebebe">122, rue la Boetie | 75008 Paris </FONT></FONT><BR> \
<FONT SIZE="2"><FONT COLOR="#bebebe">Tel :&nbsp; +33 (0)1 56 26 28 \
44</FONT></FONT><BR> <FONT SIZE="2"><FONT COLOR="#bebebe">Fax : +33 (0)1 56 26 28 \
45</FONT></FONT><BR> <FONT COLOR="#c0c0c0">Mail :</FONT><FONT COLOR="#99cc00"> \
</FONT><FONT COLOR="#99cc00"><B><FONT SIZE="2">jmartin</FONT></B></FONT><FONT \
SIZE="2"><FONT COLOR="#bebebe">@longphone.fr</FONT></FONT><BR> <FONT \
COLOR="#c0c0c0">Web :</FONT><FONT COLOR="#99cc00"> <A \
HREF="http://www.longphone.com">www.longphone.com</A></FONT><BR> <BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>



_______________________________________________
Sems mailing list
Sems@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/sems


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic