SIP is domain based like HTTP (Web), SMTP (E-Mail) and Jabber (IM/presence).

You need the phones to register with the same domain that
the sofia profile is configured to use.


The most painless way to do this is:

1) setup DNS for A and/or SRV for SIP to point at your box
   eg: sip.my.com
2) set the domain variable in the conf/vars.xml to this domain
   -<X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/>
   +<X-PRE-PROCESS cmd="set" data="domain=sip.my.com"/>
3) When you configure the phone/soft phone, use sip.my.com
   as the domain you are registering to so for ext 1000
   you become sip:1000@sip.my.com.

Now you have a fully qualified unique sip url and all your
phones can chat etc.

 

 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400


----- Original Message ----
From: Alois Komenda <alois.komenda@esk.fraunhofer.de>
To: freeswitch-dev@lists.freeswitch.org
Sent: Tuesday, December 4, 2007 8:47:34 AM
Subject: [Freeswitch-dev] Update: Problem with sending Instant Messages


Yesterday, 12-03-2007, I wrote:
 
      Hello, 
 
      sending IM (SIP MESSAGE) from one user to another through Freeswitch does not work for me.
      I have traced the problem to this point now: the call of switch_core_hash_find() in sofia_glue_find_profile__() returns NULL.      
      Finally "Invalid Profile <IP of Freeswitch>" is diplayed on the console (among other data about the message).
      What is the problem here? 
 
 
After a small change to sofia_presence_chat_send(), sending messages worked.
The parameter given to sofia_glue_find_profile() was the variable host which contains an IP address. I changed it to the hardcoded value "default". Now sofia_glue_find_profile() returns a valid profile and messages can be sent.
 
What is the correct way to choose the profile name for an IM?
 
Best regards,
 
Alois
 
 



Looking for last minute shopping deals? Find them fast with Yahoo! Search.