[Asterisk-cvs] asterisk/apps app_dial.c,1.68,1.69
markster at lists.digium.com
markster at lists.digium.com
Sat May 22 19:04:10 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv21098/apps
Modified Files:
app_dial.c
Log Message:
Copy hangup cause at end of a good call
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- app_dial.c 20 May 2004 00:29:09 -0000 1.68
+++ app_dial.c 22 May 2004 23:17:33 -0000 1.69
@@ -877,8 +877,11 @@
} else
res = -1;
- if (res != AST_PBX_NO_HANGUP_PEER)
+ if (res != AST_PBX_NO_HANGUP_PEER) {
+ if (!chan->_softhangup)
+ chan->hangupcause = peer->hangupcause;
ast_hangup(peer);
+ }
}
out:
hanguptree(outgoing, NULL);
More information about the svn-commits
mailing list