aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 7d04c6203..e87d7d0c9 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3446,7 +3446,7 @@ int ast_extension_state_add(const char *context, const char *exten,
*/
if (e->exten[0] == '_') {
ast_add_extension(e->parent->name, 0, exten, e->priority, e->label,
- e->cidmatch, e->app, ast_strdup(e->data), ast_free_ptr,
+ e->matchcid ? e->cidmatch : NULL, e->app, ast_strdup(e->data), ast_free_ptr,
e->registrar);
e = ast_hint_extension(NULL, context, exten);
if (!e || e->exten[0] == '_') {