[Freeswitch-users] 404 error when adding new <extension> element to dialplan.

Jian Yuan Peng jypeng at yahoo.com
Fri Jan 9 11:32:12 PST 2009

I have post message yesterday, and I did a quick tried on following step to add enum.
I tried to use java sip client to make outbound call using gafachi or qwest. So, I added
   <extension name="matchpoint_caller">
       <condition field="caller_id_number" expression="^16508101200$"/>
       <condition field="destination_number" expression="^(.*)$">
         <action application="set" data="effective_caller_id_number=16508101200"/>
         <action application="set" data="effective_caller_id_name=Matchpoint Inc."/>
         <action application="bridge" data="sofia/gateway/sip.gafachi.com/$1"/>

First, created new file matchpoint_caller.xml, and put under conf/dialplan, (i also tried it at conf/dialplan/default) directory.
For some reason, It never pickup this enum (404 error), when java sip sent the invite. Then remove the matchpoint_caller.xml and add the 
<extension name="matchpoint_caller"> to conf/dialplan/default.xml.

The trick thing is that 
if put this element above
 <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
then 404 is gone.
If I put it below 
<X-PRE-PROCESS cmd="include" data="default/*.xml"/>
then i still got 404 error.


More information about the FreeSWITCH-users mailing list