<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below patch allows user to configure roaming in /etc/config/network along with other parameters such as apn. This patch is generated from Mobile Broadband OpenWRT git (<a href="https://gitlab.freedesktop.org/mobile-broadband/mobile-broadband-openwrt">https://gitlab.freedesktop.org/mobile-broadband/mobile-broadband-openwrt</a>).
 I’ve tested it in my EM7455 setup.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Amol<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">From 179492c83db02011cdd57f41e03ebe9dab204cdf Mon Sep 17 00:00:00 2001<o:p></o:p></p>
<p class="MsoNormal">From: "amol.lad" <amol.lad@4rf.com><o:p></o:p></p>
<p class="MsoNormal">Date: Thu, 12 Sep 2019 11:45:30 +0530<o:p></o:p></p>
<p class="MsoNormal">Subject: [PATCH] support allow-roaming property in openwrt protocol handler<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">---<o:p></o:p></p>
<p class="MsoNormal">README                                | 1 +<o:p></o:p></p>
<p class="MsoNormal">modemmanager/files/modemmanager.proto | 7 ++++---<o:p></o:p></p>
<p class="MsoNormal">2 files changed, 5 insertions(+), 3 deletions(-)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">diff --git a/README b/README<o:p></o:p></p>
<p class="MsoNormal">index 04feff0..0883a94 100644<o:p></o:p></p>
<p class="MsoNormal">--- a/README<o:p></o:p></p>
<p class="MsoNormal">+++ b/README<o:p></o:p></p>
<p class="MsoNormal">@@ -42,3 +42,4 @@ Install it in the following way:<o:p></o:p></p>
<p class="MsoNormal">         option password 'vodafone'<o:p></o:p></p>
<p class="MsoNormal">         option pincode  '7423'<o:p></o:p></p>
<p class="MsoNormal">         option lowpower '1'<o:p></o:p></p>
<p class="MsoNormal">+        option roaming  '0'<o:p></o:p></p>
<p class="MsoNormal">diff --git a/modemmanager/files/modemmanager.proto b/modemmanager/files/modemmanager.proto<o:p></o:p></p>
<p class="MsoNormal">index 00a4278..71769f1 100755<o:p></o:p></p>
<p class="MsoNormal">--- a/modemmanager/files/modemmanager.proto<o:p></o:p></p>
<p class="MsoNormal">+++ b/modemmanager/files/modemmanager.proto<o:p></o:p></p>
<p class="MsoNormal">@@ -246,6 +246,7 @@ proto_modemmanager_init_config() {<o:p></o:p></p>
<p class="MsoNormal">               proto_config_add_string              pincode<o:p></o:p></p>
<p class="MsoNormal">               proto_config_add_string              iptype<o:p></o:p></p>
<p class="MsoNormal">               proto_config_add_boolean lowpower<o:p></o:p></p>
<p class="MsoNormal">+             proto_config_add_boolean roaming<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"> proto_modemmanager_setup() {<o:p></o:p></p>
<p class="MsoNormal">@@ -254,8 +255,8 @@ proto_modemmanager_setup() {<o:p></o:p></p>
<p class="MsoNormal">               local modempath modemstatus bearercount bearerpath connectargs bearerstatus beareriface method<o:p></o:p></p>
<p class="MsoNormal">               local operatorname operatorid registration accesstech signalquality<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">-              local device apn username password pincode iptype metric<o:p></o:p></p>
<p class="MsoNormal">-              json_get_vars device apn username password pincode iptype metric<o:p></o:p></p>
<p class="MsoNormal">+             local device apn username password pincode iptype roaming metric<o:p></o:p></p>
<p class="MsoNormal">+             json_get_vars device apn username password pincode iptype roaming metric<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">                # validate sysfs path given in config<o:p></o:p></p>
<p class="MsoNormal">               [ -n "${device}" ] || {<o:p></o:p></p>
<p class="MsoNormal">@@ -286,7 +287,7 @@ proto_modemmanager_setup() {<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">                # setup connect args; APN mandatory (even if it may be empty)<o:p></o:p></p>
<p class="MsoNormal">               echo "starting connection with apn '${apn}'..."<o:p></o:p></p>
<p class="MsoNormal">- connectargs="apn=${apn}${username:+,user=${username}}${password:+,password=${password}}${pincode:+,pin=${pincode}}${iptype:+,ip-type=${iptype}}"<o:p></o:p></p>
<p class="MsoNormal">+ connectargs="apn=${apn}${username:+,user=${username}}${password:+,password=${password}}${pincode:+,pin=${pincode}}${iptype:+,ip-type=${iptype}}${roaming:+,allow-roaming=${roaming}}"<o:p></o:p></p>
<p class="MsoNormal">               /usr/bin/mmcli --modem="${device}" --timeout 120 --simple-connect="${connectargs}" || {<o:p></o:p></p>
<p class="MsoNormal">                               proto_notify_error "${interface}" CONNECT_FAILED<o:p></o:p></p>
<p class="MsoNormal">                               proto_block_restart "${interface}"<o:p></o:p></p>
<p class="MsoNormal">-- <o:p></o:p></p>
<p class="MsoNormal">2.17.1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<font color="#9a9a9a"><font style="FONT-SIZE: 8pt" face="Arial">
<hr style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">
The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information
 or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return
 email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any
 action or lack of action taken in reliance on it).</font> </font>
</body>
</html>