[Freeswitch-users] 401 Unauthorized in iptel external gateway
Denis Gasparin
denis.gasparin at edistar.com
Sun Feb 26 20:18:43 MSK 2012
Hi Anita.
I sent you an email with my username and password on iptel.org.
Thank you for your help,
Denis
----- Messaggio originale -----
Da: "Anita Hall" <anita.hall at simmortel.com>
A: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Inviato: Domenica, 26 febbraio 2012 13:14:50
Oggetto: Re: [Freeswitch-users] 401 Unauthorized in iptel external gateway
Vitalie is right. I have seen similar logs.
I am currently using localphone and rapidvox as SIP provider and both register Ok.
This is my sip_profile http://wiki.freeswitch.org/wiki/Provider_Configuration:_Localphone.com
I could look it up for you if you can give remote access to your machine and watch over screen or byobu.
Alternatively, you could give me your account name and password. I will check if it works from my installation. I promise not to make any calls and you can change the password later :)
regards,
Anita
On Sun, Feb 26, 2012 at 11:34 AM, Denis Gasparin < denis.gasparin at edistar.com > wrote:
Sorry, i did not exposed well the problem...
I was able to call iptel account directly without the gateway (so without registering to iptel).
When i setup the gateway i see sofia trying continuosly to register to iptel without success.
I see many 401 messages like this:
1. FS->IPTEL Register
2. IPTEL->FS Unauthorized 3. FS->IPTEL Register
4. IPTEL->FS Unauthorized
5. FS->IPTEL Register
...
After a while sofia stops trying to register and retries after 30 seconds and so on.
Thank you for your help,
Denid
Il giorno 26/feb/2012, alle ore 02:20, Vitalie Colosov < vetali100 at gmail.com > ha scritto:
Usually SIP registration goes like this:
1. FS->IPEL Register
2. IPTEL->FS Unauthorized
3. FS->IPTEL Register (yes, again, with additional credentials)
4. IPTEL->FS OK
You say that you was able to call iptel successfully, so FS is registered.
You just did not observed and did not provide SIP messages #3 and #4.
2012/2/25 Denis Gasparin < denis.gasparin at edistar.com >
Hi to all.
Today I installed freeswitch following the guide in Freeswitch book.
I made successfully all the tests in the book... well all but one.
When I tried to setup an external gateway on my iptel account, the registration process failed with 401 sip message.
This is the sip trace:
freeswitch at dhcppc7> send 647 bytes to udp/[217.9.36.145]:5060 at 17:59:20.965613:
------------------------------------------------------------------------
REGISTER sip: sip.iptel.org ;transport=udp SIP/2.0
Via: SIP/2.0/UDP MY_PUBLIC_IP:5080;rport;branch=z9hG4bKXNc7jeQB7BXrp
Max-Forwards: 70
From: < sip:MY_ACCOUNT at iptel.org ;transport=udp>;tag=XQ58BvHmj15eD
To: < sip:MY_ACCOUNT at iptel.org ;transport=udp>
Call-ID: 8c2823cd-573d-4cc2-8e01-cba340ae890f
CSeq: 24760296 REGISTER
Contact: <sip:gw+iptel at MY_PUBLIC_IP: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 710 bytes from udp/[217.9.36.145]:5060 at 17:59:21.070238:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.9:5080:5080;rport=19198;branch=z9hG4bKXNc7jeQB7BXrp
From: <sip: MY_ACCOUNT @ iptel.org ;transport=udp>;tag=XQ58BvHmj15eD
To: <sip: MY_ACCOUNT @ iptel.org ;transport=udp>;tag=f18024bbca64dd60f33bcd92c390ee0f-5904
Call-ID: 8c2823cd-573d-4cc2-8e01-cba340ae890f
CSeq: 24760296 REGISTER
Expires: 600
Min-Expires: 240
WWW-Authenticate: Digest realm=" iptel.org ", nonce="T0ki/U9JIsE+F7QdNo/qIktZaDvpS0sn"
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= MY_PUBLIC_IP req_src_port=19198 in_uri=sip: sip.iptel.org ;transport=udp out_uri=sip: sip.iptel.org ;transport=udp via_cnt==1"
------------------------------------------------------------------------
I'm sure that user account and password are valid.
I also tested (successfully) a call from my extension to my account at iptel.org .
Registration to iptel.org using a sip phone with the same user works just fine.
What's wrong?
Thank you in advance for your help,
Denis
_________________________________________________________________________
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
_________________________________________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120226/ca704288/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list