aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-17 04:40:57 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-17 04:40:57 +0000
commitf7102843df416c1875367054596cc120a7a77aab (patch)
treeba92fac3833ff57ee54bc4df6cbcf54af528f2bc
parent5a880aeebf985448090e5fc6b3cbe8eb79640912 (diff)
Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@289 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xinclude/asterisk/callerid.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asterisk/callerid.h b/include/asterisk/callerid.h
index f55ca5132..9f9e691a1 100755
--- a/include/asterisk/callerid.h
+++ b/include/asterisk/callerid.h
@@ -37,7 +37,7 @@ extern void callerid_init(void);
at least 32000 bytes in size if you want to be sure you dont
have an overrun however. Returns # of bytes written to buffer.
Use "O" or "P" in name */
-extern int callerid_generate(unsigned char *buf, char *number, char *name, int flags);
+extern int callerid_generate(unsigned char *buf, char *number, char *name, int flags, int callwaiting);
/* Create a callerID state machine */
extern struct callerid_state *callerid_new(void);
@@ -55,9 +55,16 @@ extern void callerid_free(struct callerid_state *cid);
/* Generate Caller-ID spill from the "callerid" field of asterisk (in e-mail address like format) */
extern int ast_callerid_generate(unsigned char *buf, char *astcid);
+/* Generate Caller-ID spill from the "callerid" field of asterisk (in e-mail address like format)
+ but in a format suitable for Call Waiting(tm) Caller*ID(tm) */
+extern int ast_callerid_callwaiting_generate(unsigned char *buf, char *astcid);
+
/* Destructively parse inbuf into name and location (or number) */
extern int ast_callerid_parse(char *inbuf, char **name, char **location);
+/* Generate a CAS (CPE Alert Signal) tone for 'n' samples */
+extern int ast_callerid_gen_cas(unsigned char *outbuf, int len);
+
/* Shrink a phone number in place to just digits (more accurately it just removes ()'s, .'s, and -'s... */
extern void ast_shrink_phone_number(char *n);