<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue style='word-wrap: break-word;-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In other words, you don’t have your
extension 2222 in the right spot. Check to see that it isn’t in the default.xml
dialplan file after the enum extension. It needs to be *<b><span
style='font-weight:bold'>before</span></b>* the enum extension because the enum
extension is the catch-all – it grabs everything that hasn’t
already been matched in the dialplan.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>HINT: You might want to consider putting
your extension in the conf/dialplan/default directory in its own XML file. Extensions
in that directory are always inserted into the dialplan prior to the enum
extension. If you want your specific XML file to be parsed prior to the other
files in there then be sure to name it with a low number, like
001_My_Extensions.xml. Note that there are a few files in there already. The
file you are particularly interested in is 99999_enum.xml. As long as your number
is lower than “99999” then you’ll get your file parsed first.
NOTE: A filename beginning with an alpha character is not “smaller”
than 99999! Definitely name your files with at least one digit first in the
filename. (Ask me how I learned that one!;)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>HtH<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-MC<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Michael Jerris<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, October 16, 2008
8:57 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users]
How to get DISA working ?</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2008-10-16 15:54:29 [NOTICE] switch_ivr.c:1116
switch_ivr_session_transfer()<br>
Transfer <a href="mailto:sofia/internal/2000@192.168.2.11">sofia/internal/2000@192.168.2.11</a> to
enum[2222@default]<br>
2008-10-16 15:54:31 [INFO] switch_core_state_machine.c:114<br>
switch_core_standard_on_routing() No Route, Aborting<o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Your routing to enum for extension 2222 and there is no enum route for
that number.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Mike<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Oct 16, 2008, at 9:59 AM, henkoegema wrote:<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
I'm trying to get DISA working.<br>
I've done this:<br>
<br>
<exten name="2222"><br>
<condition
field="destination_number" expression="^2222$"><br>
<action application="javascript"<br>
data="/usr/local/freeswitch/conf/disa/disa.js"/><br>
</extension> <br>
<br>
<br>
The file disa.js is here: <a
href="http://wiki.freeswitch.org/wiki/Examples_disa.js">http://wiki.freeswitch.org/wiki/Examples_disa.js</a><br>
<br>
calling 2222 gives me busy tone:<br>
<br>
freeswitch@ubuntu> 2008-10-16 15:54:29 [NOTICE] switch_channel.c:553<br>
switch_channel_set_name() New Channel <a
href="mailto:sofia/internal/2000@192.168.2.11">sofia/internal/2000@192.168.2.11</a><br>
[f3d6e460-9b89-11dd-910f-55dc10d13151]<br>
2008-10-16 15:54:29 [INFO] mod_dialplan_xml.c:232 dialplan_hunt() Processing<br>
2000->2222 in context default<br>
2008-10-16 15:54:29 [NOTICE] switch_ivr.c:1116 switch_ivr_session_transfer()<br>
Transfer <a href="mailto:sofia/internal/2000@192.168.2.11">sofia/internal/2000@192.168.2.11</a>
to enum[2222@default]<br>
2008-10-16 15:54:31 [INFO] switch_core_state_machine.c:114<br>
switch_core_standard_on_routing() No Route, Aborting<br>
2008-10-16 15:54:31 [NOTICE] switch_core_state_machine.c:115<br>
switch_core_standard_on_routing() Hangup <a
href="mailto:sofia/internal/2000@192.168.2.11">sofia/internal/2000@192.168.2.11</a><br>
[CS_ROUTING] [NO_ROUTE_DESTINATION]<br>
2008-10-16 15:54:31 [NOTICE] switch_core_session.c:833<br>
switch_core_session_thread() Session 12 (<a
href="mailto:sofia/internal/2000@192.168.2.11">sofia/internal/2000@192.168.2.11</a>)<br>
Ended<br>
2008-10-16 15:54:31 [NOTICE] switch_core_session.c:835<br>
switch_core_session_thread() Close Channel <a
href="mailto:sofia/internal/2000@192.168.2.11">sofia/internal/2000@192.168.2.11</a><br>
[CS_HANGUP]<br>
<br>
<br>
<br>
And API call gives:<br>
<br>
freeswitch@ubuntu> jsrun /usr/local/freeswitch/conf/disa/disa.js<br>
2008-10-16 15:56:42 [ERR] disa.js:27 mod_spidermonkey() TypeError:<br>
session.ready is not a function<br>
API CALL [jsrun(/usr/local/freeswitch/conf/disa/disa.js)] output:<br>
OK<br>
<br>
<br>
I'm I doing something wrong ?<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>