What did you do?

 

 

Ilan Perez

 

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

 

Figured it out. 

 

Thanks,

Roberto

 


From: Roberto Hernandez [mailto:rh@bluevisor.com]
Sent: Monday, August 04, 2008 11:01 AM
To: 'freeswitch-users@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"/>

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