diff options
Diffstat (limited to 'dat.h')
-rw-r--r-- | dat.h | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -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; |