unable to register devices to freeswitch, fresh install

1,296 views
Skip to first unread message

Andy Lauppe

unread,
Feb 19, 2014, 9:37:49 AM2/19/14
to as...@googlegroups.com

I've read back through several posts on this topic and am unable to find a solution in them. I've created a freeswitch sip device called "thisisatest". When it tries to register, I get this in FreeSwitch:

2014-02-19 14:29:11.735881 [WARNING] sofia_reg.c:1634 SIP auth challenge (REGISTER) on sofia profile 'default' for [thisi...@myserver.fqdn] from ip my_client_ip

2014-02-19 14:29:11.955903 [WARNING] sofia_reg.c:2695 Can't find user [thisi...@myserver.fqdn] from my_client_ip

You must define a domain called 'myserver.fqdn' in your directory and add a user with the id="thisisatest" attribute

and you must configure your device to use the proper domain in it's authentication credentials.

2014-02-19 14:29:11.955903 [WARNING] sofia_reg.c:1579 SIP auth failure (REGISTER) on sofia profile 'default' for [thisi...@myserver.fqdn] from ip my_client_ip




I've enabled debugging - here is what I see in the apache logs.

==> /var/log/httpd/error_log <==

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] hostname ASTPP

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] section directory

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] tag_name domain

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] key_name name

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] key_value myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Name REQUEST_PARAMS

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Core-UUID ce759450-9971-11e3-a386-af5857f5d182

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] FreeSWITCH-Hostname myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] FreeSWITCH-Switchname ASTPP

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] FreeSWITCH-IPv4 myserver.private/lan.ip

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] FreeSWITCH-IPv6 ::1

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Date-Local 2014-02-19 14:29:11

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Date-GMT Wed, 19 Feb 2014 14:29:11 GMT

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Date-Timestamp 1392820151775865

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Calling-File sofia_reg.c

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Calling-Function sofia_reg_parse_auth

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Calling-Line-Number 2610

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Event-Sequence 410

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] action sip_auth

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_profile default

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_user_agent PolycomSoundPointIP-SPIP_450-UA/3.3.2.0413

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_username thisisatest

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_realm myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_nonce 33501e18-9972-11e3-a399-af5857f5d182

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_uri sip:myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_contact_user thisisatest

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_contact_host my_client_ip

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_to_user thisisatest

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_to_host myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_via_protocol udp

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_from_user thisisatest

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_from_host myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_call_id ec306e3a-5dbfb383-f362b6e0@sip_device's_private_lan_ip

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_request_host myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_qop auth

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_cnonce oyFE2qpFUGjnPcj

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_nc 00000001

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_response bb08ea06414bc118f0f0625a98ba4896

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] sip_auth_method REGISTER

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] key id

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] user thisisatest

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] domain myserver.fqdn

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] ip my_client_ip

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] COUNT: 0

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] TOTAL USERS: 0 

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] Content-Type: text/plain; charset=ISO-8859-1\r

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] \r

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] <?xml version="1.0" encoding="UTF-8" standalone="no"?>

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] <document type="freeswitch/xml">

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] <section name="result">

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] <result status="not found" /></section>

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] </document>

[Wed Feb 19 14:29:11 2014] [error] [client 127.0.1.1] 


==> /var/log/httpd/access_log <==

127.0.1.1 - - [19/Feb/2014:14:29:11 +0000] "POST /cgi-bin/astpp/astpp-fs-xml.cgi HTTP/1.1" 200 164 "-" "freeswitch-xml/1.0"




Any ideas? I'd love to get past this hurdle and get into the fun stuff!

Andy

Jack7

unread,
Feb 19, 2014, 1:54:52 PM2/19/14
to as...@googlegroups.com
Hi Andy,

With my limited knowledge I'll try help you if I can.

Please give me as much details as possible e.g.

- You using one Interface/IP range?
- Take me through the steps of how you set up everything.
- What are you trying to register exactly?

Andy Lauppe

