我刚刚在我的星号14上安装了应用程序,我遇到了一些问题。 我在voximal.conf中创建了这个帐户
[account2]
number=8000
name=test1
url=file:///var/lib/voximal/test.vxml
这是我的test.vxml
的内容<?xml version="1.0"?>
<vxml version = "2.0" xmlns="http://www.w3.org/2001/vxml">
<form>
<block><audio src="hello.wav"/></block>
</form>
</vxml>
这是我的extensions.conf文件的内容
exten => 8000,1,Answer
exten => 8000,n,Wait(2)
exten => 8000,n,Voximal(test1)
exten => 8000,n,Hangup
这就是我在我的软电话上拨打8000时所得到的
Executing [8000@from-internal:1] Answer("PJSIP/marc-00000005", "") in new stack
> 0x7fcbfc150140 -- Strict RTP learning after remote address set to: 192.168.79.1:40034
> 0x7fcbfc150140 -- Strict RTP switching to RTP target address 192.168.79.1:40034 as source
-- Executing [8000@from-internal:2] Wait("PJSIP/marc-00000005", "2") in new stack
> 0x7fcbfc150140 -- Strict RTP learning complete - Locking on source address 192.168.79.1:40034
-- Executing [8000@from-internal:3] Voximal("PJSIP/marc-00000005", "test1") in new stack
[Jan 3 09:15:56] ERROR[48508][C-00000006]: app_voximal.c:20285 vxml_exec: Cannot open new session, allocating context!
-- Executing [8000@from-internal:4] Hangup("PJSIP/marc-00000005", "") in new stack
我试过这个来识别错误:
exten => 8000,1,Voximal()
exten => 8000,n,NoOp(${VOXIMAL_ERROR})
exten => 8000,n,GotoIf($["${VOXIMAL_ERROR}" == ""]?hangup)
exten => 8000,n,Busy()
exten => 8000,n(hangup),Hangup()
我得到了这个:
Executing [8000@from-internal:1] Voximal("PJSIP/marc-00000000", "") in new stack
[Jan 3 09:28:08] ERROR[48842][C-00000001]: app_voximal.c:20285 vxml_exec: Cannot open new session, allocating context!
-- Executing [8000@from-internal:2] NoOp("PJSIP/marc-00000000", "LICENSE") in new stack
-- Executing [8000@from-internal:3] GotoIf("PJSIP/marc-00000000", "0?hangup") in new stack
-- Executing [8000@from-internal:4] Busy("PJSIP/marc-00000000", "") in new stack
请帮助我!
答案 0 :(得分:1)
错误:vxml_exec:无法打开新会话,分配上下文!
这是因为你没有启用Voximal的免费1端口。 查看您的Voxiaml许可证: CLI&GT; voximal show license
默认配置需要Internet连接才能获取许可证。 如果您在安全网络中进行测试,则需要设置key = evaluation(在voximal.conf文件中或从Web Interface中)以启用localy test / dev / free许可证。