summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-08 21:21:53 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-12-08 21:21:53 +0100
commit6374a883e71710347bc9d0f3de02eb8c031e26a3 (patch)
treed98229f72a7b7e611809d5bbebd34db50441ed85 /modules
parent8b37c9e56e5f199dbed312d3ba502f828476a385 (diff)
b2bua: updated command API
Diffstat (limited to 'modules')
-rw-r--r--modules/b2bua/b2bua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/b2bua/b2bua.c b/modules/b2bua/b2bua.c
index 4eebff8..7386a29 100644
--- a/modules/b2bua/b2bua.c
+++ b/modules/b2bua/b2bua.c
@@ -187,7 +187,7 @@ static int b2bua_status(struct re_printf *pf, void *arg)
static const struct cmd cmdv[] = {
- {'b', 0, "b2bua status", b2bua_status },
+ {"b2bua", 0, 0, "b2bua status", b2bua_status },
};
@@ -207,7 +207,7 @@ static int module_init(void)
return ENOENT;
}
- err = cmd_register(cmdv, ARRAY_SIZE(cmdv));
+ err = cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
if (err)
return err;
@@ -232,7 +232,7 @@ static int module_close(void)
}
uag_event_unregister(ua_event_handler);
- cmd_unregister(cmdv);
+ cmd_unregister(baresip_commands(), cmdv);
return 0;
}