unread,
Feb 19, 2014, 2:53:52 PM2/19/14
to as...@googlegroups.com
Thanks Jack!

I am using one Interface/IP on the AstPP system - it is an amazon ec2 instance. I've configured ext-rtp-ip and ext-sip-ip and FreeSwitch seems to be happy - the sip packets look healthy, etc.

It is a stock, fresh install from the latest install script, in CentOS 6.5. I setup the SIP Profile for the one ip/interface on the system, then created one user. I created one SIP Device for that user, defining the username and password for the device.

The device is a Polycom IP 450, and it appears to properly attempt registration, but FreeSwitch rejects the registration, according to the logs above.

What more information can I provide?

Andy

sci3ntia .

unread,
Feb 19, 2014, 3:08:16 PM2/19/14
to as...@googlegroups.com
Just to be sure, you created a customer, the under the customer added a sip device, then you added the IP of your phone under the "IP Map" area.

Is the phone pointing at the fqdn or IP ?
--
You received this message because you are subscribed to a topic in the Google Groups "ASTPP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astpp/S8JVz86GXtg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/3845ca3d-1a80-48d2-b267-2d0898c22e9b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andy Lauppe

unread,
Feb 19, 2014, 3:17:02 PM2/19/14
to as...@googlegroups.com
I had not actually added the IP address of the phone under IP Map, but now that I have, I'm getting all the same errors.
To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

sci3ntia .

unread,
Feb 19, 2014, 3:25:28 PM2/19/14
to as...@googlegroups.com
Are you using fqdn to register or IP of the server? If fqdn, use IP instead.

Also did you create a new SIP profile or use the default one and what changes did you make?
--
You received this message because you are subscribed to a topic in the Google Groups "ASTPP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astpp/S8JVz86GXtg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

Andy Lauppe

unread,
Feb 19, 2014, 3:29:16 PM2/19/14
to as...@googlegroups.com
I've switched the phone from using the fqdn to IP address and get the same error, except it complains that the IP is not in the directory, instead of the fqdn.

I used the default one - should I create a new one?
To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

Andy Lauppe

unread,
Feb 19, 2014, 3:34:54 PM2/19/14
to as...@googlegroups.com
FYI - I've created a new profile caled "ec2", and am having the same problem. The error is only slightly changed (also, I enabled SIP Trace on this profile so there is more information.)

2014-02-19 20:32:28.455876 [WARNING] sofia_reg.c:2695 Can't find user [thisisatest@server_ip] from phone_ip

You must define a domain called 'server_ip' in your directory and add a user with the id="thisisatest" attribute

and you must configure your device to use the proper domain in it's authentication credentials.

send 437 bytes to udp/[client_ip]:5060 at 20:32:58.459402:

   ------------------------------------------------------------------------

   SIP/2.0 403 Forbidden

   Via: SIP/2.0/UDP client_ip:5060;branch=z9hG4bK849b1bdaFB64192F

   From: "thisisatest" <sip:thisisatest@server_ip>;tag=18A69FA2-A641D057

   To: <sip:thisisatest@server_ip>;tag=QyHgK21X1r1Fj

   Call-ID: 81116563-db7d01e4-e488ab31@phone_private_lan_ip

   CSeq: 2 REGISTER

   User-Agent: ASTPP

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, NOTIFY

   Supported: path, replaces

   Content-Length: 0

   

   ------------------------------------------------------------------------

2014-02-19 20:32:58.457730 [WARNING] sofia_reg.c:1579 SIP auth failure (REGISTER) on sofia profile 'ec2' for [thisisatest@server_ip] from ip client_ip 



On Wednesday, February 19, 2014 3:25:28 PM UTC-5, Jack7 wrote:
To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

sci3ntia .

unread,
Feb 19, 2014, 3:39:00 PM2/19/14
to as...@googlegroups.com
I have such a butchered config, trying to remember what I did for the clean install.

Default sip profile should be fine, did you change the sip-IP and rtp-IP ?
--
You received this message because you are subscribed to a topic in the Google Groups "ASTPP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astpp/S8JVz86GXtg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

