[Freeswitch-users] Can't configure outbound call
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_so...@64.105.128.82:5080 RUNNING (0) example.com gatewaysip:joeu...@example.com NOREG internal profile sip:mod_so...@192.168.10.29:5090 RUNNING (0) 192.168.10.29 alias internal ALIASED internal-ipv6 profile sip:mod_so...@[::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 (222333) or 1+10 number (1222333) here -- extension name=Long Distance - flowroute condition field=destination_number expression=^(1{0,1}\d{10})$ action application=set data=effective_caller_id_number=100/ !-- 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/1...@192.168.10.29:5090 Regex (PASS) [Long Distance - flowroute] destination_number(3235551212) =~ /^(1{0,1}\d{10})$/ break=on-false Dialplan: sofia/internal/1...@192.168.10.29:5090 Action set(effective_caller_id_number=100) 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#3235551212) 2009-05-11 14:05:41 [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 14:05:41 [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 14:05:41 [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 14:05:41 [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 14:05:41 [DEBUG] switch_core_state_machine.c:490 switch_core_session_run() (sofia/internal/1...@192.168.10.29:5090) State EXECUTE 2009-05-11 14:05:41 [DEBUG] mod_sofia.c:173 sofia_on_execute() sofia/internal/1...@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/1...@192.168.10.29:5090 Standard EXECUTE EXECUTE sofia/internal/1...@192.168.10.29:5090 set(open=true) 2009-05-11 14:05:41 [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 14:05:41 [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/7c7baffc-3e6f-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/7c7baffc-3e6f-11de-9b6b-7ba002f89 c82) EXECUTE sofia/internal/1...@192.168.10.29:5090 set(effective_caller_id_number=100) 2009-05-11 14:05:41 [DEBUG] mod_dptools.c:748 set_function() sofia/internal/1...@192.168.10.29:5090 SET [effective_caller_id_number]=[100]
Re: [Freeswitch-users] Can't configure outbound call
Try this ^1?(\d{10})$ and this sofia/gateway/flowroute/flowrouteAccount#1$1 /b On May 11, 2009, at 4:38 PM, Lars Zeb wrote: in conf/dialplan/default/02_long_distance.xml: !-- Dial any 10 digit number (222333) or 1+10 number (1222333) here -- extension name=Long Distance - flowroute condition field=destination_number expression=^(1{0,1}\d{10}) $ action application=set data=effective_caller_id_number=100/ !-- 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 Brian West br...@freeswitch.org -- Meet us at ClueCon! 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
Re: [Freeswitch-users] Can't configure outbound call
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? -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: Monday, May 11, 2009 2:58 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Can't configure outbound call Try this ^1?(\d{10})$ and this sofia/gateway/flowroute/flowrouteAccount#1$1 /b On May 11, 2009, at 4:38 PM, Lars Zeb wrote: in conf/dialplan/default/02_long_distance.xml: !-- Dial any 10 digit number (222333) or 1+10 number (1222333) here -- extension name=Long Distance - flowroute condition field=destination_number expression=^(1{0,1}\d{10}) $ action application=set data=effective_caller_id_number=100/ !-- 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 Brian West br...@freeswitch.org -- Meet us at ClueCon! 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 ___ 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
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=100/ !-- 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 ___ 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
Re: [Freeswitch-users] Can't configure outbound call
On May 11, 2009, at 7:51 PM, Lars Zeb wrote: 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. It sounds like sofia hasn't picked up your new gateway yet. Have you tried something like the below yet? sofia profile external rescan reloadxml -Dale___ 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
Re: [Freeswitch-users] Can't configure outbound call
The one you emailed anthony about the invite... 487 repeat stuff.. can you give me more details on what might be going on? /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 ___ 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
Re: [Freeswitch-users] Can't configure outbound call
I believe you're talking about the FS sending out an ICMP in response to the client's invite, which resulted in 'ICMP Destination unreachable'. He told me to turn iptables off, which I did. Then the Eyebeam registered successfully. I don't know what the '487 repeat stuff' was. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: Monday, May 11, 2009 7:59 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Can't configure outbound call The one you emailed anthony about the invite... 487 repeat stuff.. can you give me more details on what might be going on? /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
Re: [Freeswitch-users] Can't configure outbound call
Haha that's ok I sent that email to you by mistake I wondered where that email went! /b Sent from my iPhone On May 11, 2009, at 11:29 PM, Lars Zeb larc...@yahoo.com wrote: I believe you’re talking about the FS sending out an ICMP in respons e to the client’s invite, which resulted in ‘ICMP Destination unreachable’. He told me to turn iptables off, which I did. Then th e Eyebeam registered successfully. I don’t know what the ‘487 repeat stuff’ was. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: Monday, May 11, 2009 7:59 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Can't configure outbound call The one you emailed anthony about the invite... 487 repeat stuff.. can you give me more details on what might be going on? /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 ___ 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 ___ 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