[Freeswitch-users] inbound calls

Roberto Hernandez rh at bluevisor.com
Mon Aug 4 15:52:40 PDT 2008

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/20080804/658439fb/attachment-0002.html 

More information about the FreeSWITCH-users mailing list