[Freeswitch-users] inbound calls

Roberto Hernandez rh at bluevisor.com
Mon Aug 4 11:01:04 PDT 2008


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"/>

       </condition>

     </extension>

 

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

 

<extension name="Local_Extension">

       <condition field="destination_number" expression="^(4153084258)$"
continue="on-true">

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

       </condition>

       <condition field="destination_number"
expression="^${caller_id_number}$">

         <action application="set"
data="voicemail_authorized=${sip_authorized}"/>

         <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"
data="USER/${dialed_ext}@$${domain}"/>

         <anti-action application="answer"/>

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

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

       </condition>

     </extension>

 

Thanks,

Roberto

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


More information about the FreeSWITCH-users mailing list