Tweaks to logging in spandsp

This commit is contained in:
Steve Underwood
2013-10-05 16:07:19 +08:00
parent a34095a4b7
commit 1d76b2f907
6 changed files with 122 additions and 27 deletions

View File

@@ -246,6 +246,36 @@ SPAN_DECLARE(const char *) t30_completion_code_to_str(int result)
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE(const char *) t30_modem_to_str(int modem)
{
switch (modem)
{
case T30_MODEM_NONE:
return "None";
case T30_MODEM_PAUSE:
return "Pause";
case T30_MODEM_CED:
return "CED";
case T30_MODEM_CNG:
return "CNG";
case T30_MODEM_V21:
return "V.21";
case T30_MODEM_V27TER:
return "V.27ter";
case T30_MODEM_V29:
return "V.29";
case T30_MODEM_V17:
return "V.17";
case T30_MODEM_V34HDX:
return "V.34HDX";
case T30_MODEM_DONE:
return "Done";
}
/*endswitch*/
return "???";
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE(const char *) t30_frametype(uint8_t x)
{
switch (x)