[asterisk-commits] file: trunk r103386 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 12 09:13:06 CST 2008
Author: file
Date: Tue Feb 12 09:13:06 2008
New Revision: 103386
URL: http://svn.digium.com/view/asterisk?view=rev&rev=103386
Log:
Merged revisions 103385 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r103385 | file | 2008-02-12 11:09:24 -0400 (Tue, 12 Feb 2008) | 4 lines
Even if no CallerID name or number has been provided by the remote party still use the configured sip.conf ones.
(closes issue #11977)
Reported by: pj
........
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=103386&r1=103385&r2=103386
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Feb 12 09:13:06 2008
@@ -11004,13 +11004,13 @@
ast_set_flag(&p->flags[0], SIP_CALL_LIMIT);
if (!ast_strlen_zero(user->context))
ast_string_field_set(p, context, user->context);
- if (!ast_strlen_zero(user->cid_num) && !ast_strlen_zero(p->cid_num)) {
+ if (!ast_strlen_zero(user->cid_num)) {
char *tmp = ast_strdupa(user->cid_num);
if (ast_is_shrinkable_phonenumber(tmp))
ast_shrink_phone_number(tmp);
ast_string_field_set(p, cid_num, tmp);
}
- if (!ast_strlen_zero(user->cid_name) && !ast_strlen_zero(p->cid_num))
+ if (!ast_strlen_zero(user->cid_name))
ast_string_field_set(p, cid_name, user->cid_name);
ast_string_field_set(p, username, user->name);
ast_string_field_set(p, peername, user->name);
@@ -11147,13 +11147,13 @@
/* XXX this takes the name from the caller... can we override ? */
ast_string_field_set(p, authname, peer->username);
}
- if (!ast_strlen_zero(peer->cid_num) && !ast_strlen_zero(p->cid_num)) {
+ if (!ast_strlen_zero(peer->cid_num)) {
char *tmp = ast_strdupa(peer->cid_num);
if (ast_is_shrinkable_phonenumber(tmp))
ast_shrink_phone_number(tmp);
ast_string_field_set(p, cid_num, tmp);
}
- if (!ast_strlen_zero(peer->cid_name) && !ast_strlen_zero(p->cid_name))
+ if (!ast_strlen_zero(peer->cid_name))
ast_string_field_set(p, cid_name, peer->cid_name);
ast_string_field_set(p, fullcontact, peer->fullcontact);
if (!ast_strlen_zero(peer->context))
More information about the asterisk-commits
mailing list