<div dir="ltr">Dear Sir,<br><br>I have a Patton device registered on an OpenSIPs server...The openSips Server send the call to asterisk server....When using some end user device like patton the asterisk server does not send back an Authentication required packet to INVITE packet received from OS as follow:<br>
<br>&lt;--- SIP read from OpenSIPS_IP:5060 ---&gt;<br>INVITE sip:0473236354@Asterisk_IP SIP/2.0<br>Record-Route: &lt;sip:OpenSIPS_IP;lr=on;ftag=724c58b04b&gt;<br>Via: SIP/2.0/UDP OpenSIPS_IP;branch=z9hG4bK3b3a.4744c247.0<br>
Via: SIP/2.0/UDP 79.132.230.138:5060;rport=5060;received=79.132.230.138;branch=z9hG4bK1f03f72b9bba41567<br>Max-Forwards: 69<br>From: &lt;<a href="http://sip:92968059@79.132.230.138:5060">sip:92968059@79.132.230.138:5060</a>&gt;;tag=724c58b04b<br>
To: &lt;sip:0473236354@OpenSIPS_IP:5060&gt;<br>Call-ID: 2ef74e533282d7f1<br>CSeq: 17515 INVITE<br>Contact: &lt;sip:92968059@79.132.230.138:5060;nat=yes&gt;<br>Supported: replaces<br>User-Agent: Patton SN4638 5BIS 00A0BA048822 R5.3 2009-01-15 H323 SIP BRI M5T SIP Stack/<a href="http://4.0.28.28">4.0.28.28</a><br>
Content-Type: application/sdp<br>Content-Length: 241<br><br>v=0<br>o=MxSIP 0 2 IN IP4 OpenSIPS_IP<br>s=SIP Call<br>c=IN IP4 OpenSIPS_IP<br>t=0 0<br>m=audio 37586 RTP/AVP 8 0 101<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:0 PCMU/8000<br>
a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-16<br>a=sendrecv<br>a=nortpproxy:yes<br><br>&lt;-------------&gt;<br>--- (14 headers 12 lines) ---<br>Sending to OpenSIPS_IP : 5060 (no NAT)<br>Using INVITE request as basis request - 2ef74e533282d7f1<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_buddies WHERE name = &#39;92968059&#39;<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_buddies WHERE host = &#39;OpenSIPS_IP&#39; AND port = &#39;5060&#39;<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_buddies WHERE ipaddr = &#39;OpenSIPS_IP&#39; AND port = &#39;5060&#39;<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:258 realtime_multi_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_buddies WHERE host = &#39;OpenSIPS_IP&#39; ORDER BY host<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:258 realtime_multi_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_buddies WHERE ipaddr = &#39;OpenSIPS_IP&#39; ORDER BY ipaddr<br>
Found no matching peer or user for &#39;OpenSIPS_IP:5060&#39;<br>Found RTP audio format 8<br>Found RTP audio format 0<br>Found RTP audio format 101<br>[Jul  2 12:44:20] DEBUG[29275]: chan_sip.c:5249 process_sdp: Peer doesn&#39;t provide T.38 UDPTL<br>
Peer audio RTP is at port OpenSIPS_IP:37586<br>Found audio description format PCMA for ID 8<br>Found audio description format PCMU for ID 0<br>Found audio description format telephone-event for ID 101<br>Capabilities: us - 0x8080e (gsm|ulaw|alaw|g726|h263), peer - audio=0xc (ulaw|alaw)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)<br>
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)<br>Peer audio RTP is at port OpenSIPS_IP:37586<br>Looking for 0473236354 in BE (domain Asterisk_IP)<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten = &#39;0473236354&#39; AND context = &#39;BE&#39; AND priority = &#39;1&#39;<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:258 realtime_multi_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten LIKE &#39;\\_%&#39; AND context = &#39;BE&#39; AND priority = &#39;1&#39; ORDER BY exten<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:138 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten = &#39;0473236354&#39; AND context = &#39;BE-Out&#39; AND priority = &#39;1&#39;<br>
[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Everything is fine.<br>[Jul  2 12:44:20] DEBUG[29275]: res_config_mysql.c:258 realtime_multi_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten LIKE &#39;\\_%&#39; AND context = &#39;BE-Out&#39; AND priority = &#39;1&#39; ORDER BY exten<br>
list_route: hop: &lt;sip:OpenSIPS_IP;lr=on;ftag=724c58b04b&gt;<br><br>&lt;--- Transmitting (no NAT) to OpenSIPS_IP:5060 ---&gt;<br>SIP/2.0 100 Trying<br>Via: SIP/2.0/UDP OpenSIPS_IP;branch=z9hG4bK3b3a.4744c247.0;received=OpenSIPS_IP<br>
Via: SIP/2.0/UDP 79.132.230.138:5060;rport=5060;received=79.132.230.138;branch=z9hG4bK1f03f72b9bba41567<br>Record-Route: &lt;sip:OpenSIPS_IP;lr=on;ftag=724c58b04b&gt;<br>From: &lt;<a href="http://sip:92968059@79.132.230.138:5060">sip:92968059@79.132.230.138:5060</a>&gt;;tag=724c58b04b<br>
To: &lt;sip:0473236354@OpenSIPS_IP:5060&gt;<br>Call-ID: 2ef74e533282d7f1<br>CSeq: 17515 INVITE<br>User-Agent: <br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>Supported: replaces<br>Contact: &lt;sip:0473236354@Asterisk_IP&gt;<br>
Content-Length: 0<br><br>Please note that if we use linksys as end user SIP device everything looks fine...Even if we register patton on asterisk directly the authentication is successfully done by asterisk<br><br>regards<br>
<br><div class="gmail_quote">On Mon, Jun 29, 2009 at 6:06 PM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It does this by default unless you have allowguest set to yes, and/or<br>
any insecure parameter options on any individual peers.<br>
<br>
--<br>
Sent from mobile device<br>
<div><div></div><div class="h5"><br>
On Jun 29, 2009, at 10:33 AM, michel freiha &lt;<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; i would like to ask please about how to force asterisk to ask for<br>
&gt; authentication when receiving an INVITE packet from any device?<br>
&gt;<br>
&gt; Regards<br>
</div></div>&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>