aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-07-31 10:56:24 +0000
committerrodri <rgl@antares-labs.eu>2023-07-31 10:56:24 +0000
commitd54c4ffc32c15d75e89c52e70dbbc8212d19ec76 (patch)
tree95415810958ed49d05162aed3159232af2588257 /dat.h
parent2e99eaaea1aa6776eda10f5ec8bd90adcfe8424a (diff)
downloadcatphone-d54c4ffc32c15d75e89c52e70dbbc8212d19ec76.tar.gz
catphone-d54c4ffc32c15d75e89c52e70dbbc8212d19ec76.tar.bz2
catphone-d54c4ffc32c15d75e89c52e70dbbc8212d19ec76.zip
got referential REGISTER procedure working.
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index caf6d01..23d2a42 100644
--- a/dat.h
+++ b/dat.h
@@ -13,6 +13,10 @@ typedef enum {
REFER
} SipMethod;
+typedef enum {
+ AMD5,
+} SipAuthAlgo;
+
/* rfc3261 § 21 - Response Codes */
typedef enum {
/* 1xx Provisional */
@@ -99,8 +103,25 @@ struct Hdrtab
struct Sipmsg
{
Hdrtab;
- char *version;
+
+ struct {
+ char *algo;
+ char *realm;
+ char *nonce;
+ char *response;
+ } auth;
+
+ /* request */
SipMethod method;
+ char *uri;
+
+ /* response */
+ int code;
+ char *reason;
+
+ char *version;
+ ulong len;
+ char body[];
};
/* SIP UAC (see rfc3261 § 8.1, 12.1.2) */
@@ -114,4 +135,6 @@ struct Sip
int (*reg)(Sip*, char*, char*);
};
+#pragma varargck type "S" Sipmsg*
+
extern int debug;