<div dir="ltr">Hi all,<div><br><div>I'm trying in KEMI & Python to set a Pseudo Variable to the value of another PV (simple enough) but the value of the PV is not a string or an integer,</div><div><br></div><div>For example the <a href="https://github.com/kamailio/kamailio/tree/master/src/modules/smsops" target="_blank">SMSops</a> module has a PV called <font face="monospace">$smsbody</font> which I need to set the message body to equal in UAC, but I'm not able to load it to set it as the message body,</div><div><br></div><div>In my Python file I have:</div><div><font face="monospace">smsbody = KSR.pv.get("$smsbody")</font></div><div><br></div><div>Which leads to:</div><div><font face="monospace">kamailio[226069]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 7: invalid start byte<br>kamailio[226069]:  2(226069) DEBUG: app_python3 [apy_kemi.c:112]: sr_kemi_config_engine_python(): execution of route type 1 with no name returned -1</font><br><br></div><div><b>Is there a way to set a PV in Kemi without actually interpreting it?</b></div><div><b><br></b></div><div><b>Is there a way to run an arbitrary line of native Kamailio config from Kemi like KSR.x.modf? </b></div><div><br></div><div>In reality all I need to do is:</div><div><font face="monospace">$uac_req(body) = $smsbody; </font></div><div><br></div><div>Would work fine in the native config, but the equivalent in Kemi tries to parse the contents and fails, so can't set the body.<br></div><div><br></div><div>Cheers,</div><div>Nick</div><div><br></div><div><br></div></div></div>