aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/callerid.h
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-06 20:03:20 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-06 20:03:20 +0000
commite157d1f1e92e41a725911d8c3908e329dbf89649 (patch)
treee9b8b5ec3c842cf70e1d076af82c2892da87e343 /include/asterisk/callerid.h
parentdd5fd06f560dea96e36a0d0bd35421f8abc2b519 (diff)
Changes to allow receiving japanese callerid (Bug #5928)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7842 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/callerid.h')
-rw-r--r--include/asterisk/callerid.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/callerid.h b/include/asterisk/callerid.h
index 72f5f4276..7daa1a8f9 100644
--- a/include/asterisk/callerid.h
+++ b/include/asterisk/callerid.h
@@ -41,6 +41,7 @@
#define CID_SIG_BELL 1
#define CID_SIG_V23 2
#define CID_SIG_DTMF 3
+#define CID_SIG_V23_JP 4
#define CID_START_RING 1
#define CID_START_POLARITY 2
@@ -92,6 +93,18 @@ extern struct callerid_state *callerid_new(int cid_signalling);
*/
extern int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int samples, int codec);
+/*! \brief Read samples into the state machine.
+ * \param cid Which state machine to act upon
+ * \param ubuf containing your samples
+ * \param samples number of samples contained within the buffer.
+ * \param codec which codec (AST_FORMAT_ALAW or AST_FORMAT_ULAW)
+ *
+ * Send received audio to the Caller*ID demodulator (for japanese style lines).
+ * \return Returns -1 on error, 0 for "needs more samples",
+ * and 1 if the CallerID spill reception is complete.
+ */
+extern int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int samples, int codec);
+
/*! \brief Extract info out of callerID state machine. Flags are listed above
* \param cid Callerid state machine to act upon
* \param number Pass the address of a pointer-to-char (will contain the phone number)