Open GoogleCodeExporter opened 8 years ago
I have Asterisk 1.8, made in sip.conf relaxdtfm=yes, tried dtmfmode=auto
in extension. Does not work. How can I fix this problem?
Original comment by nvcen...@gmail.com
on 26 Aug 2012 at 10:14
I try change
def rtmp_sendDTMF(self, digit):
try:
if _debug: print 'rtmp-sendDTMF', digit
if self.media:
messages = self.media.dtmf2rtp(digit)
if self.session and self.media.session and messages is not None:
for payload, ts, marker, fmt in messages:
self.media.session.send(payload=payload, ts=ts, marker=marker, fmt=fmt)
except:
if _debug: print ' exception in rtmp_sendDTMF'; traceback.print_exc()
yield
to
def rtmp_sendDTMF(self, digit):
if self.session and self.session.ua:
ua = self.session.ua
m = ua.createRequest('INFO')
m['Content-Type'] = SIPHeader('application/dtmf-relay', 'Content-Type')
m.body = 'Signal=' + digit + '\nDuration=160'
ua.sendRequest(m)
yield
And start siprtmp, i have error in console "invalid command sendDTMF" when i
press digits in flash phone.
Original comment by nvcen...@gmail.com
on 29 Nov 2012 at 1:48
Is the function indented correctly? Python is sensitive to indentation. Send us
the complete file after modification and we will be able to point out the
mistake.
I noticed that your m['Content-Type'] line is not indented correctly.
The error is when onCommand cannot recognize rtmp_sendDTMF as a method in the
Context class. This could be if the function is not indented correctly within
the class.
Original comment by theinten...@gmail.com
on 11 Jan 2013 at 7:26
Original issue reported on code.google.com by
theinten...@gmail.com
on 29 Jun 2012 at 8:49