o Alem. R. on 10/07/2011 07:37 PM:
Hi Everyone,

I have a simple application I would like to build.

Given an SIP address, and a message, I would like SEMS to initiate the
call to the SIP address, and play the message when the user picks up.

In a way, this is like the example announcement app, except instead of
the user calling, I would like to initiate the call from SEMs.

What is the easiest way to accomplish this? Can you kindly point me to
an example?
you can use the announcement application right away, and di_dial via xmlrpc to make the call to the user.


make xmlrpc2di, di_dial and announcement apps:
 make -C apps/examples/di_dialer
 make -C apps/xmlrpc2di
 make -C apps/announcement

load them in sems.conf:

 load_plugins=xmlrpc2di;wav;announcement;di_dial;uac_auth
in xmlrpc2di.conf set
 xmlrpc_port=8090
 export_di=yes
 direct_export=di_dial

point announce_path and default_announce in announcement.conf to your file.

then you can call via XMLRPC e.g. from python
from xmlrpclib import *
s = ServerProxy('http://localhost:8090')
s.dial('announcement', 'localuser', 'sip:[email protected]', 'sip:[email protected]')

or with authentication:
s.dial_auth('announcement', 'localuser', 'sip:[email protected]', 'sip:[email protected]', 'auth_realm', 'user', 'pwd')

alternatively you can write a DSM script that triggers the call or play the file or so, just use the play_file.dsm example in doc/dsm/examples.


Thank you very much,



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


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

Reply via email to