try insecure=very (needed if we want to allow incoming SER calls to bypass authentication) and type=friend in <span lang="EN-US"><font face="Times New Roman">[sip_proxy]<br>
<br>
rafael<br>
<br>
</font></span><br><div><span class="gmail_quote">On 11/16/05, <b class="gmail_sendername">Juraj Varchol</b> <<a href="mailto:varchol@gmail.com">varchol@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Hey guys,</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">I'm quite new in this SER/Asterisk environment and I'm having some</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">problems with authentification. Now i'm running SER and Asterisk on 2</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">boxes. It is working according to the scheme</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">SIP user <------> SER Server <--------> Asterisk <----->IAX users/PSTN/...
</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">SIP calls are managed by SER Server and the rest is forwarded to</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Asterisk for further processing. Also acording to dialing plan on</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Asterisk, calls to SIP users are fwd to SER Server where are</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">redirected to their actual location.</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Outgoing calls to SER Server are set up:</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"></font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">**extensions.conf**</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => _77.,1,Dial(SIP/${EXTEN:2}@sip_proxy-out,10)</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => _77.,2,Hangup</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span> </span>**sip.conf** - where only for outgoing calls is set up context
</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">[sip_proxy-out]</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">type=peer</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">username= asterisk_user-name_on_SER_Server</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">secret=asterisk_passwd_on_SER_Server</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">allow=all</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">host=SER_Server_IP or URL</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">----> this way it does work even sometimes UA on SER shows as incoming</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">call from "asterisk_user-name_on_SER_Server" instead of callerID from</font></span>
</p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Asterisk ... but that would not be such a problem</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">... also is important to mention that</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">"asterisk_user-name_on_SER_Server" is registred on SER Server. (* if</font></span>
</p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">there is better way how to deal with it i would b very glad to at</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">least get pointed the right direction ... ;))</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">!!!!THE PROBLEM comes the other way when SER users want to call</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">extension that is managed by ASTERISK.</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">I get error message in both cases that r described at the end. I'm</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">looking for some solution that would not include registering all SER</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">users on Asterisk or just omit authentification for all users coming</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">from SER_Server</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Thanx in advance,</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">Juraj</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">**error message**</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><font face="Times New Roman"><span lang="EN-US">Nov 16 </span><span lang="EN-US">19:13:53</span><span lang="EN-US">
NOTICE[9339]: chan_sip.c:7355 handle_request: Failed</span></font></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">to authenticate user <sip:SER_USER@SER_SERVER_IP:5060></font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">;tag=93af6721-13c4-437b76e2-5f0d59d-2fee</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">*****both options i tried but no luck</font></span><span lang="EN-US">
<font face="Times New Roman">**************</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">my setup on SER Server is</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">**ser.cfg**</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">....</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span> </span>if (uri=~"^sip:[4-9]*@(IP_SER_SERVER|(proxy\.)?URL_SER_SERVER)") {
</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span> </span>rewritehostport("IP_ASTERISK_SERVER:5060");
</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span> </span>forward(uri:host, uri:port);</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span> </span>break;</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span> </span>};</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">...</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">**extensions.cong** --- i tried to redirect incoming call right away</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">to normal dialing plan...</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">[inpbx]</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">...</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => 456,2,Dial(IAX2/User_1,15)</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => 456,3,Voicemail(u44@test)</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">...</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => 456,6,Hangup</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">...</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => 567,2,Dial(IAX2/User_2,15)</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">....</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => 567,6,Hangup</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">...</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">OR modification 2<span> </span>... when we want to reach Asterisk Server must by
</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">dialed prefix (for example 44_) + extensions<span> </span>by SIP user.
</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">**extension.conf**</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">[default]</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => _44.,1,Dial(SIP/${EXTEN:2}@sip_proxy,15,rm)<span>
</span>;here i strip</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">it from the extension</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">exten => _44.,2,Hangup</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">**sip.conf**</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">[sip_proxy]</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">type=friend</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">context=inpbx</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">;insecure=very</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">host=URL_SER_SERVER</font></span></p><span style="font-size: 12pt;" lang="EN-US">
;mailbox=user@test</span>
<br>_______________________________________________<br>--Bandwidth and Colocation sponsored by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
Asterisk-Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><br>rrgv