<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">hello dears ,</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"> </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">i'm trying to use "<span>http_client" module to post  SMS from kamailio to kannel using the following configuration : </span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="">
<pre style="color: rgb(0, 0, 0); font-family: "Courier New", monospace; font-size: 10pt; background-color: rgb(255, 255, 255);"><span style="color: rgb(85, 85, 85);">.......</span></pre>
<pre style="color: rgb(0, 0, 0); font-family: "Courier New", monospace, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 10pt; background-color: rgb(255, 255, 255);"><span style="color: rgb(85, 85, 85);"><span><span>modparam("http_client", "httpcon", "kannel=>http://username:password@127.0.0.1:443")<br></span><span></span></span><span></span>..........</span></pre>
<pre style="color: rgb(0, 0, 0); font-family: "Courier New", monospace, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 10pt; background-color: rgb(255, 255, 255);"><span style="color: rgb(85, 85, 85);">.........</span></pre>
<pre style="color: rgb(0, 0, 0); font-family: "Courier New", monospace; font-size: 10pt; background-color: rgb(255, 255, 255);"></pre>
<font color="#000000" face="Calibri, Helvetica, sans-serif"><span style="font-size: 12pt;">http_connect("kannel","cgi-bin/sendsms?user=username&pass=password&charset=utf-16&coding=2&from=$avp(from)&to=$avp(to)&text=$(avp(text){</span></font><span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">s.escape.user})","$var(result)");<br>
</span><font color="#000000" face="Calibri, Helvetica, sans-serif"><span style="font-size: 12pt;"></span></font>
<pre style="color: rgb(0, 0, 0); font-family: "Courier New", monospace; font-size: 10pt; background-color: rgb(255, 255, 255);"><span style="margin: 0px; color: rgb(85, 85, 85)">.......</span></pre>
<div style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">
And this test success for English characters & phrases, but when i'm trying to send Arabic or Chinese characters it only success if the content of the SMS only has one word.<br>
</div>
</div>
<span>in other-word i mean when i'm trying to send more than one Arabic word with a space between each word it reply with HTTP error code 400. </span>
<div><br>
</div>
<div>so do you have any ideas about this problem  ?? </div>
</body>
</html>