<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<!--[if lte mso 15 || CheckWebRef]-->
<div id="OwaReferenceAttachments" contenteditable="false">
<table style="padding-bottom: 13px; border-width: 0px; border-style: none;">
<tbody>
<tr valign="top">
<td>
<table style="border-width: 0px 0px 1px 0px; border-color:#C7C7C7; border-style: none none dotted none;">
<tbody>
<tr valign="top">
<td style="padding-bottom:7px;">
<table align="left" style="padding-right: 28px; border-width: 0px; background-color: rgb(255, 255, 255); border-spacing: 0px">
<tbody>
<tr valign="top">
<td style="padding: 0px;">
<div id="OwaReferenceAttachmentDescription" style="padding-left: 3px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(102, 102, 102);">
Snehasish Kar has shared a OneDrive file with you. To view it, click the link below.
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top">
<td><a href="https://1drv.ms/u/s!Ar2IfAyw5vH1gQwV5RARUfsedW9g" target="_blank">
<table align="left" style="padding-right: 28px; padding-bottom:10px; border-width: 0px; height:20px; background-color: rgb(255, 255, 255); border-spacing: 0px">
<tbody>
<tr valign="top">
<td style="padding: 0px;">
<div style="background-color: rgb(255, 255, 255); height: 20px; width: 20px; max-height: 20px;">
<a href="https://1drv.ms/u/s!Ar2IfAyw5vH1gQwV5RARUfsedW9g" target="_blank"><img width="20" style="border:0px;" src="https://r1.res.office365.com/owa/prem/images/dc-generic_20.png"></a></div>
</td>
<td>
<div id="OwaReferenceAttachmentFileName2" style="padding: 0px 0px 0px 5px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">
<a href="https://1drv.ms/u/s!Ar2IfAyw5vH1gQwV5RARUfsedW9g" target="_blank" style="text-decoration: none; margin: 0px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">emlpp_test 1.pcapng</a></div>
</td>
<td style="display:none;visibility:hidden;" width="0" height="0"><img width="0" height="0" style="visibility:hidden;border:0px;display:none" src="dummy.jpg" originalsrc="cid:2533f704-6e9d-444b-b38a-cbf54a08cb34" title="emlpp_test 1.pcapng"></td>
</tr>
</tbody>
</table>
</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div id="OwaReferenceAttachmentsEnd" style="display:none;visibility:hidden;"></div>
<!--[endif]--><!--[if lte mso 15 || CheckWebRef]--><!--[endif]-->
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Harald</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have been able to add priority to the paging and setup command, though it is hard-coded  now, but still please check it and let me know if I am correct or wrong.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
diff --git a/<span style="margin: 0px; color: black; background-color: yellow">openbsc</span>/src/libbsc/abis_rsl.c b/<span style="margin: 0px; color: black; background-color: yellow">openbsc</span>/src/libbsc/abis_rsl.c<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
index 5a508b207..5b45cd497 100644<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
--- a/<span style="margin: 0px; color: black; background-color: yellow">openbsc</span>/src/libbsc/abis_rsl.c<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
+++ b/<span style="margin: 0px; color: black; background-color: yellow">openbsc</span>/src/libbsc/abis_rsl.c<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
@@ -1034,6 +1034,8 @@ int rsl_paging_cmd(struct gsm_bts *bts, uint8_t paging_group, uint8_t len,<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
        if (bts->type == GSM_BTS_TYPE_RBS2000 && is_gprs)<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
                msgb_tv_put(msg, RSL_IE_ERIC_PACKET_PAG_IND, 0);<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
 <br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
+       msgb_tv_put(msg, RSL_IE_EMLPP_PRIO, 0x7f); <br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
+<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
        msg->dst = bts->c0->rsl_link;</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
index 09e35cce2..a7ba85744 100644<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
--- a/openbsc/src/libmsc/gsm_04_08.c<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
+++ b/openbsc/src/libmsc/gsm_04_08.c<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
@@ -2376,7 +2376,7 @@ static int gsm48_cc_tx_setup(struct gsm_trans *trans, void *arg)<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
        /* signal */<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
        if (setup->fields & MNCC_F_SIGNAL)<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
                gsm48_encode_signal(msg, setup->signal);<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
-<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
+       msgb_v_put(msg,GSM48_IE_PRIORITY_LEV | 0xf);<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
        new_cc_state(trans, GSM_CSTATE_CALL_PRESENT);<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
 <br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
        rate_ctr_inc(&trans->net->msc_ctrs->ctr[MSC_CTR_CALL_MT_SETUP]);</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<span>diff --git a/src/common/paging.c b/src/common/paging.c<br>
</span>
<div>index aa604e7..092da05 100644<br>
</div>
<div>--- a/src/common/paging.c<br>
</div>
<div>+++ b/src/common/paging.c<br>
</div>
<div>@@ -293,7 +293,7 @@ static int fill_paging_type_1(uint8_t *out_buf, const uint8_t *identity1_lv,<br>
</div>
<div>                cur = tlv_put(cur, GSM48_IE_MOBILE_ID, identity2_lv[0], identity2_lv+1);<br>
</div>
<div> <br>
</div>
<div>        pt1->l2_plen = L2_PLEN(cur - out_buf);<br>
</div>
<div>-<br>
</div>
<div>+       cur = v_put(cur,/*priority*/0x7f);<br>
</div>
<div>        return cur - out_buf;<br>
</div>
<div> }<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I have attached the wireshark traces please check. Also there is a wireshark dump with airprobe to see whether the paging messages are correctly being transported or not.</div>
<div><br>
</div>
<div>BR</div>
<div>Snehasish</div>
<span></span><br>
</div>
<div style="margin: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: white">
<br>
</div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Harald Welte <laforge@gnumonks.org><br>
<b>Sent:</b> Thursday, December 27, 2018 2:28 AM<br>
<b>To:</b> Snehasish Kar<br>
<b>Cc:</b> openbsc@lists.osmocom.org<br>
<b>Subject:</b> Re: Adding priority for EMLPP service in paging type 1</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Snehasish,<br>
<br>
On Wed, Dec 26, 2018 at 02:13:38PM +0000, Snehasish Kar wrote:<br>
> Please find the updated patches:<br>
<br>
Thanks, there were no requested related pcap traces, though.<br>
<br>
I think you are making the wrong assumption that you can simply add a byte<br>
to the RSL message which then magically appears on the Um interface.  Instead,<br>
you need to study how eMLPP is actually implemented over Abis. There's an additional<br>
information element that needs to be added to the RSL PAGING COMMAND, see Section<br>
8.5.5 of 3GPP TS 48.058.  The IE is of type TV, so you need to msgb_put_tv(...)<br>
to add it.<br>
<br>
Furthermore, you will need to teach OsmoBTS (assuming you are using OsmoBTS) to<br>
interpret that additional IE and then construct the air interface paging rest<br>
octets from it.<br>
<br>
Please also notice that openbsc.git is no longer maintained anymore and it is<br>
strongly suggested you switch to the new "split NITB" architecture consisting of<br>
osmo-bsc.git + osmo-msc.git + osmo-hlr.git.<br>
<br>
We're very much looking forward to receiving your patches contributing eMLPP<br>
support to the Osmocom stack.<br>
<br>
Regards,<br>
        Harald<br>
<br>
-- <br>
- Harald Welte <laforge@gnumonks.org>           <a href="http://laforge.gnumonks.org/">
http://laforge.gnumonks.org/</a><br>
============================================================================<br>
"Privacy in residential applications is a desirable marketing option."<br>
                                                  (ETSI EN 300 175-7 Ch. A6)<br>
</div>
</span></font></div>
</body>
</html>