You can relay the register to sipgate, so when auth is done, then you can forward it.<br><br>consume_credentials();<br>$du = &quot;sip:sipgate_ip_goes_here:port&quot;;<br>t_relay();<br>exit;<br><br>so instead of doing if (!save(&quot;location&quot;))   etc<br>

<br><br>-Laszlo<br><br><br><div class="gmail_quote">2010/7/24 Nauman Sulaiman <span dir="ltr">&lt;<a href="mailto:nauman762-home@yahoo.co.uk">nauman762-home@yahoo.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi, We have Asterisk 1.6.2.9 and Opensips 1.6.2 in the same Linux box and we want <br>to have OpenSIPS as the out/inbound proxy for Asterisk when running as UAC. <br>

<br>We have Asterisk registered with Sipgate ok when sending REGISTER directly to the Sipgate<br>domain but would like to send the Register via OpenSIPS so it&#39;s in the path for incoming invites<br><br>Opensips.cfg as follows<br>

<br>listen=udp:<a href="http://192.168.0.20:5060" target="_blank">192.168.0.20:5060</a><br><br>register code: we have removed the authentication for now to get this working first<br><br> if (is_method(&quot;REGISTER&quot;))<br>

        {<br><br>           if (!db_check_to())<br>           {<br>               
 sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>                exit;<br>           }<br><br>                if (!save(&quot;location&quot;))<br>                        sl_reply_error();<br><br>                exit;<br>

        }<br><br><br><br><br>we have astersik sip.conf file as follows<br><br>[general]<br>port=5062<br>bindaddr=0.0.0.0<br>context=default<br>outboundproxy=192.168.0.20<br>outboundproxyport=5060<br><br>register =&gt;
 <a href="http://username:secret@sipgate.co.uk/username" target="_blank">username:secret@sipgate.co.uk/username</a><br><br>[username]<br>type=friend<br>context=incoming<br>username=username<br>secret=secret<br>host=<a href="http://sipgate.co.uk" target="_blank">sipgate.co.uk</a><br>

host=dynamic<br>fromdomain=<a href="http://sipgate.co.uk" target="_blank">sipgate.co.uk</a><br>insecure=port,invite<br>nat=yes<br>disallow=all<br>allow=alaw<br>canreinvite=no<br><br>However the REGISTER messages are sent by Astersik but ther is no response fron OpenSIPS and it is not routing them either . Is it because they are both on the same IP?<br>

We do have then on different ports so though it would be ok<br><br></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>