https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files#SofiaConfigurationFiles-force-register-domain

On Nov 20, 2018, at 9:22 PM, yosin sun <yosin2rd@gmail.com> wrote:

Dear Sir/Mme,

I have a question concerning the inability of an external SIP phone to send IM (Instant Messaging) as follows:

An external SIP phone (Zoiper) was able to connect to and talk with another SIP phone, but could not send IM (Instant Messaging).  My FreeSWITCH version was 1.6.12.  The private IP of my FreeSWITCH was 192.168.1.84 and the public IP was 220.128.137.70.  When the external SIP phone (phone number 1001) sent text messages to another SIP phone, the following error message was displayed:

sofia_presence.c:225 Can't find registered user 1001@220.128.137.70

The current solution was to modify sofia_presence.c:216 from:

}  else if (!(list = sofia_reg_find_reg_url_multi(profile, user, *host ))) {

to:

}  else if (!(list = sofia_reg_find_reg_url_multi(profile, user, NULL))) {/*ignore host value*/

or another solution was for the SIP phone to register with domain, but it was too troublesome.

Is there any solution other than modifying the source code as shown above?

Your great help is highly appreciated.

Best regards,

Jack Su