[SIP Beyond VoIP] Debugging DTMF for conference bridge app
Adrian Georgescu
ag at ag-projects.com
Thu Dec 19 21:11:33 CET 2013
That thing is not written by us. It is several year old and obsolete unless is re-written to use the latest SIP SIMPLE SDK.
Adrian
On Dec 19, 2013, at 7:43 PM, Jason Ostrom wrote:
> Hi,
>
> I have a python script (https://code.google.com/p/moshimoshi/) using SIP Simple that is dialing into an Asterisk server conference bridge using new confbridge module. The python script is supposed to wait/listen for DTMF tones and when DTMF is input by another conference user, the script should take action based on DTMF.
>
> The script does not appear to receive or process DTMF and I believe that DTMF pass through/broadcast/ relay is configured on Asterisk. Asterisk logger.c shows that DTMF is getting processed. Can you help me debug why this isn't working in SIP Simple python script?
>
> Code snippet:
> "
> def _NH_AudioStreamGotDTMF(self, notification):
> digit = notification.data.digit
> print 'Got DMTF %s ' % notification.data.digit
> self.dtmf_buffer += digit
> # '*' equal EOL
> if (digit == '*'):
>
> print "Processing %s" % self.dtmf_buffer
>
> # '0#*' eq Launching a pre-define application
>
> if (self.dtmf_buffer.startswith("0#") == True):
> print "Launching xeyes ..."
> os.system('xeyes &')
> "
>
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20131219/496756ad/attachment.pgp>
More information about the SIPBeyondVoIP
mailing list