summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-01-14 16:52:22 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-01-14 16:52:22 +0000
commit20e57b12e893db29edf3cdf4a9814a092321ba26 (patch)
tree4ee0daff2774f61f7c941b237b45398ec9cc9573 /main/pbx.c
parentef0da09c740191913ceacb0a40c10dee93dc9fb8 (diff)
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
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
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] == '_') {