Hello,

o Derrick Bradbury on 01/06/2012 09:13 PM:
Ok.. moving forwards, have the basics of the outbound for my app
done...getting a better handle on things...

Now I'm trying to understand the DI command... and try something
simple, like calling the ECHO application.

I've tried
DI(EchoFactory, EchoDialog);
DI(echo, EchoDialog);
>
> But I'm not sure how to invoke it. Is there some clues in the source
> to find out what I need to call from the DI to invoke something? Or am
> I just on the wrong path completely?

it's not possible to hand over the active call from DSM to another application this way. the 'DI' action is only for calling internal APIs of component modules, e.g. the xmlrpc module (make XMLRPC client call), jsonrpc (json-rpc call), monitoring module (add to the internal KV-store) etc.

for an example of DI using xmlrpc module, see e.g.
doc/dsm/examples/pin/main.dsm
 DI(xmlrpc2di, newConnection, vbs, 127.0.0.1,(int)8302, "");
 ...
 DIgetResult(xmlrpc2di, sendRequestList, vbs, checkPIN, @user, $pin);

The simplest way to call an internal application is to loop the call one more time into SEMS itself. But most applications are pretty simple to reimplement in DSM. E.g. using the classes in AmAdvancedAudio it's pretty simple to implement an echo function for DSM.

hth
Stefan


Thanks,
Derrick




_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems


--
tel:+491621366449
sip:[email protected]
mailto/xmpp:[email protected]
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to