So, now I can detect # being pressed by the condition
"if key == 11:"
Also viewable on logs by debug message
"debug(">>>>> User Entered <<<< "+ self.keys)"
Dialthis = "sip:" + self.keys + "@My.Asterisk.Server:port"
Now next thing is that I want to connect Caller to the dialed user by using
command
"self.connectCallee(self.dialog.local_party,self.dialog.local_uri,
self.dialog.remote_party,self.dlg.remote_uri,) "
Can anyone help which strings I need to change in above statement to forward
the call ? I guess I need to change local_party & local_uri !? little help
please
Thanks,
Gohar A.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Gohar Ahmed
Sent: Wednesday, July 06, 2011 10:04 AM
To: 'Stefan Sayer'
Cc: [email protected]
Subject: Re: [Sems] Stop DTMF input on pressing #
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
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems