[Freeswitch-users] 401 Unauthorized in iptel external gateway

Denis Gasparin denis.gasparin at edistar.com
Tue Feb 28 14:11:00 MSK 2012



Hi Michael.

============================================================================
SIP trace of working but wrong configuration
============================================================================

    <param name="rtp-ip" value="$${local_ip_v4}"/>
    <param name="sip-ip" value="$${local_ip_v4}"/>
    <param name="ext-rtp-ip" value="192.168.1.9"/>
    <param name="ext-sip-ip" value="192.168.1.9"/>

send 649 bytes to udp/[217.9.36.145]:5060 at 06:39:58.756531:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.9:5080;rport;branch=z9hG4bKH30c2j9mZ70jr
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=HS8t79j0cUccQ
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: 1ab7323f-3052-4c40-8b27-d329ebeb2d17
   CSeq: 24869535 REGISTER
   Contact: <sip:gw+iptel at 192.168.1.9:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 713 bytes from udp/[217.9.36.145]:5060 at 06:39:58.853547:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080;rport=27905;branch=z9hG4bKH30c2j9mZ70jr
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=HS8t79j0cUccQ
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-0631
   Call-ID: 1ab7323f-3052-4c40-8b27-d329ebeb2d17
   CSeq: 24869535 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x4Rk9MeAoHmuhZYnrVV44Ld9MXbGD7"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=865 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------
send 854 bytes to udp/[217.9.36.145]:5060 at 06:39:58.854065:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.9:5080;rport;branch=z9hG4bKjct53DtrvgQ5K
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=HS8t79j0cUccQ
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: 1ab7323f-3052-4c40-8b27-d329ebeb2d17
   CSeq: 24869536 REGISTER
   Contact: <sip:gw+iptel at 192.168.1.9:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Authorization: Digest username="MY_IPTEL_ACCOUNT", realm="iptel.org", nonce="T0x4Rk9MeAoHmuhZYnrVV44Ld9MXbGD7", algorithm=MD5, uri="sip:sip.iptel.org;transport=udp", response="b78f8f127a20a7ade3ed8a9041162e89"
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 694 bytes from udp/[217.9.36.145]:5060 at 06:39:58.956413:
   ------------------------------------------------------------------------
   SIP/2.0 200 OK
   Via: SIP/2.0/UDP 192.168.1.9:5080;rport=27905;branch=z9hG4bKjct53DtrvgQ5K
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=HS8t79j0cUccQ
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=5697f7a671feb5d42dc9ea510e728105.2ab2
   Call-ID: 1ab7323f-3052-4c40-8b27-d329ebeb2d17
   CSeq: 24869536 REGISTER
   Expires: 600
   Min-Expires: 240
   Contact: <sip:gw+iptel at 192.168.1.9:5080;transport=udp;gw=iptel>;expires=600
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=864 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

============================================================================
SIP trace of not working but correct configuration
============================================================================

    <param name="rtp-ip" value="$${local_ip_v4}"/>
    <param name="sip-ip" value="$${local_ip_v4}"/>
    <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
    <param name="ext-sip-ip" value="$${external_sip_ip}"/>

    ==> external_rtp_ip and external_sip_ip are set to my public ip (80.116.149.239) in vars.xml.

send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:20.692370:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:20.792006:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x41k9MeJptTRxwtIC32TRVrt1Ou+pd"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=869 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------
send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:21.692837:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:21.793018:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x41k9MeJptTRxwtIC32TRVrt1Ou+pd"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=869 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------
send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:23.692835:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:23.790966:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x41k9MeJptTRxwtIC32TRVrt1Ou+pd"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=869 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> 
freeswitch at dhcppc7> 
freeswitch at dhcppc7> send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:27.692903:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:27.792597:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x43U9MeKEIS4uLX1oGSBQjlCJ7vtme"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=864 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> 
freeswitch at dhcppc7> send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:31.692890:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:31.793652:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x43U9MeKEIS4uLX1oGSBQjlCJ7vtme"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=864 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:35.692896:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:35.794678:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x45U9MeKkNgVsi09O8xEmjpBaZdLGh"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=864 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:39.692893:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:39.794542:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x45U9MeKkNgVsi09O8xEmjpBaZdLGh"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=864 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------
send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:43.692953:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:43.794321:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x47U9MeLEkEcREBIX7+GErgu7sZafW"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=865 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:47.692951:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:47.793749:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x47U9MeLEkEcREBIX7+GErgu7sZafW"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=865 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> send 655 bytes to udp/[217.9.36.145]:5060 at 06:42:51.692916:
   ------------------------------------------------------------------------
   REGISTER sip:sip.iptel.org;transport=udp SIP/2.0
   Via: SIP/2.0/UDP 80.116.149.239:5080;rport;branch=z9hG4bKN0cSvF0B4Q24D
   Max-Forwards: 70
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Contact: <sip:gw+iptel at 80.116.149.239:5080;transport=udp;gw=iptel>
   Expires: 3600
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-1e6c4be 2012-02-24 14-15-32 -0600
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY
   Supported: timer, precondition, path, replaces
   Content-Length: 0
   
   ------------------------------------------------------------------------
