mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 14:27:14 +00:00
Allow AST_FRAME_MODEM frames to be dumped, and document T.38 passthrough support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -151,6 +151,13 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
|
||||
; separated by '&'. Patterns may be used in regexten.
|
||||
;
|
||||
;regcontext=sipregistrations
|
||||
;----------------------------------------- T.38 FAX PASSTHROUGH SUPPORT -----------------------
|
||||
;
|
||||
; These settings are available in the [general] section as well as in device configurations
|
||||
;
|
||||
; t38pt_udptl = yes ; Default false
|
||||
; t38pt_rtp = yes ; Default false
|
||||
; t38pt_tcp = yes ; Default false, not yet used
|
||||
;
|
||||
;----------------------------------------- OUTBOUND SIP REGISTRATIONS ------------------------
|
||||
; Asterisk can register as a SIP user agent to a SIP proxy (provider)
|
||||
|
||||
14
frame.c
14
frame.c
@@ -816,6 +816,20 @@ void ast_frame_dump(const char *name, struct ast_frame *f, char *prefix)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case AST_FRAME_MODEM:
|
||||
strcpy(ftype, "Modem");
|
||||
switch (f->subclass) {
|
||||
case AST_MODEM_T38:
|
||||
strcpy(subclass, "T.38");
|
||||
break;
|
||||
case AST_MODEM_V150:
|
||||
strcpy(subclass, "V.150");
|
||||
break;
|
||||
default:
|
||||
snprintf(subclass, sizeof(subclass), "Unknown MODEM frame '%d'\n", f->subclass);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
snprintf(ftype, sizeof(ftype), "Unknown Frametype '%d'", f->frametype);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user