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报头中提取自定义值?
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!