[svn-commits] oej: branch oej/codename-pineapple r45206 -
/team/oej/codename-pineapple/chan...
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Mon Oct 16 06:07:39 MST 2006
Author: oej
Date: Mon Oct 16 08:07:38 2006
New Revision: 45206
URL: http://svn.digium.com/view/asterisk?rev=45206&view=rev
Log:
Rev 44641 (rizzo)
Modified:
team/oej/codename-pineapple/channels/chan_sip3.c
Modified: team/oej/codename-pineapple/channels/chan_sip3.c
URL: http://svn.digium.com/view/asterisk/team/oej/codename-pineapple/channels/chan_sip3.c?rev=45206&r1=45205&r2=45206&view=diff
==============================================================================
--- team/oej/codename-pineapple/channels/chan_sip3.c (original)
+++ team/oej/codename-pineapple/channels/chan_sip3.c Mon Oct 16 08:07:38 2006
@@ -13725,20 +13725,11 @@
if (user->maxcallbitrate < 0)
user->maxcallbitrate = global.default_maxcallbitrate;
} else if (!strcasecmp(v->name, "t38pt_udptl")) {
- if (ast_true(v->value)) {
- ast_set_flag(&user->flags[1], SIP_PAGE2_T38SUPPORT_UDPTL);
- } else
- ast_clear_flag(&user->flags[1], SIP_PAGE2_T38SUPPORT_UDPTL);
+ ast_set2_flag(&user->flags[1], ast_true(v->value), SIP_PAGE2_T38SUPPORT_UDPTL);
} else if (!strcasecmp(v->name, "t38pt_rtp")) {
- if (ast_true(v->value)) {
- ast_set_flag(&user->flags[1], SIP_PAGE2_T38SUPPORT_RTP);
- } else
- ast_clear_flag(&user->flags[1], SIP_PAGE2_T38SUPPORT_RTP);
+ ast_set2_flag(&user->flags[1], ast_true(v->value), SIP_PAGE2_T38SUPPORT_RTP);
} else if (!strcasecmp(v->name, "t38pt_tcp")) {
- if (ast_true(v->value)) {
- ast_set_flag(&user->flags[1], SIP_PAGE2_T38SUPPORT_TCP);
- } else
- ast_clear_flag(&user->flags[1], SIP_PAGE2_T38SUPPORT_TCP);
+ ast_set2_flag(&user->flags[1], ast_true(v->value), SIP_PAGE2_T38SUPPORT_TCP);
}
}
ast_copy_flags(&user->flags[0], &userflags[0], mask[0].flags);
@@ -13999,20 +13990,11 @@
if (peer->maxcallbitrate < 0)
peer->maxcallbitrate = global.default_maxcallbitrate;
} else if (!strcasecmp(v->name, "t38pt_udptl")) {
- if (ast_true(v->value)) {
- ast_set_flag(&peer->flags[1], SIP_PAGE2_T38SUPPORT_UDPTL);
- } else
- ast_clear_flag(&peer->flags[1], SIP_PAGE2_T38SUPPORT_UDPTL);
+ ast_set2_flag(&peer->flags[1], ast_true(v->value), SIP_PAGE2_T38SUPPORT_UDPTL);
} else if (!strcasecmp(v->name, "t38pt_rtp")) {
- if (ast_true(v->value)) {
- ast_set_flag(&peer->flags[1], SIP_PAGE2_T38SUPPORT_RTP);
- } else
- ast_clear_flag(&peer->flags[1], SIP_PAGE2_T38SUPPORT_RTP);
+ ast_set2_flag(&peer->flags[1], ast_true(v->value), SIP_PAGE2_T38SUPPORT_RTP);
} else if (!strcasecmp(v->name, "t38pt_tcp")) {
- if (ast_true(v->value)) {
- ast_set_flag(&peer->flags[1], SIP_PAGE2_T38SUPPORT_TCP);
- } else
- ast_clear_flag(&peer->flags[1], SIP_PAGE2_T38SUPPORT_TCP);
+ ast_set2_flag(&peer->flags[1], ast_true(v->value), SIP_PAGE2_T38SUPPORT_TCP);
}
}
if (!ast_test_flag(&global.flags[1], SIP_PAGE2_IGNOREREGEXPIRE) && ast_test_flag(&peer->flags[1], SIP_PAGE2_DYNAMIC) && realtime) {
More information about the svn-commits
mailing list