Worked around an API change in Sangoma headers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@939 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
ac60ed54b5
commit
61d7492ac2
|
@ -517,10 +517,10 @@ bool WpData::decodeEvent(const api_rx_hdr_t* ev)
|
|||
case WP_API_EVENT_NONE:
|
||||
return false;
|
||||
case WP_API_EVENT_DTMF:
|
||||
if (ev->wp_api_hdr_event_dtmf_type & WP_API_EVENT_DTMF_PRESENT) {
|
||||
String tone((char)ev->wp_api_hdr_event_dtmf_digit);
|
||||
if (ev->hdr_u.wp_api_event.u_event.dtmf.type & WP_API_EVENT_DTMF_PRESENT) {
|
||||
String tone((char)ev->hdr_u.wp_api_event.u_event.dtmf.digit);
|
||||
tone.toUpper();
|
||||
int chan = ev->wp_api_hdr_event_channel;
|
||||
int chan = ev->hdr_u.wp_api_event.channel;
|
||||
PriChan* c = m_span->getChan(chan);
|
||||
if (c)
|
||||
c->gotDigits(tone);
|
||||
|
|
Loading…
Reference in New Issue