[Freeswitch-users] calling between extension
Puskás Zsolt
errotan at elder.hu
Sat Jun 12 05:39:49 PDT 2010
2010. június 12. 00.02.43 dátummal budi wibowo az alábbiakat írta:
> hi
> i have question regarding profile user in FS.
> in /usr/local/freeswitch/conf/directory/sip1.domain.com i have budi.xml
> containing
> <include>
> <user id="budi">
> <params>
> <param name="password" value="1000"/>
> <param name="vm-password" value="1000"/>
> </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>
>
> and i have other profile for other user say james.xml.
> what need to be configured from FS so i can can call james directly from my
> softphone
>
> regards
Hi.
Please look at the wiki:
http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML
You should need something like this:
Create a new xml file dialplan/default/ directory and put these lines in it:
<include>
<extension name="test">
<condition field="destination_number" expression="^1030$">
<action application="bridge" data="user/james@${domain_name}"/>
</condition>
</extension>
</include>
The above calls "james" when you dial 1030.
More information about the FreeSWITCH-users
mailing list