<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You have to put end of line \r\n at the end of the parameter for
append_hf().<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 19/02/16 08:39, Sid Mason wrote:<br>
</div>
<blockquote
cite="mid:CAEmfXJ4XC9m+YyUbbxH8Unkoz1gLStb=y8D5xRkSXPOymmFM=Q@mail.gmail.com"
type="cite">
<div dir="ltr">Yes, there is a append_hf("Remote-Party-ID:
<div><br>
</div>
<div>below is the complete section:</div>
<div><br>
</div>
<div><font face="monospace, monospace"><br>
</font></div>
<div>
<div><font face="monospace, monospace"># Send to Asterisk</font></div>
<div><font face="monospace, monospace">route[TOASTERISK] {</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>ds_mark_dst("P");</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>if(!ds_select_dst("1",
"4")) {</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>sl_send_reply("500",
"Service Unavailable");</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>xlog("L_INFO","[$fU@$si:$sp]{$rm}
No destinations available for $rd \n");</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>exit;</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>}</font></div>
<div><span class="" style="white-space:pre"><font face="monospace, monospace"> </font></span></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>#
Replace FROM header to Kamailio's address</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>#
<a moz-do-not-send="true"
href="http://www.kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_replace_from">http://www.kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_replace_from</a></font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>uac_replace_from("",<a class="moz-txt-link-rfc2396E" href="sip:$sel(cfg_get.kamailio.bind_external_domain):5060">"sip:$sel(cfg_get.kamailio.bind_external_domain):5060"</a>);</font></div>
<div><span class="" style="white-space:pre"><font face="monospace, monospace"> </font></span></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>#
rewrite Destinatin URI</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>#$du=
$au + "@<a moz-do-not-send="true"
href="http://10.1.4.22:5060">10.1.4.22:5060</a>";</font></div>
<div><span class="" style="white-space:pre"><font face="monospace, monospace"> </font></span></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>#
Add Remote-Party-ID to header</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>append_hf("Remote-Party-ID:
\"$au\"
<a class="moz-txt-link-rfc2396E" href="sip:$au@$sel(cfg_get.kamailio.bindip_external)"><sip:$au@$sel(cfg_get.kamailio.bindip_external)></a>;party=calling;privacy=off;screen=no");</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>xlog("L_INFO","route[TOASTERISK]:
[$fU@$si:$sp]{$rm} From Outside World to Asterisk Box
$du\n");</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>rtpproxy_manage("cawei");</font></div>
<div><font face="monospace, monospace"><br>
</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>route(RELAY);</font></div>
<div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>exit;</font></div>
<div><font face="monospace, monospace">}</font></div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div><br>
</div>
<span style="font-size:12.8px">Subject: Re: [SR-Users] </span><span
class="" style="font-size:12.8px">Error</span><span
style="font-size:12.8px"> or Bug: [t_msgbuilder.c:490]:</span><br
style="font-size:12.8px">
<span style="font-size:12.8px"> </span><span class=""
style="font-size:12.8px">build_local_reparse</span><span
style="font-size:12.8px">(): </span><span class=""
style="font-size:12.8px">ERROR</span><span
style="font-size:12.8px">: </span><span class=""
style="font-size:12.8px">build_local_reparse</span><span
style="font-size:12.8px">: </span><span class=""
style="font-size:12.8px">HDR_EOH_T</span><span
style="font-size:12.8px"> was </span><span class=""
style="font-size:12.8px">not</span><br
style="font-size:12.8px">
<span style="font-size:12.8px"> </span><span class=""
style="font-size:12.8px">found</span><br
style="font-size:12.8px">
<span style="font-size:12.8px">Message-ID: <</span><a
moz-do-not-send="true"
href="mailto:56B79AFD.8010505@gmail.com"
style="font-size:12.8px"><a class="moz-txt-link-abbreviated" href="mailto:56B79AFD.8010505@gmail.com">56B79AFD.8010505@gmail.com</a></a><span
style="font-size:12.8px">></span><br
style="font-size:12.8px">
<span style="font-size:12.8px">Content-Type: text/plain;
charset="windows-1252"</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">Hello,</span><br
style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">do you have an action like:</span><br
style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">append_hf("Remote-Party-ID:
...");</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">in kamailio.cfg?</span><br
style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">Can you paste all that action
here?</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">Cheers,</span><br
style="font-size:12.8px">
<span style="font-size:12.8px">Daniel</span><br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</body>
</html>