[Freeswitch-users] Sample Dial Plan - IAX - GooGleTalk - Asterisk

Amon Ghupta aghupta at gmail.com
Mon Sep 4 12:13:23 EDT 2006


Hello  Et Al,

I Have noticed that there are not many sample dial plan to guide
"newbies" in
connecting FreeSwitch to Asterisk / OpenSER / SIP Clients / GooGleTalk.

The attached FreeSwicth config contributed by  http://agilesip.com
as an attempt to draw a line in the sand and provide sample dial plans
and assist others in the
community to quickly configure FreeSwitch communicate with it.

Please review and let us know where it can be improve.

#####  AgileCO  http://agileco.net-  http://agilesip.com

#####  Sample DialPLAN

$  svn checkout --username username --password XXXXXX  \

http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch.trunk

$ cd freeswitch.trunk

$ ./configure --prefix=/usr/local/freeswitch

$ make && make install



configure freeswitch:

edit /usr/local/freeswitch/conf/freeswitch.xml



<load module="mod_dingaling"/>



<configuration name="agilesip.conf" description="XMPP Jingle Endpoint">

<settings>

<param name="debug" value="1"/>

<param name="codec-prefs" value="PCMU"/>

</settings>

<interface>

<param name="name" value="jingle"/>

<param name="login" value="username at freeswitch.org/talk"/>

<param name="password" value="XXXXXXXXX"/>

<param name="dialplan" value="XML"/>

<param name="message" value="Jingle all the way"/>

<param name="rtp-ip" value="agilesip"/>

<param name="auto-login" value="true"/>

<param name="use-rtp-timer" value="true"/>

<param name="exten" value="1020"/>

<param name="vad" value="both"/>

</interface>

</configuration>



<extension name="1020">

<condition field="destination_number" expression="^1020$">

<action application="bridge" data="iax/guest at serveriax/2020"/>

<action application="echo" />

</condition>

</extension>

</code>



Asterisk IAX Configs



nel vostro dialplan asterisk mettere qualcosa del tipo

[default]

exten => 2020,1,NoOp(Incoming call via from freeswitch)

exten => 2020,2,Dial(IAX2/XXXX at agilesip/01139viasipagilecoiax,50,R)

exten => 2020,3,Hangup



AgileSIP, in iax.conf



[guest]

type=user

context=default

callerid=ÓGuest IAX UserÓ

disallow=all

allow=ulaw



[agilesip]

type=peer

host=24.246.220.19

secret= XXXXXXXXXXXXXX

auth=md5

notransfer=yes

context=default

disallow=all

allow = speex

allow = gsm

allow = ilbc

allow = ulaw

allow = alaw



Thanks in advance and best regards,
-A






More information about the Freeswitch-users mailing list