提交 decaf14b authored 作者: Anthony Minessale's avatar Anthony Minessale

name first then number if it's blank

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@663 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 f931915e
......@@ -607,7 +607,11 @@ static int on_ring(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_event
memset(&zchan->caller_data, 0, sizeof(zchan->caller_data));
zap_set_string(zchan->caller_data.cid_num.digits, (char *)pevent->ring.callingnum);
zap_set_string(zchan->caller_data.cid_name, (char *)pevent->ring.callingnum);
if (!zap_strlen_zero((char *)pevent->ring.callingname)) {
zap_set_string(zchan->caller_data.cid_name, (char *)pevent->ring.callingname);
} else {
zap_set_string(zchan->caller_data.cid_name, (char *)pevent->ring.callingnum);
}
zap_set_string(zchan->caller_data.ani.digits, (char *)pevent->ring.callingani);
zap_set_string(zchan->caller_data.dnis.digits, (char *)pevent->ring.callednum);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论