[Freeswitch-users] inbound calls

Ilan Perez iperez at diagnosticdev.com
Mon Aug 4 18:14:22 PDT 2008

What did you do?



Ilan Perez


From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Roberto
Sent: 05 August 2008 08:53
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] inbound calls


Figured it out.  






From: Roberto Hernandez [mailto:rh at bluevisor.com] 
Sent: Monday, August 04, 2008 11:01 AM
To: 'freeswitch-users at lists.freeswitch.org'
Subject: inbound calls


I've configured one X-Lite softphone (id=1000) and made my first few PSTN
outbound calls with no problem.  

Inbound is a bit of a mystery.  How do I configure PSTN inbound calls to
terminated on my softphone?   


I found the following archived email, would someone break it down so new
users can understand?  Thanks in advance.


In public.xml, you want something like this:


     <extension name="test_did">

       <condition field="destination_number" expression="^(4153084258)$">

         <action application="transfer" data="$1 XML default"/>




and then in default.xml have something like this in the default context:


<extension name="Local_Extension">

       <condition field="destination_number" expression="^(4153084258)$"

         <action application="set" data="dialed_ext=$1"/>


       <condition field="destination_number"

         <action application="set"

         <action application="answer"/>

         <action application="sleep" data="1000"/>

         <action application="voicemail" data="check default $${domain}
${dialed_ ext}"/>

         <anti-action application="ring_ready"/>

         <anti-action application="set" data="call_timeout=10"/>

         <anti-action application="set" data="hangup_after_bridge=true"/>

         <anti-action application="set" data="continue_on_fail=true"/>

         <anti-action application="bridge"

         <anti-action application="answer"/>

         <anti-action application="sleep" data="1000"/>

         <anti-action application="voicemail" data="default $${domain}
${dialed_e xt}"/>






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080805/dead182a/attachment-0002.html 

More information about the FreeSWITCH-users mailing list