OPENZAP-30 add support for flash hook as part of the dial string using 'F'

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@612 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris committed 2008-11-20 23:46:15 +00:00
1 parent b83ab7a8d3
commit 751cbfb6d1
3 files changed
+18 -1

No files matched your search

@@ -443,6 +443,15 @@ static ZIO_COMMAND_FUNCTION(zt_command)
zap_clear_flag_locked(zchan, ZAP_CHANNEL_OFFHOOK);
}
break;
case ZAP_COMMAND_FLASH:
{
int command = ZT_FLASH;
if (ioctl(zchan->sockfd, ZT_HOOK, &command)) {
snprintf(zchan->last_error, sizeof(zchan->last_error), "FLASH Failed");
return ZAP_FAIL;
}
}
break;
case ZAP_COMMAND_GENERATE_RING_ON:
{
int command = ZT_RING;