<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>still not very clear for me: if you want to set the body to hex
string, it should work, the hex string should not create any
problem.</p>
<p>It is good that smsops cover those cases now. If you want to
investigate other directions, then:<br>
</p>
<p>If you have a multi-part body, there is another function that can
be useful, see:</p>
<p> *
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/textops.html#textops.f.append_body_part_hex">https://www.kamailio.org/docs/modules/stable/modules/textops.html#textops.f.append_body_part_hex</a></p>
<p>Moreover, there are transformations to encode/decode hex strings,
they may be useful. And, at the end, adding a function to set any
type of body should be not much C coding, you can look at the
functions from textops module.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 02.05.21 23:41, Nick wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALxx1oEE7QQCCmByd6imcEsNLudP6=nErnjtDR4N1LV44DAtow@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Daniel,
<div>This is to do with sending IMS SMS, where the SIP Body is
encoded as GSM A (GSM 03.38) containing the SMS TPDU.</div>
<div>There's a few things the <b>smsops</b> module
couldn't handle, I'm using Kemi so I was able to correctly
encode / decode the values we needed using an external library
but then couldn't encode this as the message body.</div>
<div>Ideally I'd be able to take the output of the external
library to encode as the message body (in hex as it would be
on the wire) and set it as the message body, but I imagine
this is a bit of an edge-case so probably not much demand for
it.</div>
<div>In the end some recent commits that addressed the same
issues with smsops I was facing enabled me to use the smsops
module to do everything I needed,</div>
<div>Cheers,</div>
<div>Nick</div>
<div><br>
</div>
<br>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr 26, 2021 at 6:52
PM Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com" target="_blank"
moz-do-not-send="true">miconda@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
On 24.04.21 12:32, Nick wrote:<br>
> Hi all,<br>
><br>
> It seems in the UAC module the $uac_req(body) PV is
evaluated as a string,<br>
><br>
> How can I set the value of the request body of a
generated request, to<br>
> a raw hex value without it being interpreted as a string?<br>
<br>
Kamailio configuration file works only with integer and
strings.<br>
<br>
Can you give an explicit example of what you try and what you
expect to<br>
happen?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com"
rel="noreferrer" target="_blank" moz-do-not-send="true">www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer"
target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a>
-- <a href="http://www.linkedin.com/in/miconda"
rel="noreferrer" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training - Online<br>
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America
Timezone)<br>
* <a
href="https://www.asipto.com/sw/kamailio-advanced-training-online/"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://www.asipto.com/sw/kamailio-advanced-training-online/</a><br>
<br>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>