Syntax
Call an extension on a Remote SIP Server
Basic form:
sofia/
<profile>/
<extension>@
<remoteserver>
Example 1:
sofia/$${profile}/$
1@example.org
Example 2:
sofia/foo/
0@sipphone.com
Where
<profile> is the name of one of the profiles defined in sofia.conf.xml. By default, there is one profile defined as name="$${domain}", where the $${domain} variable is defined in freeswitch.xml, and defaults to mydomain.com.
Therefore, if you have not changed these config files and are dialing an extension on a remote server, the config would be
sofia/
mydomain.com/
<extension>@
<remoteserver>
To list all profiles defined, type
sofia status on the CLI.
Call a locally registered endpoint
Basic form:
sofia/
<profile>/
<extension>%
<localserver>
Example 1:
sofia/$${profile}/$1%$${domain}
Example 2:
sofia/foo/101%192.168.1.1
where foo is the SIP profile, 101 is the userid of the registered endpoint, and 192.168.1.1 is the IP address of FreeSWITCH.
If your SIP profile name is set to your domain, or the domain attribute is set in the profile (e.g., <profile name="internal" domain="$${domain}">), you can originate with the following:
sofia/<profile>/<extension>
And fore-go the domain when dialing local extensions.