Asterisk freepbx-转发后在用户显示上隐藏外部号码

发布于 2025-02-13 01:27:41 字数 1219 浏览 0 评论 0原文

由于某种原因,我找不到互联网上的必要信息。

订户A的设定转发到外部号码(城市的输出通过SIP中继线)。我希望当订户A调用订户A时,我希望该外部数字被隐藏给订户B。

如何实施?

那些。在我的理解中,应该有一个条件:

如果呼叫已转发并呼叫以_11x(退出城市)开头的数字,然后执行CallerID替换功能。 ########################################## ##################

​ 例如,我将数字从数字2222到数字3333(这些数字位于星号上)。电话号码11444555566设置为3333(呼叫外部号码的呼叫通过SIP TRUNK到SIEMENS),

因此,当我这样打电话时,我会看到电话为3333,但是当手机号码114444555566答案时,然后我在手机上看到了这个数字11444555566,但我不希望它在显示屏上可见,因为我们考虑了手机号码信息是私人的。

而且,我只想

在FreepBx上设置_11的数字_11时才隐藏此数字,我可以在Extensions_custom.conf中制作自定义拨号计划,但我需要提示。

例如,我现在有一个简单的拨号平面,用于extensions_custom中的外发呼叫,我想在电话显示上隐藏$ {exten}:

[dial-siemens]
exten => _11.,1,Set(CALLERID(num)=${CALLERID(num)})
exten => _11.,n,Dial(PJSIP/${EXTEN}@Siemens,120)
exten => _11.,n,Hangup()

############################## ###############################

​继续寻找解决方案有些事情有效,但不完全。 事实证明,使用拨号程序设置删除手机显示器的数字, i 选项对此有所帮助。

exten => _11X.,1,Set(CONNECTEDLINE(num)=fwd to external)
exten => _11X.,n,Dial(PJSIP/${EXTEN}@Siemens,,I)
exten => _11X.,n,Hangup()

现在,拨打外部号码_11时,我会看到“ FWD到外部”,而不是数字。这就是我需要的。

现在,我只需要在调用重定向时才能制定规则。需要帮助。

For some reason I can not find the necessary information on the Internet.

Subscriber A has set forwarding to an external number (output to the city goes through a sip trunk). I want this external number to be hidden for subscriber B, when he calls subscriber A.

How to implement?

Those. In my understanding there should be a condition:

If the call was forwarded and a call was made to a number that starts with _11X (exit to the city) Then perform the callerid replacement function.
####################################################################

Update:

Perhaps I explained incorrectly.
For example, I call from number 2222 to number 3333 (these numbers are located on Asterisk). Call forwarding to mobile number 11444555566 is set on number 3333 (Calls to external numbers go through sip trunk to siemens)

So, when I call like this, I see that the call goes to number 3333, but when the mobile number 11444555566 answers, then I see this number 11444555566 on the my phone, but I would not want it to be visible on the display, because we consider mobile number information to be private.

And I would like to hide this number only if forwarding to numbers _11 is set

On FreePBX, I can make a custom dialplan in extensions_custom.conf, but I need a hint.

for example, I now have a simple dialplan for external outgoing calls in extensions_custom, i want to hide ${EXTEN} on the phone display:

[dial-siemens]
exten => _11.,1,Set(CALLERID(num)=${CALLERID(num)})
exten => _11.,n,Dial(PJSIP/${EXTEN}@Siemens,120)
exten => _11.,n,Hangup()

####################################################################

UPDATE:

I continued to look for a solution and something worked, but not completely.
It turned out to remove the number from the phone display with such a dialplan setting, the I option helped.

exten => _11X.,1,Set(CONNECTEDLINE(num)=fwd to external)
exten => _11X.,n,Dial(PJSIP/${EXTEN}@Siemens,,I)
exten => _11X.,n,Hangup()

Now, when dialing an external number _11, I see "fwd to external" instead of the number. This is what I need.

Now I need to make the rule only run when the call has been redirected. Need help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不爱素颜 2025-02-20 01:27:41

无需这样做。

如果您确实转发给星号PBX并致电了,则没有任何办法让客户知道发送呼叫的何处。外部号码,SIP设备,工件智能系统,会议等 - 所有人看起来都一样。客户应该知道只有数字。

如果您需要客户b不知道客户A的CallerId,则应在路由器上替换CallerID,以打电话给bie bie将您的一个在出站路线中的CallerID字段中,然后选择“ Force CallerID”。

提示:您可以每个中继线有多个出站规则,具有不同的前缀。

There is no need in do anything like that.

If you have DID forwarded to asterisk PBX and customer A call to that did - there is no any way for customer know where call was send. External number, sip device, artifact intelligence system, conference etc - all will looks the same. Customer should know only DID's number.

If you need customer B not know callerid of customer A, you just should replace CALLERID on the router you are using to call B. I.e put one of your did in CALLERID field at outbound routes and select "force callerid".

Hint: You can have multiple outbound rules per trunk, with different prefixes.

春风十里 2025-02-20 01:27:41

似乎是这样起作用的:

[dial-siemens]
exten => _11X.,1,ExecIf($["${DB(CF/${CONNECTEDLINE(num)})}"!=""]?Macro(dial-siemens-cf-external,${EXTEN}),s,1)
exten => _11X.,n,Dial(PJSIP/${EXTEN}@Siemens,120)
exten => _11X.,n,Hangup()

[macro-dial-siemens-cf-external]
exten => s,1,Set(CONNECTEDLINE(num)=fwd to external)
exten => s,n,Dial(PJSIP/${ARG1}@Siemens,,I)
exten => s,n,Hangup()

it seems to work like that:

[dial-siemens]
exten => _11X.,1,ExecIf($["${DB(CF/${CONNECTEDLINE(num)})}"!=""]?Macro(dial-siemens-cf-external,${EXTEN}),s,1)
exten => _11X.,n,Dial(PJSIP/${EXTEN}@Siemens,120)
exten => _11X.,n,Hangup()

[macro-dial-siemens-cf-external]
exten => s,1,Set(CONNECTEDLINE(num)=fwd to external)
exten => s,n,Dial(PJSIP/${ARG1}@Siemens,,I)
exten => s,n,Hangup()
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文