fax_force_caller variable rework

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9469 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Massimo Cetra 2008-09-05 20:49:23 +00:00
parent 07198a8416
commit cff54e4f6a

View File

@ -456,7 +456,13 @@ void process_fax(switch_core_session_t *session, const char *data, application_m
pvt->verbose = globals.verbose; pvt->verbose = globals.verbose;
} }
pvt->caller = switch_true(switch_channel_get_variable(channel, "fax_force_caller")); if ( (tmp=switch_channel_get_variable(channel, "fax_force_caller")) ) {
if ( switch_true(tmp) ) {
pvt->caller = 1;
} else {
pvt->caller = 0;
}
}
if ((tmp = switch_channel_get_variable(channel, "fax_ident"))) { if ((tmp = switch_channel_get_variable(channel, "fax_ident"))) {
pvt->ident = switch_core_session_strdup(session, tmp); pvt->ident = switch_core_session_strdup(session, tmp);