gpt4 book ai didi

How go get custom value of SIP header in FreeSWITCH SIP BYE(如何获取FreeSWITCH SIP BYE中的SIP标头自定义值)

转载 作者:bug小助手 更新时间:2023-10-24 19:32:42 29 4
gpt4 key购买 nike



I want to get value of Custom-Order in SIP BYE header. I've tried to use ${sip_bye_h_Custom-Order} but it's empty, because have no X- prefix before header name.

我想在SIPBYE报头中获取Custom-Order的值。我尝试使用${sip_yee_h_Custom-Order},但它是空的,因为头名称前没有X前缀。


I can edit freeswitch sofia.c for support get value of Custom-Order in SIP INVITE.
FreeSWITCH version is 1.10.8

我可以编辑freeswitch sofia.c以支持在SIP邀请中获得定制订单的值。FreeSWITCH版本为1.10.8


// sofia_handle_sip_i_invite() is just work for invite header
} else if (!strcasecmp(un->un_name, "CALLED_DID")) {
switch_channel_set_variable(channel, "called_did", un->un_value);
**// add below code**
} else if (!strcasecmp(un->un_name, "Custom-Order"))
switch_channel_set_variable(channel, "custom_order", un->un_value);
}

How can I edit 'sofia.c' for support get value of 'Custom-Order' in SIP BYE. Is need to edit sofia_handle_sip_i_bye() ?

如何在SIP BYE中编辑“sofia.c”以获取“Custom-Order”的支持值。是否需要编辑sofia_handle_sip_i_bye()?


Is there any other method to extract custom value from SIP BYE header?

有没有其他方法可以从SIPBYE报头中提取自定义值?


更多回答
优秀答案推荐
更多回答

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