星号:发起呼叫未在拨号计划中设置 CALLERID [英] Asterisk : originate call doesn't set the CALLERID in the dialplan

查看:45
本文介绍了星号:发起呼叫未在拨号计划中设置 CALLERID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Asterisk PBX 呼叫软电话,我使用这个命令:originate SIP/100 extension 4004",在拨号方案中,我必须获取 CALLERID 变量,但在这种情况下,它总是空的!

PS:如果我从软电话(100)拨打分机号(4004),则设置了 CALLERID,我可以通过:${CALLERID(num)} 获得它.>

如何获取原始案例中的来电显示?

解决方案

我现在使用的最终解决方案:

  • 我从一个 php 脚本调用我的扩展(发起 SIP/100 扩展 777)
  • 我将扩展名写入文本文件 (file_put_contents)
  • 然后我在星号拨号计划中读取它,并将此变量设置为呼叫者 ID Set(CALLERID(num)=${caller_id}

我没有找到其他解决方案.

I am using Asterisk PBX to call a softphone, i use thise command : "originate SIP/100 extension 4004" , in the dialplan, I have to get the CALLERID variable, but in this case, it's always empty!

P.S : if i call the extension (4004), from the softphone(100), the CALLERID is set, and I can get it with : ${CALLERID(num)}.

How to get the caller id in the originate case?

解决方案

the final solution i am using now :

  • i call my extention from a php script (originate SIP/100 extension 777)
  • i write my extension to a text file (file_put_contents)
  • then i read it in the asterisk dial plan, and set this variable as the caller ID Set(CALLERID(num)=${caller_id}

i didn't find another solution.

这篇关于星号:发起呼叫未在拨号计划中设置 CALLERID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