Hi, I'm facing an issue with oFono when the application is trying to establish a ppp data connection.
The context is firstly activated by the application and kept until oFono gets an 'NW DETACH' event. ofonod[758]: App: < \r\n+CGEV: NW DETACH\r\n ofonod[758]: gprs.c:cgev_notify() event: NW DETACH ofonod[758]: gprs.c:ofono_gprs_detached_notify() ofonod[758]: gprs-context.c:at_gprs_detach_shutdown() cid 1 At that time, oFono attempts to close the link properly. However, it takes few seconds before getting the state notified as 'CLOSED' and the 'pppcp_this_layer_finished()' function called. During this interval, the Packet Domain network registration status is reported as registered: ofonod[758]: gprs.c:cgreg_notify() 5 ofonod[758]: gprs.c:ofono_gprs_status_notify() The 'ppp_disconnect()' function is not triggered yet, but the application attempts to re-activate the context anyway because the 'Attached' gprs property has been updated and signaled as TRUE. Then 'ppp_disconnect()' is triggered. ofonod[758]: gatppp.c:ppp_dead() ofonod[758]: gprs-context.c:ppp_disconnect() Reason: 6 ofonod[758]: gprs.c:pri_activate_callback() 0x5508c8 ofonod[758]: gprs.c:pri_activate_callback() Activating context failed with error: Unknown error type At this time the gprs context state equals to "Enabling", due to the latest appliction request => the 'pri_activate_callback()' callback is executed. oFono gets a "NO CARRIER" from the modem, but it trigges the 'at_cgdcont_cb()' with error. => The pri_activate_callback() is called twice with error ofonod[758]: gprs-context.c:ppp_disconnect() ofonod[758]: gprs.c:pri_activate_callback() 0x19b7978 ofonod[758]: gprs.c:pri_activate_callback() Activating context failed with error: Unknown error type ofonod[758]: gprs-context.c:at_cgdcont_cb() ok 0 ofonod[758]: gprs.c:pri_activate_callback() 0x19b7978 ofonod[758]: gprs.c:pri_activate_callback() Activating context failed with error: Unknown error type Because the 'DBusMessage' has been already freed, oFono aborts. Is there a proper way to prevent this unexpected situation ? It already tried to catch the 'NO CARRIER' final response without sucess. Regards, Nicolas. _______________________________________________ ofono mailing list [email protected] https://lists.ofono.org/mailman/listinfo/ofono
