Hello Here is another RFC patchset about implementing automatic provisioning of Internet and MMS GPRS context settings. ("Internet Access Provider database" TODO item).
In case there are no previously configured contexts found during gprs atom registration, this code tries to provision Internet and MMS contexts based on MCC, MNC and SPN (Service Provider Name) values read from SIM. Settings are read from an operator settings database. Settings database is an XML formatted file (combination of all xml-files in a directory), containing one element per settings for a specific type of GPRS context (internet, mms) Example: <?xml version="1.0"?> <settings> <access type="internet" mcc="246" mnc="81" spn="oFono" name="Phonesim Internet-GPRS" apn="internet.apn"/> <access type="mms" mcc="246" mnc="81" spn="oFono" name="Phonesim MMS-GPRS" apn="mms.apn" protocol="ipv4" username="mmsuser" password="mmspass" proxy="10.11.12.13:8080" mmsserver="http://mms.example.com:8000"/> </settings> Provisioning logic: first try to find exact match for type,MCC,MNC and SPN. If that fails (or if SPN read from SIM is missing/empty), we select first match for type/MCC/MNC. If also that fails, an empty context is created (as currently). Patches also add new function ofono_sim_get_mnc_length to SIM atom API for figuring out MNC value. --Jukka Saunamäki _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono