Skip to content

Commit

Permalink
Fix is_contact_registered() to accept less params.
Browse files Browse the repository at this point in the history
The last 3 params are optional, so we can invoke the function without them.
  • Loading branch information
bogdan-iancu committed Aug 19, 2016
1 parent 65d981b commit d30f39a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/registrar/reg_mod.c
Expand Up @@ -174,6 +174,15 @@ static cmd_export_t cmds[] = {
{"is_registered", (cmd_function)is_registered, 2,
fixup_is_aor_registered, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
{"is_contact_registered", (cmd_function)is_contact_registered, 1,
fixup_is_contact_registered, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
{"is_contact_registered", (cmd_function)is_contact_registered, 2,
fixup_is_contact_registered, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
{"is_contact_registered", (cmd_function)is_contact_registered, 3,
fixup_is_contact_registered, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
{"is_contact_registered", (cmd_function)is_contact_registered, 4,
fixup_is_contact_registered, 0,
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
Expand Down

0 comments on commit d30f39a

Please sign in to comment.