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

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

问题描述

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

P.S:如果我从软件电话(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天全站免登陆