Thanks for the clarification. It made sense, but the results remain the
same. The log still says 'Invalid Gateway' and 'sofia status' at the console
does not show flowroute.

 

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

Dialplan: sofia/internal/1...@192.168.10.29:5090 Action
set(effective_caller_id_number=13235555555)

Dialplan: sofia/internal/1...@192.168.10.29:5090 Action
set(effective_caller_id_name=${outbound_caller_id_name})

Dialplan: sofia/internal/1...@192.168.10.29:5090 Action
bridge(sofia/gateway/flowroute/flowrouteAccount#13235551212)

2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:114
switch_core_standard_on_routing() (sofia/internal/1...@192.168.10.29:5090)
State Change CS_ROUTING -> CS_EXECUTE

2009-05-11 16:43:47 [DEBUG] switch_core_session.c:933
switch_core_session_signal_state_change() Send signal
sofia/internal/1...@192.168.10.29:5090 [BREAK]

2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:483
switch_core_session_run() (sofia/internal/1...@192.168.10.29:5090) State
ROUTING going to sleep

2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:397
switch_core_session_run() (sofia/internal/1...@192.168.10.29:5090) Running
State Change CS_EXECUTE

2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:490
switch_core_session_run() (sofia/internal/1...@192.168.10.29:5090) State
EXECUTE

2009-05-11 16:43:47 [DEBUG] mod_sofia.c:173 sofia_on_execute()
sofia/internal/1...@192.168.10.29:5090 SOFIA EXECUTE

2009-05-11 16:43:47 [DEBUG] switch_core_state_machine.c:151
switch_core_standard_on_execute() sofia/internal/1...@192.168.10.29:5090
Standard EXECUTE

EXECUTE sofia/internal/1...@192.168.10.29:5090 set(open=true)

2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1...@192.168.10.29:5090 SET [open]=[true]

EXECUTE sofia/internal/1...@192.168.10.29:5090 set(use_profile=nat)

2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1...@192.168.10.29:5090 SET [use_profile]=[nat]

EXECUTE sofia/internal/1...@192.168.10.29:5090
set_user(defa...@192.168.10.29)

EXECUTE sofia/internal/1...@192.168.10.29:5090
hash(insert/192.168.10.29-spymap/1000/924426fa-3e85-11de-9b6b-7ba002f89c82)

EXECUTE sofia/internal/1...@192.168.10.29:5090
hash(insert/192.168.10.29-last_dial/1000/3235551212)

EXECUTE sofia/internal/1...@192.168.10.29:5090
hash(insert/192.168.10.29-last_dial/global/924426fa-3e85-11de-9b6b-7ba002f89
c82)

EXECUTE sofia/internal/1...@192.168.10.29:5090
set(effective_caller_id_number=13235555555)

2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1...@192.168.10.29:5090 SET
[effective_caller_id_number]=[13235555555]

EXECUTE sofia/internal/1...@192.168.10.29:5090
set(effective_caller_id_name=FreeSWITCH)

2009-05-11 16:43:47 [DEBUG] mod_dptools.c:748 set_function()
sofia/internal/1...@192.168.10.29:5090 SET
[effective_caller_id_name]=[FreeSWITCH]

EXECUTE sofia/internal/1...@192.168.10.29:5090
bridge(sofia/gateway/flowroute/flowrouteAccount#13235551212)

2009-05-11 16:43:47 [ERR] mod_sofia.c:2531 sofia_outgoing_channel() Invalid
Gateway

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

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

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

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

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

 

From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian
West
Sent: Monday, May 11, 2009 3:28 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Can't configure outbound call

 

You want to collect 11 or 10 digits and send it out flowroute which requires
1+ number.  The 1? makes the one optional.  So now we only collect 10 digits
and append the on in the bridge line.

 

 

   <extension name="Long Distance - flowroute">

    <condition field="destination_number" expression="^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$1"/>

     </condition>

   </extension>

 

/b

 

On May 11, 2009, at 5:23 PM, Lars Zeb wrote:





I'm sorry, but do not understand what it is that I should try. Are you
saying to change the data attribute in the action command of the dialplan?

 

Brian West

br...@freeswitch.org

 

-- Meet us at ClueCon!  http://www.cluecon.com <http://www.cluecon.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

Reply via email to