summaryrefslogtreecommitdiff
path: root/src/account.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/account.c')
-rw-r--r--src/account.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/account.c b/src/account.c
index fed2b00..0269b04 100644
--- a/src/account.c
+++ b/src/account.c
@@ -279,6 +279,9 @@ static int sip_params_decode(struct account *acc, const struct sip_addr *aor)
acc->regint = REG_INTERVAL + (rand_u32()&0xff);
err |= param_u32(&acc->regint, &aor->params, "regint");
+ acc->pubint = 0;
+ err |= param_u32(&acc->pubint, &aor->params, "pubint");
+
err |= param_dstr(&acc->regq, &aor->params, "regq");
for (i=0; i<ARRAY_SIZE(acc->outbound); i++) {
@@ -510,6 +513,12 @@ uint32_t account_regint(const struct account *acc)
}
+uint32_t account_pubint(const struct account *acc)
+{
+ return acc ? acc->pubint : 0;
+}
+
+
static const char *answermode_str(enum answermode mode)
{
switch (mode) {