aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-13 19:38:41 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-13 19:38:41 +0000
commitf8eacdaa714b327ccb83bd3498d3f31a5c99e6df (patch)
tree62aaeee6a4ebdf40a2afa7dac3c64b086d48c57e
parent3a77b33dc4683d0d3871fa31d05b5835653aa5e4 (diff)
Allow AST_FRAME_MODEM frames to be dumped, and document T.38 passthrough support
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33912 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--configs/sip.conf.sample7
-rw-r--r--frame.c14
2 files changed, 21 insertions, 0 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index 2b898437b..42dad6c90 100644
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -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)
diff --git a/frame.c b/frame.c
index d0df4db7e..6f11c7622 100644
--- a/frame.c
+++ b/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);
}