Hi Denis,
> +
> + number = phone_number_to_string(&req->ph);
> +
> + if (!strcmp(number, "112")) {
> + struct ofono_modem *modem = __ofono_atom_get_modem(vc->atom);
> +
> + __ofono_modem_inc_emergency_mode(modem);
> + }
I think we should do this step in the block of code in
ofono_voicecall_notify dealing with modem callsetup. See below for more:
Emergency mode for all other dial(user initiated, ofono handled setup
call) has been activated before we issue dial request to modem. Also I
believe its better to activate it here rather than in
ofono_voicecall_notify.
Regards,
Jeevaka