<div><div dir="auto">Sure you can. Take a look at header manipulation with pseudovariankes and http_client module in <div><a href="https://www.kamailio.org/docs/modules/stable/modules/http_client.html">https://www.kamailio.org/docs/modules/stable/modules/http_client.html</a></div><div dir="auto"><br></div><div dir="auto">You can start with the default config and take it from there.</div><div dir="auto"><br></div><div dir="auto">If you don’t know kamailio at all, don’t be afraid to ask here for help.</div><div dir="auto"><br></div><div dir="auto">You may also be interested in <div dir="auto"><a href="https://www.kamailio.org/dokuwiki/doku.php">https://www.kamailio.org/dokuwiki/doku.php</a> and there’s a couple of videos there.</div><div dir="auto"><br></div><div dir="auto">Good luck!</div><div dir="auto"><br></div><div dir="auto">David</div></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 19 Jan 2021 at 20:50, Mark Lawrence <<a href="mailto:marklawrence@hotmail.co.uk" target="_blank">marklawrence@hotmail.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">





<div lang="EN-GB" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div>
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sorry for the intrusion and asking directly, but there’s so much information out there that I would spend years looking for the answer myself and spending equal amount of time in a lab playing. I do like the last idea but time is a little
 short. </p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m thinking of using Kamailio to overcome a few downfalls in the main SBC/PBX commercial product space that I’ve typically deployed and wanted to ask if it is possible to use as a stateful proxy and carry out the following header manipulation
 type scenario with a bit more dynamassium:</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Use the FROM and TO header to create two value pairs that would be sent via a REST request to an external application, which will return two corresponding values to (a) supply a different value to update the original FROM header and (b)
 a full PAI sting to add on to the outgoing message.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If you have experience of this or if it’s a nonstarter I’d love to know.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">There’s so many modules and great stuff that you have in your toy chest it is amazing and kudos to all you developers being so inventive out there: it leaves me to think I’ve been deploying SIP wrong all these years.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks and keep safe and well, Mark</p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>
</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>