Hey thanks, I am looking at this example. Really nice. I am thinking of
posting simpler instructions to understand SEMS on my blog as well. That'll
be kind of SEMS cookbook. Help from interested guys is welcome.

Regards,
Gohar

-----Original Message-----
From: Stefan Sayer [mailto:[email protected]] 
Sent: Tuesday, July 05, 2011 9:15 PM
To: Gohar Ahmed
Cc: [email protected]
Subject: Re: [Sems] Stop DTMF input on pressing #

Hi Ahmed,

o Gohar Ahmed on 07/05/2011 12:56 PM:
> Hello List,
>
> It's a very basic question , I want to terminate DTMF input when user
> presses #. I'm trying this via IVR module and sems-1.4.1. Can anyone
> give me couple of hints on putting the condition on input string !

see apps/pin_collect 
(http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sems;a=blob;f=apps/pin_colle
ct/pin_collect.py) 
for an example:

def onDtmf(self,key,duration):
   ...
   if key == 10:
     ...


Stefan

>
> Best Regards,
>
> *Gohar Ahmed***
>
> VoIP Developer
>

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

Reply via email to