mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
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:
parent
07198a8416
commit
cff54e4f6a
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user