在星号中转发X标头 [英] Forwarding X Headers in Asterisk

查看:88
本文介绍了在星号中转发X标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个软电话,该电话通过Asterisk服务器在SIP中继上拨出.软电话正在发送我们要发送到目的地的X标头. 我们看到标题进入Asterisk,但没有出去.我们可以做些什么将报头转发到目的地吗?

We have a soft phone that's dialing out, on a SIP trunk, through our Asterisk server. The soft phone is sending X Headers that we want to send on to the destination. We see the headers coming into Asterisk, but not going out. Is there something we can do to forward the headers along to the destination?

推荐答案

星号不是SIP代理,而是B2BUA.这实际上意味着,它没有转发原始请求.您的软件电话呼叫将在Asterisk上终止.星号开始第二个呼叫到您的呼叫的逻辑目的地,并将两个呼叫连接在一起.

Asterisk is no SIP proxy but a B2BUA. This actually means, that it is not forwarding the original request. The call from your softphone gets terminated on Asterisk. Asterisk starts a second call to the logical destination of your call and connects both calls together.

这就是为什么在拨出电话中没有在拨入电话中添加标题的原因.拨出电话由Asterisk发起.如果要从传入呼叫中添加任何标头,则必须像miken32所说的那样手动添加标头:

This is why on the outgoing call you don't have the headers you added on the incoming call. The outgoing call is initiated by Asterisk. If you want to add any headers from the incoming call, you manually have to to it like miken32 said:

    exten => _X.,n,SIPAddHeader(X-Foobar: ${SIP_HEADER(X-Foobar)})
    exten => _X.,n,Dial(SIP/${EXTEN})

这篇关于在星号中转发X标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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