From 20e57b12e893db29edf3cdf4a9814a092321ba26 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 14 Jan 2010 16:52:22 +0000 Subject: Ensure that the callerid is NULL when the parent is effectively NULL. This applies only to pattern-match hints, which create exact-match hints on the fly. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240129 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/pbx.c') diff --git a/main/pbx.c b/main/pbx.c index dff8ca28b..d0de1b264 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4302,7 +4302,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] == '_') { -- cgit v1.2.3