Andy Lauppe

unread,
Feb 19, 2014, 3:43:45 PM2/19/14
to as...@googlegroups.com
I did change the sip-IP and rtp-IP, and I also defined ext-sip-ip and ext-rtp-ip in FreeSwitch (the NAT auto detect wasn't working, that I could tell.)
To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

sci3ntia .

unread,
Feb 19, 2014, 3:49:40 PM2/19/14
to as...@googlegroups.com
I think Samir would look at this in the morning and know right a way what's wrong.

I def didn't have to do that, in fact if all went well with the script install very little was needed to change as far as I could remember. 

--
You received this message because you are subscribed to a topic in the Google Groups "ASTPP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astpp/S8JVz86GXtg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

sci3ntia .

unread,
Feb 19, 2014, 3:50:46 PM2/19/14
to as...@googlegroups.com
I'm not using NAT anywhere in my environment though.
--

Juned Khan

unread,
Feb 20, 2014, 12:07:23 AM2/20/14
to as...@googlegroups.com
Hi Andy,

Can you try by reloading mod_xml_curl and mod_sofia ?

--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks,
Juned Khan
iNextrix Technologies Pvt Ltd.
www.inextrix.com

Andy Lauppe

unread,
Feb 20, 2014, 12:31:36 AM2/20/14
to as...@googlegroups.com
I've restarted fs several times, but sure - just reloaded mod_xml_curl and mod_sofia. The phone is booting up now - 

survey says: same error - "You must define a domain called 'server_ip' in your directory and add a user with the id="thisisatest" attribute and you must configure your device to use the proper domain in it's authentication credentials."

2014-02-20 05:30:16.035868 [WARNING] sofia_reg.c:1579 SIP auth failure (REGISTER) on sofia profile 'ec2' for [thisisatest@server_ip] from ip client_ip



On Thursday, February 20, 2014 12:07:23 AM UTC-5, Juned Khan wrote:
Hi Andy,

Can you try by reloading mod_xml_curl and mod_sofia ?
On Thu, Feb 20, 2014 at 2:20 AM, sci3ntia . <jack7...@gmail.com> wrote:
I'm not using NAT anywhere in my environment though.


On Wednesday, February 19, 2014, sci3ntia . <jack7...@gmail.com> wrote:
I think Samir would look at this in the morning and know right a way what's wrong.

I def didn't have to do that, in fact if all went well with the script install very little was needed to change as far as I could remember. 

To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/e815655b-91b7-471d-b2b3-528fdc3ee0d3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/CAByRRitP7h9zud-1YvgibNG3Kyk4AYPwDX%3D%2BFZwEMfmu5ZGqzw%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.

Andy Lauppe

unread,
Feb 28, 2014, 10:36:28 PM2/28/14
to as...@googlegroups.com
Sure wish anyone could help me with this. I just don't have enough experience with FreeSwitch. Is it failing to recognize connections to it's ext-sip-ip and ext-rtp-ip as to a relevant domain? I suppose I should try it on a system with the proper IP assigned directly to the interface.

No ideas?

Samir Doshi

unread,
Mar 1, 2014, 12:19:15 AM3/1/14
to as...@googlegroups.com
Please send output of sofia status.

Quinten Rowland

unread,
Mar 3, 2014, 3:14:08 AM3/3/14
to as...@googlegroups.com, sa...@astpp.org
Hi

I also have the same problem.

2014-03-03 10:09:24.133065 [WARNING] sofia_reg.c:2703 Can't find user [Pe...@197.155.105.109] from 196.25.95.230
You must define a domain called '197.155.105.109' in your directory and add a user with the id="PeetP" attribute

Regards
Quinten 
 

Andy Lauppe

unread,
Mar 4, 2014, 10:19:02 PM3/4/14
to as...@googlegroups.com
I've decided to stop fighting with FreeSwitch behind NAT and am re-installing on a VPS with a public IP. I won't be working on this issue anymore.
Reply all
Reply to author
Forward
0 new messages