gpt4 book ai didi

sip - 通过 Asterisk 调用文件发起时添加 SIP header

转载 作者:行者123 更新时间:2023-12-04 18:20:26 26 4
gpt4 key购买 nike

我需要一种在使用 Asterisk 调用文件发起调用时添加 SIP header 的方法。

有什么办法可以在通话文件中添加SIP头吗?

我知道我可以使用 Asterisk AGI 完成此操作,但是我找不到任何使用调用文件添加 SIP header 的解决方案。

最佳答案

您要找的是Set: __SIPADDHEADER1=X-foo:bar
确保在 __SIPADDHEADERN 末尾增加数字“N”至 1 , 2 , ... 100等。否则你将无法添加倍数

这是我用来向我的平台发出测试调用的调用文件中的(授予的、修改的)示例:

Channel: SIP/foodevice/8025551212
Callerid: 8025551111 <some dude>
MaxRetries: 0
RetryTime: 60
WaitTime: 30
Context: testplan_origination
Set: __SIPADDHEADER1=X-testplan:testing1234

请注意 Context: line 还允许您通过进入拨号计划上下文来执行此操作,并且您可以使用@arheops 建议从那里调用您可以执行的操作。

关于sip - 通过 Asterisk 调用文件发起时添加 SIP header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26837462/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com