VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jypeng at yahoo.com Guest
|
Posted: Fri Jan 09, 2009 2:35 pm Post subject: [Freeswitch-users] 404 error when adding new <extension&g |
|
|
FYI,
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"/>
</condition>
</extension>
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.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Fri Jan 09, 2009 3:14 pm Post subject: [Freeswitch-users] 404 error when adding new <extension&g |
|
|
You have two conditions. the callerid has to be 16508101200
/b
On Jan 9, 2009, at 1:32 PM, Jian Yuan Peng wrote:
Quote: | FYI,
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"/>
</condition>
</extension>
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|