[Freeswitch-users] configuring gateway for making calls
Samira Mh
saami_mh at ymail.com
Mon May 14 14:26:21 MSD 2012
hi erkan;
thanks so much for your reply;
i think your mean is:
i must configure file 01_custom.xml like :
<include>
<extension name="Dial Out Custom Gateway">
<context name="samira">
<condition field="destination_number"
expression="^9(1\d{10})$">
<action application="bridge"
data="sofia/gateway/custom/$1"/>
</condition>
</context>
</extension>
</include>
and because i registered via extension:1000 on freeswitch so :
must configure file 1000.xml like :
<include>
<user id="1000">
<params>
<param name="password" value="yourpass" />
<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="linktoyourdialplan" />
<variable name="effective_caller_id_name" value="0000" />
<variable name="effective_caller_id_number" value="0000" />
<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>
but i on't know what to be set as <variable name="user_context" value="linktoyourdialplan" /> in the 1000.xml?
please help, i am new in freeswitch
sorry for my english ;;
________________________________
From: Erkan Ünlü (simalube) <erkan at speedingtrade.com>
To: 'FreeSWITCH Users Help' <freeswitch-users at lists.freeswitch.org>
Sent: Monday, May 14, 2012 2:01 PM
Subject: Re: [Freeswitch-users] configuring gateway for making calls
Hi Samira,
please build first of all them in the directory/default folder a XML file like this.
<include>
<user id="1000">
<params>
<param name="password" value="yourpass" />
<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="linktoyourdialplan" />
<variable name="effective_caller_id_name" value="0000" />
<variable name="effective_caller_id_number" value="0000" />
<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>
Now you can register with your softphone to FS. See the user_context area in this section you must link it to your dialing plan
The dialing plan is located in dialing plan folder.
My simple dialing plan looks like this.
<include>
<context name="theNameOfDialingplan">
<extension name="Worldwide">
<condition field="destination_number" expression="^00 (\d+)$">
<action application="set" data="hangup_after_bridge=true" />
<action application="bridge" data="sofia/gateway/gateway/00$1|sofia/gateway/gateway2/00$1" />
</condition>
</extension>
</context>
The context name of the dialing plan must be the same in the directory XML user_context
I color it in red.
I hope that this info are usefully for you.
Kind regards.
Von:freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von Samira Mh
Gesendet: Montag, 14. Mai 2012 11:11
An: Free SWITCH Users Help
Betreff: [Freeswitch-users] configuring gateway for making calls
hi guys;
i have configured gateway for making calls but it dosn't work;
my config files are as follow:
first create file that name " iptel.org.xml " in the below path:
/usr/local/freeswitch/conf/sip_profiles/external/
i have an account on iptel.org like :(username:aimas;password:mypass)
<include>
<gateway name="custom">
<param name="username" value="arimas"/>
<param name="password" value="mypass"/>
<param name="realm" value="iptel.org"/>
<!-- iptel.org requires a 'proxy' parameter -->
<param name="proxy" value="sip.iptel.org"/>
</gateway>-->
</include>
the run :
sofia profile external restart reloadxml reloxm
and sofia status:
Name Type Data State
=================================================================================================
external profile sip:mod_sofia at 10.0.3.15:5080 RUNNING (0)
external::example.com gateway sip:joeuser at example.com NOREG
external::custom gateway sip:arimas at sip.iptel.org REGED
internal profile sip:mod_sofia at 10.0.3.15:5060 RUNNING (0)
10.0.3.15 alias internal ALIASED
=================================================================================================
then create file name "01_custom.xml " in the below path :
/usr/local/freeswitch/conf/dialplan/default
the content of the files 01_custom.xml are:
<include>
<extension name="Dial Out Custom Gateway">
<condition field="destination_number"
expression="^9(1\d{10})$">
<action application="bridge"
data="sofia/gateway/custom/$1"/>
</condition>
</extension>
</include>
.
now when i dial 9, 1-800-555-1212 on eyebeam that register on freeswitch server the call is failed
please help;
thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120514/d9d095bf/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list