From d54c4ffc32c15d75e89c52e70dbbc8212d19ec76 Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 31 Jul 2023 10:56:24 +0000 Subject: got referential REGISTER procedure working. --- dat.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'dat.h') 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; -- cgit v1.2.3