Send digits in answered calls as keypad facility if supported by libpri.
git-svn-id: http://voip.null.ro/svn/yate@1109 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
f7c9854af0
commit
4affa2c78a
1 changed files with 12 additions and 2 deletions
|
@ -871,8 +871,18 @@ void PriChan::gotDigits(const char *digits, bool overlapped)
|
|||
|
||||
void PriChan::sendDigit(char digit)
|
||||
{
|
||||
if (m_call)
|
||||
::pri_information(m_span->pri(),m_call,digit);
|
||||
if (!m_call)
|
||||
return;
|
||||
#ifdef PRI_KEYPAD_FACILITY_TX
|
||||
if (isAnswered()) {
|
||||
char buf[2];
|
||||
buf[0] = digit;
|
||||
buf[1] = '\0';
|
||||
::pri_keypad_facility(m_span->pri(),m_call,buf);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
::pri_information(m_span->pri(),m_call,digit);
|
||||
}
|
||||
|
||||
bool PriChan::call(Message &msg, const char *called)
|
||||
|
|
Loading…
Reference in a new issue