recv 718 bytes from udp/[217.9.36.145]:5060 at 06:42:51.794179:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=27905;branch=z9hG4bKN0cSvF0B4Q24D
   From: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=Ntyatg8t0eXvN
   To: <sip:MY_IPTEL_ACCOUNT at sip.iptel.org;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-d9e7
   Call-ID: e83d7bd7-f358-44c0-95d9-9ec9069c9711
   CSeq: 24869606 REGISTER
   Expires: 600
   Min-Expires: 240
   WWW-Authenticate: Digest realm="iptel.org", nonce="T0x49U9MeLlULFCzzoULNr3vTAKpPBHQ"
   Server: ser (3.3.0-dev0 (i386/linux))
   Content-Length: 0
   Warning: 392 217.9.36.145:5060 "Noisy feedback tells:  pid=863 req_src_ip=80.116.149.239 req_src_port=27905 in_uri=sip:sip.iptel.org;transport=udp out_uri=sip:sip.iptel.org;transport=udp via_cnt==1"
   
   ------------------------------------------------------------------------

freeswitch at dhcppc7> 2012-02-28 07:42:52.679130 [ERR] sofia_reg.c:1962 iptel Registration Failed with status Request Timeout [408]. failure #1
freeswitch at dhcppc7> 2012-02-28 07:42:54.619987 [WARNING] sofia_reg.c:474 iptel Failed Registration [0], setting retry to 60 seconds.


Thank you

Denis

----- Messaggio originale -----
> Da: "Michael Collins" <msc at freeswitch.org>
> A: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Inviato: Martedì, 28 febbraio 2012 1:15:43
> Oggetto: Re: [Freeswitch-users] 401 Unauthorized in iptel external gateway
> SIP trace would probably reveal why.
> -MC
> 
> 
> On Mon, Feb 27, 2012 at 3:53 PM, Denis Gasparin <
> denis.gasparin at edistar.com > wrote:
> 
> 
> 
> Sorry but I don't understand. I agree with you that those values are
> invalid but using those values registration and rtp work.
> 
> The (correct, I hope) configuration I should use according to the wiki
> in sip_profiles/external.xml:
> 
> <param name="rtp-ip" value="$${local_ip_v4}"/>
> <param name="sip-ip" value="$${local_ip_v4}"/>
> <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
> <param name="ext-sip-ip" value="$${external_sip_ip}"/>
> 
> external_rtp_ip and external_sip_ip are set to my public ip in
> vars.xml.
> With this configuration registration does not work.
> 
> But with this (wrong) configuration registration and communication
> with iptel works fine:
> 
> <param name="rtp-ip" value="$${local_ip_v4}"/>
> <param name="sip-ip" value="$${local_ip_v4}"/>
> <param name="ext-rtp-ip"
> value="**invalid_value_or_my_private_ip_address**"/>
> <param name="ext-sip-ip"
> value="**invalid_value_or_my_private_ip_address**"/>
> 
> 
> Why?
> 
> Thank you,
> Denis
> 
> ----- Messaggio originale -----
> > Da: "Michael Collins" < msc at freeswitch.org >
> > A: "FreeSWITCH Users Help" < freeswitch-users at lists.freeswitch.org >
> > Inviato: Lunedì, 27 febbraio 2012 23:30:33
> > Oggetto: Re: [Freeswitch-users] 401 Unauthorized in iptel external
> > gateway
> > On Mon, Feb 27, 2012 at 2:08 PM, Brian West < brian at freeswitch.org >
> > wrote:
> >
> >
> >
> > That would be because these values are INVALID.
> >
> >
> > /b
> >
> >
> > Indeed. Check this info for suggestions on what can go there:
> >
> > http://wiki.freeswitch.org/wiki/Sofia.conf.xml#ext-rtp-ip
> >
> > -MC
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > 
> > 
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:
> > http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list