Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to get DISA working ?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mike at jerris.com
Guest





PostPosted: Thu Oct 16, 2008 11:50 am    Post subject: [Freeswitch-users] How to get DISA working ? Reply with quote

2008-10-16 15:54:29 [NOTICE] switch_ivr.c:1116 switch_ivr_session_transfer()
Transfer sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email]) to enum[2222@default]
2008-10-16 15:54:31 [INFO] switch_core_state_machine.c:114
switch_core_standard_on_routing() No Route, Aborting




Your routing to enum for extension 2222 and there is no enum route for that number.


Mike




On Oct 16, 2008, at 9:59 AM, henkoegema wrote:
Quote:

I'm trying to get DISA working.
I've done this:

<exten name="2222">
<condition field="destination_number" expression="^2222$">
<action application="javascript"
data="/usr/local/freeswitch/conf/disa/disa.js"/>
</extension>


The file disa.js is here: http://wiki.freeswitch.org/wiki/Examples_disa.js

calling 2222 gives me busy tone:

freeswitch@ubuntu> 2008-10-16 15:54:29 [NOTICE] switch_channel.c:553
switch_channel_set_name() New Channel sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email])
[f3d6e460-9b89-11dd-910f-55dc10d13151]
2008-10-16 15:54:29 [INFO] mod_dialplan_xml.c:232 dialplan_hunt() Processing
2000->2222 in context default
2008-10-16 15:54:29 [NOTICE] switch_ivr.c:1116 switch_ivr_session_transfer()
Transfer sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email]) to enum[2222@default]
2008-10-16 15:54:31 [INFO] switch_core_state_machine.c:114
switch_core_standard_on_routing() No Route, Aborting
2008-10-16 15:54:31 [NOTICE] switch_core_state_machine.c:115
switch_core_standard_on_routing() Hangup sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email])
[CS_ROUTING] [NO_ROUTE_DESTINATION]
2008-10-16 15:54:31 [NOTICE] switch_core_session.c:833
switch_core_session_thread() Session 12 (sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email]))
Ended
2008-10-16 15:54:31 [NOTICE] switch_core_session.c:835
switch_core_session_thread() Close Channel sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email])
[CS_HANGUP]



And API call gives:

freeswitch@ubuntu> jsrun /usr/local/freeswitch/conf/disa/disa.js
2008-10-16 15:56:42 [ERR] disa.js:27 mod_spidermonkey() TypeError:
session.ready is not a function
API CALL [jsrun(/usr/local/freeswitch/conf/disa/disa.js)] output:
OK


I'm I doing something wrong ?

Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Thu Oct 16, 2008 4:33 pm    Post subject: [Freeswitch-users] How to get DISA working ? Reply with quote

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 *before* the enum extension because the enum extension is the catch-all – it grabs everything that hasn’t already been matched in the dialplan.

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!Wink

HtH

-MC



From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: Thursday, October 16, 2008 8:57 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to get DISA working ?


2008-10-16 15:54:29 [NOTICE] switch_ivr.c:1116 switch_ivr_session_transfer()
Transfer sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email]) to enum[2222@default]
2008-10-16 15:54:31 [INFO] switch_core_state_machine.c:114
switch_core_standard_on_routing() No Route, Aborting




Your routing to enum for extension 2222 and there is no enum route for that number.



Mike





On Oct 16, 2008, at 9:59 AM, henkoegema wrote:





I'm trying to get DISA working.
I've done this:

<exten name="2222">
<condition field="destination_number" expression="^2222$">
<action application="javascript"
data="/usr/local/freeswitch/conf/disa/disa.js"/>
</extension>


The file disa.js is here: http://wiki.freeswitch.org/wiki/Examples_disa.js

calling 2222 gives me busy tone:

freeswitch@ubuntu> 2008-10-16 15:54:29 [NOTICE] switch_channel.c:553
switch_channel_set_name() New Channel sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email])
[f3d6e460-9b89-11dd-910f-55dc10d13151]
2008-10-16 15:54:29 [INFO] mod_dialplan_xml.c:232 dialplan_hunt() Processing
2000->2222 in context default
2008-10-16 15:54:29 [NOTICE] switch_ivr.c:1116 switch_ivr_session_transfer()
Transfer sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email]) to enum[2222@default]
2008-10-16 15:54:31 [INFO] switch_core_state_machine.c:114
switch_core_standard_on_routing() No Route, Aborting
2008-10-16 15:54:31 [NOTICE] switch_core_state_machine.c:115
switch_core_standard_on_routing() Hangup sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email])
[CS_ROUTING] [NO_ROUTE_DESTINATION]
2008-10-16 15:54:31 [NOTICE] switch_core_session.c:833
switch_core_session_thread() Session 12 (sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email]))
Ended
2008-10-16 15:54:31 [NOTICE] switch_core_session.c:835
switch_core_session_thread() Close Channel sofia/internal/2000@192.168.2.11 ([email]sofia/internal/2000@192.168.2.11[/email])
[CS_HANGUP]



And API call gives:

freeswitch@ubuntu> jsrun /usr/local/freeswitch/conf/disa/disa.js
2008-10-16 15:56:42 [ERR] disa.js:27 mod_spidermonkey() TypeError:
session.ready is not a function
API CALL [jsrun(/usr/local/freeswitch/conf/disa/disa.js)] output:
OK


I'm I doing something wrong ?
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Oct 16, 2008 4:36 pm    Post subject: [Freeswitch-users] How to get DISA working ? Reply with quote

This hint only works in the default configs in SVN trunk as of the past two weeks if I recall. Also in your version you'll be conf/diaplan/extensions/

/b

On Oct 16, 2008, at 2:30 PM, Michael Collins wrote:
Quote:
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!Wink

Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Thu Oct 16, 2008 6:16 pm    Post subject: [Freeswitch-users] How to get DISA working ? Reply with quote

Oops, my directory layout is older. I will get a proper update put into place right now.
-MC


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Thursday, October 16, 2008 2:30 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to get DISA working ?


This hint only works in the default configs in SVN trunk as of the past two weeks if I recall. Also in your version you'll be conf/diaplan/extensions/


/b


On Oct 16, 2008, at 2:30 PM, Michael Collins wrote:




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!Wink
Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Thu Oct 16, 2008 6:40 pm    Post subject: [Freeswitch-users] How to get DISA working ? Reply with quote

Scratch that last… I clicked send before thinking… Razz
-MC


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Thursday, October 16, 2008 4:12 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to get DISA working ?


Oops, my directory layout is older. I will get a proper update put into place right now.
-MC


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Thursday, October 16, 2008 2:30 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to get DISA working ?


This hint only works in the default configs in SVN trunk as of the past two weeks if I recall. Also in your version you'll be conf/diaplan/extensions/


/b


On Oct 16, 2008, at 2:30 PM, Michael Collins wrote:


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!Wink
Back to top
pabx_freeswitch at tel...
Guest





PostPosted: Fri Oct 17, 2008 12:53 pm    Post subject: [Freeswitch-users] How to get DISA working ? Reply with quote

Michael Jerris wrote:
Quote:


Your routing to enum for extension 2222 and there is no enum route for
that number.


I should have seen that mistake myself. :blush:

Does somebody have a script, similar to
http://wiki.freeswitch.org/wiki/Examples_disa.js
but without a password. (I don't have enough knowledge of java to program
it myself)

The way I'm using DISA is like this: 016123456pp1111
So I call (from my mobile) 016123456, wait for a few seconds , and then send
DTMF 1111. (to dial extension 1111)


Henk


--
View this message in context: http://www.nabble.com/How-to-get-DISA-working---tp20014227p20038024.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services