summaryrefslogtreecommitdiff
path: root/res/res_sip_caller_id.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-07-18 19:25:51 +0000
committerMark Michelson <mmichelson@digium.com>2013-07-18 19:25:51 +0000
commitc47787feab34d9572b41ebe7148c169b52362fbd (patch)
tree85410d3780938b31d9605f6d05cef9a744c3932d /res/res_sip_caller_id.c
parent3c86832f9f271c8d479cf956155424fda512c76b (diff)
Add a bunch of options from sip.conf to res_sip.conf
For a complete list of the options added, see the review linked at the bottom of this commit message. (closes issue ASTERISK-21506) reported by Matt Jordan Review: https://reviewboard.asterisk.org/r/2671 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sip_caller_id.c')
-rw-r--r--res/res_sip_caller_id.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_sip_caller_id.c b/res/res_sip_caller_id.c
index 3a8c26771..be88606f5 100644
--- a/res/res_sip_caller_id.c
+++ b/res/res_sip_caller_id.c
@@ -398,7 +398,9 @@ static void modify_id_header(pj_pool_t *pool, pjsip_fromto_hdr *id_hdr, const st
pj_strdup2(pool, &id_name_addr->display, id->name.str);
}
- pj_strdup2(pool, &id_uri->user, id->number.str);
+ if (id->number.valid) {
+ pj_strdup2(pool, &id_uri->user, id->number.str);
+ }
}
/*!