Asterisk 星号集管转向

Asterisk 星号集管转向,asterisk,sip,dialplan,Asterisk,Sip,Dialplan,你好,工匠星号, 我有一个无法从SipHeader中提取变量的问题。 我跟在后面的是dump,我得到: 改道:;原因=无条件 改道:“匿名”sip;原因=未知;隐私=完整;计数器=1 我在拨号计划中设置: same=>n,Set(分流=${SIP\u头(分流)) 收到: sip:+4917645615686@public-vip.cisco.de>;原因=无条件 但我还需要第二排 转移:“匿名”sip;原因=未知;隐私=已满;计数器=1 有人能帮我吗?也许你应该阅读帮助并使用第二个参数 pro-

你好,工匠星号, 我有一个无法从SipHeader中提取变量的问题。 我跟在后面的是dump,我得到:

改道:;原因=无条件

改道:“匿名”sip;原因=未知;隐私=完整;计数器=1

我在拨号计划中设置:

same=>n,Set(分流=${SIP\u头(分流))

收到:

sip:+4917645615686@public-vip.cisco.de>;原因=无条件

但我还需要第二排

转移:“匿名”sip;原因=未知;隐私=已满;计数器=1


有人能帮我吗?

也许你应该阅读帮助并使用第二个参数

pro-sip*CLI> core show function SIP_HEADER 

  -= Info about function 'SIP_HEADER' =- 

[Synopsis]
Gets the specified SIP header from an incoming INVITE message. 

[Description]
Since there are several headers (such as Via) which can occur multiple times,
SIP_HEADER takes an optional second argument to specify which header with that
name to retrieve. Headers start at offset '1'.
Please observe that contents of the SDP (an attachment to the SIP request)
can't be accessed with this function.

[Syntax]
SIP_HEADER(name[,number])

[Arguments]
number
    If not specified, defaults to '1'.

[See Also]
Not available

也许你应该阅读帮助并使用第二个参数

pro-sip*CLI> core show function SIP_HEADER 

  -= Info about function 'SIP_HEADER' =- 

[Synopsis]
Gets the specified SIP header from an incoming INVITE message. 

[Description]
Since there are several headers (such as Via) which can occur multiple times,
SIP_HEADER takes an optional second argument to specify which header with that
name to retrieve. Headers start at offset '1'.
Please observe that contents of the SDP (an attachment to the SIP request)
can't be accessed with this function.

[Syntax]
SIP_HEADER(name[,number])

[Arguments]
number
    If not specified, defaults to '1'.

[See Also]
Not available

如果你能告诉我如何使用第二个参数,我将不胜感激。你在开玩笑吗?请正确阅读上面的文档。它准确地说明了要做什么。如果你不懂英语,请使用你的语言资源。如果你能告诉我如何使用第二个参数,我将不胜感激。你在开玩笑吗?请正确阅读上面的文档。它是准确地说出该做什么。如果你不懂英语,请使用你的语言资源。