<div dir="ltr">That saved lives and many worried families are relieved!<div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Feb 19, 2016 at 3:43 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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<div><div class="h5"><br>
<br>
<div>On 19/02/16 08:39, Sid Mason wrote:<br>
</div>
<blockquote 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 style="white-space:pre-wrap"> </span>ds_mark_dst("P");</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>if(!ds_select_dst("1",
"4")) {</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>sl_send_reply("500",
"Service Unavailable");</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>xlog("L_INFO","[$fU@$si:$sp]{$rm}
No destinations available for $rd \n");</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>exit;</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>}</font></div>
<div><span style="white-space:pre-wrap"><font face="monospace, monospace"> </font></span></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>#
Replace FROM header to Kamailio's address</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>#
<a href="http://www.kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_replace_from" target="_blank">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 style="white-space:pre-wrap"> </span>uac_replace_from("",<a>"sip:$sel(cfg_get.kamailio.bind_external_domain):5060"</a>);</font></div>
<div><span style="white-space:pre-wrap"><font face="monospace, monospace"> </font></span></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>#
rewrite Destinatin URI</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>#$du=
$au + "@<a href="http://10.1.4.22:5060" target="_blank">10.1.4.22:5060</a>";</font></div>
<div><span style="white-space:pre-wrap"><font face="monospace, monospace"> </font></span></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>#
Add Remote-Party-ID to header</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>append_hf("Remote-Party-ID:
\"$au\"
<a><sip:$au@$sel(cfg_get.kamailio.bindip_external)></a>;party=calling;privacy=off;screen=no");</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </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 style="white-space:pre-wrap"> </span>rtpproxy_manage("cawei");</font></div>
<div><font face="monospace, monospace"><br>
</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </span>route(RELAY);</font></div>
<div><font face="monospace, monospace"><span style="white-space:pre-wrap"> </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 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 style="font-size:12.8px">build_local_reparse</span><span style="font-size:12.8px">(): </span><span style="font-size:12.8px">ERROR</span><span style="font-size:12.8px">: </span><span style="font-size:12.8px">build_local_reparse</span><span style="font-size:12.8px">: </span><span style="font-size:12.8px">HDR_EOH_T</span><span style="font-size:12.8px"> was </span><span style="font-size:12.8px">not</span><br style="font-size:12.8px">
<span style="font-size:12.8px"> </span><span style="font-size:12.8px">found</span><br style="font-size:12.8px">
<span style="font-size:12.8px">Message-ID: <</span><a href="mailto:56B79AFD.8010505@gmail.com" style="font-size:12.8px" target="_blank"></a><a href="mailto:56B79AFD.8010505@gmail.com" target="_blank">56B79AFD.8010505@gmail.com</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>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://miconda.eu" target="_blank">http://miconda.eu</a></pre>
</font></span></div>
</blockquote></div><br></div></div>