Index: pbx.c =================================================================== RCS file: /usr/cvsroot/asterisk-ng/pbx.c,v retrieving revision 1.114 diff -u -r1.114 pbx.c --- pbx.c 12 Oct 2002 14:28:14 -0000 1.114 +++ pbx.c 15 Oct 2002 06:14:22 -0000 @@ -1037,6 +1037,10 @@ else ast_verbose( VERBOSE_PREFIX_2 "Accepting call on '%s'\n", c->name); } + +/* If there was no dnid set by the channel driver then copy the exten to dnid */ + if (!c->dnid) + c->dnid = strdup(c->exten); /* Start by trying whatever the channel is set to */ if (!ast_exists_extension(c, c->context, c->exten, c->priority, c->callerid)) {