o Erich Hohermuth [05/23/08 13:43]:
> Hello
> 
> I just want to ask if there is a number announce module for sems. The  
> idea is to announce a message and number like "the callforwarding is  
> enabled to eight, six, zero" where the number is a parameter which can  
> set by SER.
> 
> As far as I understood from some other mails in this list. This could  
> be implemented  with the Playlist function and add all the number as  
> wav digits like it is done in the jukebox example.
I think the simplest solution would be a python script like this one 
(caution, untested, probably contains typos, and it would be better to 
check for errors)

#
# just playing some things and adding numbers...
#
from log import *
from ivr import *

class IvrDialog(IvrDialogBase) :
         self.msg = None
         self.numbers = [ ]
     def onSessionStart( self, hdrs ) :

         self.msg = IvrAudioFile()
         self.msg.open("the_callforwarding_is.wav", AUDIO_READ)
         self.enqueue(self.msg, None)

         for n in self.dialog.user:
                 n_msg = IvrAudioFile()
                 n_msg.open(n + ".wav", AUDIO_READ)
                 self.numbers.append(n_msg)
                 self.enqueue(n_msg)

to use it, set ruri-user to your number, that will show up in dialog.user.

Stefan

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

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 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