aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
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;