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:[email protected]', 'sip:[email protected]', '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

--
Stefan Sayer
VoIP Services

[email protected]
www.iptego.com

IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to