[Freeswitch-users] Keeping local calls local

D'Arcy Cain darcy at Vex.Net
Tue Sep 25 16:44:58 MSD 2012


On Mon, 24 Sep 2012 00:40:37 +0200
Avi Marcus <avi at avimarcus.net> wrote:
> enum or a DB query to your routing table for inbound calls, e.g. using
> mod_odbc_query <http://wiki.freeswitch.org/wiki/Mod_odbc_query>.

After some investigation I stumbled across "user_exists" and thought
that something like this might work in dialplan/default.xml and
public.xml.

 <extension name="user_found">
  <condition field="${user_exists(id ${destination_number} $${domain})}" expression="true"> 
  <action application="transfer" data="${destination_number}" />
</extension>

I also tried "bridge" instead of "transfer" but either way FreeSWITCH
fails to restart.

Stopping FreeSWITCH.
Killing: 14561
Waiting for PIDS: 14561.
Starting freeswitch.
WARNING: Wasting up to 8 megs of memory per thread.
16555 Backgrounding.
FreeSWITCH[16554] System Ready pid:16555
[ERROR] fs_cli.c:1376 main() Error Connecting [Socket Connection Error]

There is nothing in the log.  Can anyone see what I am doing wrong here?

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy at Vex.Net



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list