<div dir="ltr">On 1 July 2013 09:35, Marc Storck <span dir="ltr"><<a href="mailto:mstorck@voipgate.com" target="_blank">mstorck@voipgate.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>I modified the nginx.conf template in /etc/ngcp-config/templates/etc/nginx/nginx.conf.tt2</div><div><br></div><div>The location part now shows:</div>
<div><br></div><div><div> location ~ ^/xcap {</div><div> set $host2 $host;</div><div><br></div><div> if ($host2 ~* "^xcap\.(.*)" )</div><div> {</div>
<div> set $host2 $1;</div><div> }</div><div><br></div><div> proxy_pass http://[% sip_int_ips.0 %]:[% kamailio.proxy.port %];</div><div> proxy_set_header P-NGCP-Src-Ip $remote_addr;</div>
<div> proxy_set_header P-NGCP-Src-Port $remote_port;</div><div> proxy_set_header P-NGCP-XCAP-Host $host2;</div><div> proxy_send_timeout 10s;</div><div>
proxy_read_timeout 10s;</div><div> }</div></div><div><br></div><div>There are probably other and better ways to accomplish this, but it works for me, so I didn't bother to look further.</div>
<div><br></div></div></blockquote><div><br></div>Thanks Marc,<div><br></div><div>I have sent patches to the list for a solution to this issue based on the same technique. </div><div><br></div><div style>-Barry Flanagan</div>
</div></div></div>