[Freeswitch-users] Simple gateway config

Simon Shaw sshaw at interwise.com
Thu Jul 31 07:57:48 PDT 2008


Made the suggested change but the call is still failing.  Here are the
traces:

 

2008-07-31 17:54:51 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/internal/1000 at 10.10.4.204
[554b908a-7b88

-7e42-b4ec-6f9c5a57eac1]

2008-07-31 17:54:51 [INFO] mod_dialplan_xml.c:222 dialplan_hunt()
Processing Simon FS->58661 at default

2008-07-31 17:54:52 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/nat/$1 at 10.10.7.95
[7ec08549-dcf2-b045-87f7-fff2d91061c5]

2008-07-31 17:55:08 [ERR] sofia_glue.c:480
sofia_glue_ext_address_lookup() Stun Failed! stun.freeswitch.org:3478
[Timeout]

2008-07-31 17:55:08 [NOTICE] switch_core_session.c:807
switch_core_session_thread() Session 34 (sofia/nat/$1 at 10.10.7.95) Ended

2008-07-31 17:55:08 [NOTICE] switch_core_session.c:809
switch_core_session_thread() Close Channel sofia/nat/$1 at 10.10.7.95
[CS_HANGUP]

2008-07-31 17:55:17 [ERR] sofia_glue.c:480
sofia_glue_ext_address_lookup() Stun Failed! stun.freeswitch.org:3478
[Timeout]

2008-07-31 17:55:17 [NOTICE] mod_sofia.c:100 sofia_on_init() Hangup
sofia/nat/$1 at 10.10.7.95 [CS_INIT] [DESTINATION_OUT_OF_ORDER]

2008-07-31 17:55:17 [INFO] mod_dptools.c:1794 audio_bridge_function()
Originate Failed.  Cause: DESTINATION_OUT_OF_ORDER

2008-07-31 17:55:17 [NOTICE] switch_core_session.c:807
switch_core_session_thread() Session 36 (sofia/nat/$1 at 10.10.7.95) Ended

2008-07-31 17:55:17 [NOTICE] switch_core_session.c:809
switch_core_session_thread() Close Channel sofia/nat/$1 at 10.10.7.95
[CS_HANGUP]

2008-07-31 17:55:17 [NOTICE] mod_dptools.c:1821 audio_bridge_function()
Hangup sofia/internal/1000 at 10.10.4.204 [CS_EXECUTE]
[DESTINATION_OUT_OF_ORDER]

2008-07-31 17:55:17 [NOTICE] switch_core_session.c:807
switch_core_session_thread() Session 35
(sofia/internal/1000 at 10.10.4.204) Ended

2008-07-31 17:55:17 [NOTICE] switch_core_session.c:809
switch_core_session_thread() Close Channel
sofia/internal/1000 at 10.10.4.204 [CS_HANGUP]

 

________________________________

Try "^5\d{4}$"

 

/b

 

 

On Jul 31, 2008, at 8:55 AM, Simon Shaw wrote:

 

> "^5d{4}$"

 

Brian West

sip:brian at freeswitch.org
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> 

 

From: Simon Shaw 
Sent: Thursday, July 31, 2008 4:55 PM
To: 'Freeswitch-users at lists.freeswitch.org'
Subject: Simple gateway config

 

I am running FS of a windows box IP 10.10.4.204 and have successfully
managed to demo most of the default features.

I attempted to extend the configuration by adding a gateway as follows
in $(prefix)\conf\dialplan\default.xml, where 10.10.7.95 is the address
of a working  asterisk test box I have setup (I ran the reloadxml
command from the console after updating the file):

 

    <!-- Forward any 5 digit number starting with 5 to the Staging
asterisk box -->

    <extension name="Staging">

      <condition field="destination_number" expression="^5d{4}$">

        <action application="bridge"
data="sofia/${use_profile}/$1 at 10.10.7.95"/>

      </condition>

    </extension>

 

When I dial 58661 (8661 being the extension of a working phone on the
asterisk box) I get the following traces in the console, however no
INVITE message is sent to 10.10.7.95.

 

2008-07-31 16:50:44 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/internal/1000 at 10.10.4.204
[54b22243-26c5

-1c41-a59d-27ae7547df1e]

2008-07-31 16:50:44 [INFO] mod_dialplan_xml.c:222 dialplan_hunt()
Processing Simon FS->58661 at default

2008-07-31 16:50:45 [NOTICE] switch_ivr.c:1097
switch_ivr_session_transfer() Transfer sofia/internal/1000 at 10.10.4.204
to enum[58661 at default]

2008-07-31 16:50:55 [INFO] switch_core_state_machine.c:114
switch_core_standard_on_routing() No Route, Aborting

2008-07-31 16:50:55 [NOTICE] switch_core_state_machine.c:115
switch_core_standard_on_routing() Hangup sofia/internal/1000 at 10.10.4.204
[CS_ROUTING] [NO_ROUTE_DES

TINATION]

2008-07-31 16:50:55 [NOTICE] switch_core_session.c:807
switch_core_session_thread() Session 45
(sofia/internal/1000 at 10.10.4.204) Ended

2008-07-31 16:50:55 [NOTICE] switch_core_session.c:809
switch_core_session_thread() Close Channel
sofia/internal/1000 at 10.10.4.204 [CS_HANGUP]

 

What am I missing,

 

Thanks,

Simon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080731/17189d62/attachment-0002.html 


More information about the FreeSWITCH-users mailing list