Thank you Stefan, that is excellent, and I have it working.

I have a couple of follow up questions.

1. Is it possible to pass additional (arbitrary) data to the SEMS
application over XMLRPC...for example, the announcement app uses the
'localuser' to check for a personalized announcement (and I can access that
variable from the dialog object in my python ivr). Is there a way to pass
additional data when the application is invoked.

2. If I would like to call a PSTN number (and I am willing to pay for the
service) with the 'dial' interface, what is the process involved from SEMS
side?

Thank you again,

On Fri, Oct 7, 2011 at 1:57 PM, Stefan Sayer <[email protected]>wrote:

> 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 <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<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