From: Tilghman Lesher Date: Thu, 14 Jan 2010 16:57:08 +0000 (+0000) Subject: Merged revisions 240129 via svnmerge from X-Git-Tag: 1.6.2.3-rc1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=129424ed7cf87118f0e446d4389c2c1ae99f300e;p=thirdparty%2Fasterisk.git Merged revisions 240129 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r240129 | tilghman | 2010-01-14 10:52:22 -0600 (Thu, 14 Jan 2010) | 4 lines 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/branches/1.6.2@240132 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 3b31c301f5..861311a3d2 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3938,7 +3938,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] == '_') {