Fix MGCP *67 to automatically reset callerid (bug #3940)
[asterisk/asterisk.git] / channels / chan_mgcp.c
index cd20eaf..81f5b71 100755 (executable)
@@ -1047,6 +1047,7 @@ static int mgcp_hangup(struct ast_channel *ast)
        /* SC: Decrement use count */
 
        if ((p->hookstate == MGCP_ONHOOK) && (!sub->next->rtp)) {
+               p->hidecallerid = 0;
                if (has_voicemail(p)) {
                        if (mgcpdebug) {
                                ast_verbose(VERBOSE_PREFIX_3 "MGCP mgcp_hangup(%s) on %s@%s set vmwi(+)\n",