<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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);">
Thanks Johan.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I generated the residential config and am using that now. It looks as follows:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures">route{</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!mf_process_maxfwd_header(10)) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>send_reply(483,"Too Many Hops");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (has_totag()) {</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># handle hop-by-hop ACK (no routing required)</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if ( is_method("ACK") && t_check_trans() ) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>t_relay();</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># sequential request within a dialog should</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># take the path determined by record-routing</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if ( !loose_route() ) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># we do record-routing for all our traffic, so we should not</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># receive any sequential requests without Route hdr.</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>send_reply(404,"Not here");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (is_method("BYE")) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># do accounting even if the transaction fails</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>do_accounting("log","failed");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># route it out to whatever destination was set by loose_route()</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># in $du (destination URI).</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>route(relay);</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># CANCEL processing</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (is_method("CANCEL")) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (t_check_trans())</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>t_relay();</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># absorb retransmissions, but do not create transaction</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>t_check_trans();</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if ( !(is_method("REGISTER")<span class="Apple-converted-space"> </span>) ) {</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (is_myself("$fd")) {</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>} else {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># if caller is not local, then called number must be local</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!is_myself("$rd")) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>send_reply(403,"Relay Forbidden");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># preloaded route checking</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (loose_route()) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>xlog("L_ERR",</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>"Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!is_method("ACK"))</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>send_reply(403,"Preload Route denied");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># record routing</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!is_method("REGISTER|MESSAGE"))</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>record_route();</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># account only INVITEs</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (is_method("INVITE")) {</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>do_accounting("log");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!is_myself("$rd")) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>append_hf("P-hint: outbound\r\n");</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>route(relay);</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># requests for my domain</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (is_method("PUBLISH|SUBSCRIBE")) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>send_reply(503, "Service Unavailable");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (is_method("REGISTER")) {</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if ($socket_in(proto) == "tcp")</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>setflag("TCP_PERSISTENT");</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!save("location"))</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>sl_reply_error();</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if ($rU==NULL) {</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># request with no Username in RURI</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>send_reply(484,"Address Incomplete");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># do lookup with method filtering</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>if (!lookup("location","m")) {</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>t_reply(404, "Not Found");</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>exit;</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>}</span></p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p1" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85);min-height:14px">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span># when routing via usrloc, log the missed calls also</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>do_accounting("log","missed");</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures"><span class="Apple-converted-space">
</span>route(relay);</span></p>
<p class="p2" style="margin:0px;font:10px Monaco;color:rgb(242, 242, 242);background-color:rgba(0, 0, 0, 0.85)">
<span class="s1" style="font-variant-ligatures:no-common-ligatures">}</span></p>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm not sure where I should be adding the sethostport in this config.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any further pointers would be great or to a relevant mail or tutorial.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Conor</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Users <users-bounces@lists.opensips.org> on behalf of Johan De Clercq <Johan@democon.be><br>
<b>Sent:</b> Wednesday, January 13, 2021 12:27 AM<br>
<b>To:</b> OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject:</b> Re: [OpenSIPS-Users] OpenSIPS as simple SIP proxy</font>
<div> </div>
</div>
<div>
<div dir="ltr">take the residential config and see where that gets you. <br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Op wo 13 jan. 2021 om 08:21 schreef Conor Power <<a href="mailto:conorjpower@hotmail.com">conorjpower@hotmail.com</a>>:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Apologies for the noob question but I'm hoping someone can point me in the right direction.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am trying to use OpenSIPS as a simple proxy to proxy all calls to another SIP endpoint and back again to the original client. The only role of the OpenSIPS server is to function as the proxy and it is for all requests.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have OpenSIPS up and running and can see the requests coming inbound using ngrep but I've had no success proxying the requests.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I added a sethostport() call in the config file but really am not sure where or how it fits in.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
If someone might point me to a simple config file that would be used for such a proxy setup, it would be greatly appreciated.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Conor</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
</div>
</body>
</html>