1)从SIP消息中获取SIP客户端的IP地址和端口信息
一般从mod_sofia模块中使用:
char network_ip[80];
int port = 0;
sofia_glue_get_addr(de->data->e_msg, network_ip, sizeof(network_ip), &port);
本文介绍如何从SIP消息中提取SIP客户端的IP地址及端口信息,通过使用mod_sofia模块提供的sofia_glue_get_addr函数实现。
1)从SIP消息中获取SIP客户端的IP地址和端口信息
一般从mod_sofia模块中使用:
char network_ip[80];
int port = 0;
sofia_glue_get_addr(de->data->e_msg, network_ip, sizeof(network_ip), &port);

被折叠的 条评论
为什么被折叠?