diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2016-12-08 21:21:53 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2016-12-08 21:21:53 +0100 |
commit | 6374a883e71710347bc9d0f3de02eb8c031e26a3 (patch) | |
tree | d98229f72a7b7e611809d5bbebd34db50441ed85 | |
parent | 8b37c9e56e5f199dbed312d3ba502f828476a385 (diff) |
b2bua: updated command API
-rw-r--r-- | modules/b2bua/b2bua.c | 6 |
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; } |