def push_notification_by_call(voice, worker_phone_num):
"""
语音提醒
:param voice: 音频文件
:param worker_phone_num: 用户电话
:return:
"""
phone_num = str(worker_phone_num)
shap3 = ctypes.cdll.LoadLibrary("C:\Windows\SHP_A3.dll") # 加载动态链接库
shap3.SsmStartCti(path.join(src, 'ShCti\ShConfig.ini\0'),
path.join(src, 'ShCti\ShIndex.ini\0')) # 初始化驱动
ch = shap3.SsmSearchIdleCallOutCh(1, 0) # 搜索空闲通道
ret_1 = shap3.SsmAddToFileList(ch, voice, -1, 0, -1) # 向驱动程序提交一个需要播放的语音文件
ret_2 = shap3.SsmSetPlayVolume(ch, 3) # 设置播放语音文件的声音大小
ret_3 = shap3.SsmPickup(ch) # 通道摘机
# shap3.SsmSetCalleeHookDetectP(ch, 6, 48) # 增强的远端摘机检测器参数设置
# shap3.SsmStartPickupAnalyze(ch) # 启动“增强的远端摘机检测器”
ret_4 = shap3.SsmSetWaitAutoDialAnswerTimeEx(ch, 25) # 设置一个通道等待被叫用户摘机的最大等待时间