[Freeswitch-users] Can't configure outbound call

Lars Zeb larclap at yahoo.com
Mon May 11 14:38:16 PDT 2009


 I am having difficulty making an outbound call. I have read the wiki many
times, but I am missing something.

 

First, after setting up a gateway xml file, should that gateway show in the
FS console after issuing the 'reloadxml' command? It does not.

 

Can anyone give me a push? Thanks, Lars

 

API CALL [sofia(status)] output:

                     Name          Type                               Data
State

============================================================================
=====================

                 external       profile   sip:mod_sofia at 64.105.128.82:5080
RUNNING (0)

              example.com       gateway            sip:joeuser at example.com
NOREG

                 internal       profile   sip:mod_sofia at 192.168.10.29:5090
RUNNING (0)

            192.168.10.29         alias                           internal
ALIASED

            internal-ipv6       profile           sip:mod_sofia@[::1]:5090
RUNNING (0)

                  default         alias                           internal
ALIASED

                      nat         alias                           external
ALIASED

                 outbound         alias                           external
ALIASED

 

in conf/directory/default/flowroute.com.xml:

<include>

   <gateway name="flowroute">

      <param name="username" value="flowrouteAccount"/>

      <param name="from-domain" value="sip.flowroute.com"/>

      <param name="password" value="password"/>

      <param name="extension" value="flowrouteAccount"/>

      <param name="realm" value="sip.flowroute.com"/>

      <param name="proxy" value="sip.flowroute.com"/>

      <param name="expire-seconds" value="3600"/>

      <param name="register" value="true"/>

      <param name="retry-seconds" value="3600"/>

      <param name="caller-id-in-from" value="true"/>

   </gateway>

</include>

 

in conf/dialplan/default/02_long_distance.xml:

   <!-- Dial any 10 digit number (2223334444) or 1+10 number (12223334444)
here -->

   <extension name="Long Distance - flowroute">

    <condition field="destination_number" expression="^(1{0,1}\d{10})$">

      <action application="set"
data="effective_caller_id_number=10000000000"/>

      <!-- If your provider does not provide ringback (180 or 183) you may
simulate ringback by uncommenting the following line. -->

      <!-- action application="ringback" /-->

      <action application="bridge"
data="sofia/gateway/flowroute/flowrouteAccount#$1"/>

     </condition>

   </extension>

 

Dialplan: sofia/internal/1000 at 192.168.10.29:5090 Regex (PASS) [Long Distance
- flowroute] destination_number(3235551212) =~ /^(1{0,1}\d{10})$/
break=on-false

Dialplan: sofia/internal/1000 at 192.168.10.29:5090 Action
set(effective_caller_id_number=10000000000)

Dialplan: sofia/internal/1000 at 192.168.10.29:5090 Action
set(effective_caller_id_name=${outbound_caller_id_name})

Dialplan: sofia/internal/1000 at 192.168.10.29:5090 Action
bridge(sofia/gateway/flowroute/flowrouteAccount#3235551212)

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:114
switch_core_standard_on_routing() (sofia/internal/1000 at 192.168.10.29:5090)
State Change CS_ROUTING -> CS_EXECUTE

2009-05-11 14:05:41 [DEBUG] switch_core_session.c:933
switch_core_session_signal_state_change() Send signal
sofia/internal/1000 at 192.168.10.29:5090 [BREAK]

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:483
switch_core_session_run() (sofia/internal/1000 at 192.168.10.29:5090) State
ROUTING going to sleep

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:397
switch_core_session_run() (sofia/internal/1000 at 192.168.10.29:5090) Running
State Change CS_EXECUTE

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:490
switch_core_session_run() (sofia/internal/1000 at 192.168.10.29:5090) State
EXECUTE

2009-05-11 14:05:41 [DEBUG] mod_sofia.c:173 sofia_on_execute()
sofia/internal/1000 at 192.168.10.29:5090 SOFIA EXECUTE

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:151
switch_core_standard_on_execute() sofia/internal/1000 at 192.168.10.29:5090
Standard EXECUTE

EXECUTE sofia/internal/1000 at 192.168.10.29:5090 set(open=true)

2009-05-11 14:05:41 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000 at 192.168.10.29:5090 SET [open]=[true]

EXECUTE sofia/internal/1000 at 192.168.10.29:5090 set(use_profile=nat)

2009-05-11 14:05:41 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000 at 192.168.10.29:5090 SET [use_profile]=[nat]

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
set_user(default at 192.168.10.29)

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
hash(insert/192.168.10.29-spymap/1000/7c7baffc-3e6f-11de-9b6b-7ba002f89c82)

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
hash(insert/192.168.10.29-last_dial/1000/3235551212)

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
hash(insert/192.168.10.29-last_dial/global/7c7baffc-3e6f-11de-9b6b-7ba002f89
c82)

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
set(effective_caller_id_number=10000000000)

2009-05-11 14:05:41 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000 at 192.168.10.29:5090 SET
[effective_caller_id_number]=[10000000000]

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
set(effective_caller_id_name=FreeSWITCH)

2009-05-11 14:05:41 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1000 at 192.168.10.29:5090 SET
[effective_caller_id_name]=[FreeSWITCH]

EXECUTE sofia/internal/1000 at 192.168.10.29:5090
bridge(sofia/gateway/flowroute/flowrouteAccount#3235551212)

2009-05-11 14:05:41 [ERR] mod_sofia.c:2531 sofia_outgoing_channel() Invalid
Gateway

2009-05-11 14:05:41 [NOTICE] mod_sofia.c:2744 sofia_outgoing_channel() Close
Channel N/A [CS_NEW]

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:559
switch_core_session_destroy_state() (N/A) State DESTROY

2009-05-11 14:05:41 [DEBUG] mod_sofia.c:240 sofia_on_destroy() N/A SOFIA
DESTROY

2009-05-11 14:05:41 [DEBUG] switch_core_state_machine.c:559
switch_core_session_destroy_state() (N/A) State DESTROY going to sleep

2009-05-11 14:05:41 [ERR] switch_ivr_originate.c:1494 switch_ivr_originate()
Cannot create outgoing channel of type [sofia] cause:
[INVALID_NUMBER_FORMAT]

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090511/492b11bb/attachment-0002.html 


More information about the FreeSWITCH-users mailing list