How do I "register" a domain for a hard phone?
I have just installed Freeswitch and have spent the day searching the wiki for an answer. My soft phone on Linux and the Grand Stream hard phone are finally talking to the switch. However the Grand Stream (on extension 101) requires the soft phone to call it as 101@192.168.2.99 whereas the Grand Stream can call the softphone at extension 1000 without an extension. The soft phone is not on the same computer as the switch. The configuration files are identical except for the extensions and passwords. I was getting a message like: 2010-03-28 13:46:52.514487 [WARNING] sofia_reg.c:1872 Can't find user [101@192.168.2.51] You must define a domain called '192.168.2.51' in your directory and add a user with the id="101" attribute and you must configure your device to use the proper domain in it's authentication credentials. But I have no idea how to either correct this problem or set a domain anywhere. There is no mention of domain in the configuration for the Grand Stream and changing the user to 101@192.168.2.51 in the phone and in the config didn't work. Here are the respective config files: <include> <user id="1000"> <params> <param name="password" value="1234"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include> <include> <user id="101" mailbox="101"> <params> <param name="password" value="secret"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="101"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 101"/> <variable name="effective_caller_id_number" value="101"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include> Thanks for any assistance. Jim.
Jim <jim@k4gvo.com> wrote:
I was getting a message like: 2010-03-28 13:46:52.514487 [WARNING] sofia_reg.c:1872 Can't find user [101@192.168.2.51] You must define a domain called '192.168.2.51' in your directory and add a user with the id="101" attribute and you must configure your device to use the proper domain in it's authentication credentials.
But I have no idea how to either correct this problem or set a domain anywhere. There is no mention of domain in the configuration for the Grand Stream and changing the user to 101@192.168.2.51 in the phone and in the config didn't work.
By default, FreeSWITCH uses its own IPv4 address as the domain. On my network, for example, the address of the machine running FreeSWITCH is 192.168.0.2; therefore, by default, it's looking for extension@192.168.0.2, e.g., 1001@192.168.0.2. Suppose I want to configure my SIP phone to use extension 1001. To do this, I enter 1001 in the user name field and 192.168.0.2 as the "registrar" in the phone's configuration. The phone in this case is from Snom, but there will be similar fields in the configurations of other hardware and software-based phones. I hope this is enough clarification that you can work out what to do in your own particular scenario.
Jason White wrote:
Jim <jim@k4gvo.com> wrote:
I was getting a message like: 2010-03-28 13:46:52.514487 [WARNING] sofia_reg.c:1872 Can't find user [101@192.168.2.51] You must define a domain called '192.168.2.51' in your directory and add a user with the id="101" attribute and you must configure your device to use the proper domain in it's authentication credentials.
But I have no idea how to either correct this problem or set a domain anywhere. There is no mention of domain in the configuration for the Grand Stream and changing the user to 101@192.168.2.51 in the phone and in the config didn't work.
By default, FreeSWITCH uses its own IPv4 address as the domain. On my network, for example, the address of the machine running FreeSWITCH is 192.168.0.2; therefore, by default, it's looking for extension@192.168.0.2, e.g., 1001@192.168.0.2.
Suppose I want to configure my SIP phone to use extension 1001. To do this, I enter 1001 in the user name field and 192.168.0.2 as the "registrar" in the phone's configuration. The phone in this case is from Snom, but there will be similar fields in the configurations of other hardware and software-based phones.
I hope this is enough clarification that you can work out what to do in your own particular scenario.
Thanks and that's how it's set up. My FS is on 192.168.2.51 and the Grand Stream is connecting just fine, however when I attempt to dial extension 101 from a phone it doesn't work. The only connection I can make is by dialing 101@192.168.2.99. I am guessing I have to translate 101 into 101@192.168.2.99 somewhere. I can only dial 101 from a soft phone which makes it somewhat unusable in most cases. Jim.
Jason White wrote:
Jim <jim@k4gvo.com> wrote:
I was getting a message like: 2010-03-28 13:46:52.514487 [WARNING] sofia_reg.c:1872 Can't find user [101@192.168.2.51] You must define a domain called '192.168.2.51' in your directory and add a user with the id="101" attribute and you must configure your device to use the proper domain in it's authentication credentials.
But I have no idea how to either correct this problem or set a domain anywhere. There is no mention of domain in the configuration for the Grand Stream and changing the user to 101@192.168.2.51 in the phone and in the config didn't work.
By default, FreeSWITCH uses its own IPv4 address as the domain. On my network, for example, the address of the machine running FreeSWITCH is 192.168.0.2; therefore, by default, it's looking for extension@192.168.0.2, e.g., 1001@192.168.0.2.
Suppose I want to configure my SIP phone to use extension 1001. To do this, I enter 1001 in the user name field and 192.168.0.2 as the "registrar" in the phone's configuration. The phone in this case is from Snom, but there will be similar fields in the configurations of other hardware and software-based phones.
I hope this is enough clarification that you can work out what to do in your own particular scenario.
The key was that I was using extensions outside of the 1000-1020 which are already defined in the dial plan. Once I started using extensions in the 1000-1019 things worked a lot better. Thanks, Jim.
look at sip_profiles/internal.xml ----- Original Message ----- From: "Jim" <jim@k4gvo.com> To: <freeswitch-users@lists.freeswitch.org> Sent: Sunday, March 28, 2010 5:59 PM Subject: [Freeswitch-users] How do I "register" a domain for a hard phone?
I have just installed Freeswitch and have spent the day searching the wiki for an answer. My soft phone on Linux and the Grand Stream hard phone are finally talking to the switch. However the Grand Stream (on extension 101) requires the soft phone to call it as 101@192.168.2.99 whereas the Grand Stream can call the softphone at extension 1000 without an extension. The soft phone is not on the same computer as the switch. The configuration files are identical except for the extensions and passwords.
I was getting a message like: 2010-03-28 13:46:52.514487 [WARNING] sofia_reg.c:1872 Can't find user [101@192.168.2.51] You must define a domain called '192.168.2.51' in your directory and add a user with the id="101" attribute and you must configure your device to use the proper domain in it's authentication credentials.
But I have no idea how to either correct this problem or set a domain anywhere. There is no mention of domain in the configuration for the Grand Stream and changing the user to 101@192.168.2.51 in the phone and in the config didn't work.
Here are the respective config files:
<include> <user id="1000"> <params> <param name="password" value="1234"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
<include> <user id="101" mailbox="101"> <params> <param name="password" value="secret"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="101"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 101"/> <variable name="effective_caller_id_number" value="101"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
Thanks for any assistance.
Jim.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Jason White
-
Jim
-
Madovsky