diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-08 01:55:31 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-08 01:55:31 +0000 |
commit | df706a8900728f959c8f227580fe45227495fb81 (patch) | |
tree | ce21ec4bfdeea79845fbbf2eb5308a2e6d513fc8 /channels/chan_sip.c | |
parent | 82616a4d97f94c6988c4db02adb6b10f77891c89 (diff) |
issue #5648
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7985d0633..29fdfa23a 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4845,14 +4845,14 @@ static int transmit_invite(struct sip_pvt *p, int sipmethod, int sdp, int init) add_header(&req, "Referred-By", p->referred_by); } #ifdef OSP_SUPPORT - if (p->options && p->options->osptoken && !ast_strlen_zero(p->options->osptoken)) { + if (p->options && !ast_strlen_zero(p->options->osptoken)) { ast_log(LOG_DEBUG,"Adding OSP Token: %s\n", p->options->osptoken); add_header(&req, "P-OSP-Auth-Token", p->options->osptoken); } else { ast_log(LOG_DEBUG,"NOT Adding OSP Token\n"); } #endif - if (p->options && p->options->distinctive_ring && !ast_strlen_zero(p->options->distinctive_ring)) + if (p->options && !ast_strlen_zero(p->options->distinctive_ring)) { add_header(&req, "Alert-Info", p->options->distinctive_ring); } |