How to dial out via Voipbuster ?
I have created a gateway to Voipbuster in conf/sip_profiles/external/voipbuster.xml: <include> <gateway name="voipbuster"> <param name="username" value="henkoegema"/> <param name="realm" value="voipbuster.com"/> <param name="from-user" value="003216980xxx"/> <param name="password" value="xxxxxx"/> <param name="extension" value="1000"/> </gateway> </include> I suppose this is correct since I can register with Voipbuster: freeswitch@ubuntu> sofia status API CALL [sofia(status)] output: Name Type Data State =============================================== internal profile sip:mod_sofia@192.168.1.101:5060 RUNNING (0) external profile sip:mod_sofia@78.21.64.194:5080 RUNNING (0) voipbuster gateway sip:henkoegema@voipbuster.com REGED nat profile sip:mod_sofia@78.21.64.194:5070 RUNNING (0) default alias internal ALIASED 192.168.1.101 alias internal ALIASED outbound alias external ALIASED ================================================ 3 profiles 3 aliases Then I added the following lines to conf/dialplan/default.xml <!-- Dial though Voipbuster gateway --> <extension name="voipbuster"> <condition field="destination_number" expression="^(0031\d*})$"> <action application="bridge" data="sofia/gateway/voipbuster/$1@voipbuster.com"/> </condition> </extension> Something is still not correct: Get always busy tone when I dial 003134464135x (?) No Route !! 2008-07-01 17:47:21 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting What am I doing wrong ? Thanks Henk
try taking out the @voipbuster.com all you need is sofia/gateway/voipbuster/$1 On Tue, Jul 1, 2008 at 10:49 AM, Henk Oegema <pabx_freeswitch@telenet.be> wrote:
I have created a gateway to Voipbuster in conf/sip_profiles/external/voipbuster.xml:
<include> <gateway name="voipbuster"> <param name="username" value="henkoegema"/> <param name="realm" value="voipbuster.com"/> <param name="from-user" value="003216980xxx"/> <param name="password" value="xxxxxx"/> <param name="extension" value="1000"/> </gateway> </include>
I suppose this is correct since I can register with Voipbuster:
freeswitch@ubuntu> sofia status API CALL [sofia(status)] output: Name Type Data State =============================================== internal profile sip:mod_sofia@192.168.1.101:5060 RUNNING (0) external profile sip:mod_sofia@78.21.64.194:5080 RUNNING (0) voipbuster gateway sip:henkoegema@voipbuster.com<sip%3Ahenkoegema@voipbuster.com> REGED nat profile sip:mod_sofia@78.21.64.194:5070 RUNNING (0) default alias internal ALIASED 192.168.1.101 alias internal ALIASED outbound alias external ALIASED ================================================ 3 profiles 3 aliases
Then I added the following lines to conf/dialplan/default.xml
<!-- Dial though Voipbuster gateway --> <extension name="voipbuster"> <condition field="destination_number" expression="^(0031\d*})$"> <action application="bridge" data="sofia/gateway/voipbuster/$1@voipbuster.com"/> </condition> </extension>
Something is still not correct: Get always busy tone when I dial 003134464135x (?) No Route !!
2008-07-01 17:47:21 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting
What am I doing wrong ?
Thanks Henk
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
On Tuesday 01 July 2008 17:52:59 Anthony Minessale wrote:
try taking out the @voipbuster.com
all you need is sofia/gateway/voipbuster/$1
I changed it to: <!-- Dial though Voipbuster gateway --> <extension name="voipbuster"> <condition field="destination_number" expression="^(0031\d*})$"> <action application="bridge" data="sofia/gateway/voipbuster/$1"/> </condition> </extension> but I'm still not successfull when dialing from internal extension 1000 to 003134464135x (but I don't get the error NO ROUTE anymore ) freeswitch@ubuntu> sofia status API CALL [sofia(status)] output: Name Type Data State ================================================================================================= internal profile sip:mod_sofia@192.168.1.101:5060 RUNNING (0) external profile sip:mod_sofia@78.21.64.194:5080 RUNNING (0) voipbuster gateway sip:henkoegema@voipbuster.com REGED nat profile sip:mod_sofia@78.21.64.194:5070 RUNNING (0) default alias internal ALIASED 192.168.1.101 alias internal ALIASED outbound alias external ALIASED ================================================================================================= 3 profiles 3 aliases freeswitch@ubuntu> 2008-07-01 19:25:54 [NOTICE] switch_channel.c:533 switch_channel_set_name() New Channel sofia/internal/1000@192.168.1.101 [c2a2a05a-4792-11dd-88b8-7557dafe7bf1] 2008-07-01 19:25:54 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing 1000->0031344641353@default 2008-07-01 19:25:54 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/1000@192.168.1.101 [CS_EXECUTE] [NORMAL_CLEARING] 2008-07-01 19:25:54 [NOTICE] switch_core_session.c:753 switch_core_session_thread() Session 7 (sofia/internal/1000@192.168.1.101) Ended 2008-07-01 19:25:54 [NOTICE] switch_core_session.c:755 switch_core_session_thread() Close Channel sofia/internal/1000@192.168.1.101 [CS_HANGUP]
On Tuesday 01 July 2008 19:42:13 Brian West wrote:
Which profile is your outbound registration going out on?
How do I check that ? (sorry Brian, but I'm an absolute beginner)
/b
On Jul 1, 2008, at 12:31 PM, Henk Oegema wrote:
2008-07-01 19:25:54 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing 1000->0031344641353@default
Brian West sip:brian@freeswitch.org
Where did you put your gateway xml for voipbuster? Also press F8 and see what it says or "console loglevel 8" /b On Jul 1, 2008, at 1:00 PM, Henk Oegema wrote:
On Tuesday 01 July 2008 19:42:13 Brian West wrote:
Which profile is your outbound registration going out on?
How do I check that ?
(sorry Brian, but I'm an absolute beginner)
/b
On Jul 1, 2008, at 12:31 PM, Henk Oegema wrote:
2008-07-01 19:25:54 [INFO] mod_dialplan_xml.c:222 dialplan_hunt()
Processing 1000->0031344641353@default
Brian West
sip:brian@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
Brian West sip:brian@freeswitch.org
On Tuesday 01 July 2008 20:17:43 Brian West wrote:
Where did you put your gateway xml for voipbuster?
in /usr/local/freeswitch/conf/sip_profiles/external/ File: voipbuster.xml ------------------------- <include> <gateway name="voipbuster"> <param name="username" value="henkoegema"/> <param name="realm" value="voipbuster.com"/> <param name="from-user" value="0032169801xx"/> <param name="password" value="xxxx"/> <param name="extension" value="1000"/> </gateway> </include>
Also press F8 and see what it says or "console loglevel 8"
When I press F8, I see: freeswitch@ubuntu> API CALL [console(loglevel 7)] output: +OK console log level set to DEBUG freeswitch@ubuntu>
On Tue, Jul 1, 2008 at 3:37 PM, Henk Oegema <pabx_freeswitch@telenet.be> wrote:
[..snip..] When I press F8, I see:
freeswitch@ubuntu> API CALL [console(loglevel 7)] output: +OK console log level set to DEBUG
freeswitch@ubuntu>
I'm pretty sure Brian meant "Press F8, try to dial again and see what it says" :-) - Gonzalo
On Tuesday 01 July 2008 20:45:57 Brian West wrote:
Now make the call after this and see what it says.
freeswitch@ubuntu> 2008-07-01 21:05:04 [NOTICE] switch_channel.c:533 switch_channel_set_name() New Channel sofia/internal/1000@192.168.1.101 [9cc92562-47a0-11dd-88b8-7557dafe7bf1] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/1000@192.168.1.101 Running State Change CS_NEW 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:369 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State NEW 2008-07-01 21:05:04 [DEBUG] sofia.c:3135 sofia_handle_sip_i_invite() Setting NAT mode based on rfc1918 2008-07-01 21:05:04 [DEBUG] sofia.c:1691 sofia_handle_sip_i_state() Channel sofia/internal/1000@192.168.1.101 entering state [received] 2008-07-01 21:05:04 [DEBUG] sofia.c:1695 sofia_handle_sip_i_state() Remote SDP: v=0 o=- 16226010 16226010 IN IP4 192.168.1.104 s=- c=IN IP4 192.168.1.104 t=0 0 m=audio 16476 RTP/AVP 8 0 2 4 18 96 97 98 100 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:2 G726-32/8000 a=rtpmap:4 G723/8000 a=rtpmap:18 G729a/8000 a=rtpmap:96 G726-40/8000 a=rtpmap:97 G726-24/8000 a=rtpmap:98 G726-16/8000 a=rtpmap:100 NSE/8000 a=fmtp:100 192-193 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:30 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:2098 sofia_glue_negotiate_sdp() Audio Codec Compare [PCMA:8:8000]/[G722:9:8000] 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:2098 sofia_glue_negotiate_sdp() Audio Codec Compare [PCMA:8:8000]/[PCMU:0:8000] 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:2098 sofia_glue_negotiate_sdp() Audio Codec Compare [PCMA:8:8000]/[PCMA:8:8000] 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:2098 sofia_glue_negotiate_sdp() Audio Codec Compare [PCMA:8:8000]/[GSM:3:8000] 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:2137 sofia_glue_negotiate_sdp() Substituting codec PCMA@30i@8000h 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:1392 sofia_glue_tech_set_codec() Set Codec sofia/internal/1000@192.168.1.101 PCMA/8000 30 ms 240 samples 2008-07-01 21:05:04 [DEBUG] sofia_glue.c:2061 sofia_glue_negotiate_sdp() Set 2833 dtmf payload to 101 2008-07-01 21:05:04 [DEBUG] sofia.c:1832 sofia_handle_sip_i_state() sofia/internal/1000@192.168.1.101 State Change CS_NEW -> CS_INIT 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:676 switch_core_session_signal_state_change() Kill sofia/internal/1000@192.168.1.101 [BREAK] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/1000@192.168.1.101 Running State Change CS_INIT 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:415 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State INIT 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:80 sofia_on_init() sofia/internal/1000@192.168.1.101 SOFIA INIT 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:107 sofia_on_init() sofia/internal/1000@192.168.1.101 State Change CS_INIT -> CS_ROUTING 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:676 switch_core_session_signal_state_change() Kill sofia/internal/1000@192.168.1.101 [BREAK] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:415 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State INIT going to sleep 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/1000@192.168.1.101 Running State Change CS_ROUTING 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State ROUTING 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:119 sofia_on_routing() sofia/internal/1000@192.168.1.101 SOFIA ROUTING 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() Standard ROUTING sofia/internal/1000@192.168.1.101 2008-07-01 21:05:04 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing 1000->0031344641353@default 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(0031\d*})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${unroll_loops}(true) =~ /^true$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${sip_looped_call}() =~ /^true$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${strftime(%H%M)}(2105) =~ /^((09|1[0-7])[0-5][0-9]|1800)$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^886$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^\*\*(\d+)$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^870$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${network_addr}(192.168.1.104) =~ /^$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${numbering_plan}() =~ /^$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${call_debug}(false) =~ /^true$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions ${sip_has_crypto}() =~ /^(AES_CM_128_HMAC_SHA1_32| AES_CM_128_HMAC_SHA1_80)$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^88(.*)$|^\*0(.*)$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^779$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^\*69$|^869$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^80(\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^81(\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^82(\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^83(\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^8(10[01][0-9])$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(10[01][0-9])$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^sip:(.*)$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(30\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(31\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(32\d{2})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9(888|1616)$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /5000/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^pagegroup$|^7243/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^5900$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^5901$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions source(mod_sofia) =~ /mod_sofia/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /park\+(\d+)/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions source(mod_sofia) =~ /mod_sofia/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^parking$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9993$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9994$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9995$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9996$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9997$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9998$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^9999$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(.*)$/ 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:97 switch_core_standard_on_routing() sofia/internal/1000@192.168.1.101 State Change CS_ROUTING -> CS_EXECUTE 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:676 switch_core_session_signal_state_change() Kill sofia/internal/1000@192.168.1.101 [BREAK] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State ROUTING going to sleep 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/1000@192.168.1.101 Running State Change CS_EXECUTE 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:430 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State EXECUTE 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/internal/1000@192.168.1.101 SOFIA EXECUTE 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:129 switch_core_standard_on_execute() Standard EXECUTE 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute set(use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}) 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:989 switch_core_session_execute_application() sofia/internal/1000@192.168.1.101 Expanded String set(use_profile=nat) 2008-07-01 21:05:04 [DEBUG] mod_dptools.c:715 set_function() SET [use_profile]=[nat] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute set_user(default@${domain}) 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:989 switch_core_session_execute_application() sofia/internal/1000@192.168.1.101 Expanded String set_user(default@192.168.1.101) 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute db(insert/spymap/${caller_id_number}/${uuid}) 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:989 switch_core_session_execute_application() sofia/internal/1000@192.168.1.101 Expanded String db(insert/spymap/1000/9cc92562-47a0-11dd-88b8-7557dafe7bf1) 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute db(insert/last_dial/${caller_id_number}/${destination_number}) 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:989 switch_core_session_execute_application() sofia/internal/1000@192.168.1.101 Expanded String db(insert/last_dial/1000/0031344641353) 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute db(insert/last_dial/global/${uuid}) 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:989 switch_core_session_execute_application() sofia/internal/1000@192.168.1.101 Expanded String db(insert/last_dial/global/9cc92562-47a0-11dd-88b8-7557dafe7bf1) 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute transfer(0031344641353 enum) 2008-07-01 21:05:04 [DEBUG] switch_ivr.c:1041 switch_ivr_session_transfer() sofia/internal/1000@192.168.1.101 State Change CS_EXECUTE -> CS_ROUTING 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:676 switch_core_session_signal_state_change() Kill sofia/internal/1000@192.168.1.101 [BREAK] 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:386 switch_core_session_receive_message() Kill sofia/internal/1000@192.168.1.101 [BREAK] 2008-07-01 21:05:04 [NOTICE] switch_ivr.c:1047 switch_ivr_session_transfer() Transfer sofia/internal/1000@192.168.1.101 to enum[0031344641353@default] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:430 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State EXECUTE going to sleep 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/1000@192.168.1.101 Running State Change CS_ROUTING 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State ROUTING 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:119 sofia_on_routing() sofia/internal/1000@192.168.1.101 SOFIA ROUTING 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() Standard ROUTING sofia/internal/1000@192.168.1.101 2008-07-01 21:05:04 [DEBUG] mod_enum.c:580 enum_dialplan_hunt() ENUM Lookup on 0031344641353 2008-07-01 21:05:04 [DEBUG] mod_enum.c:206 dnserror() unable to lookup NAPTR record for 3.5.3.1.4.6.4.4.3.1.3.0.0.e164.org: valid domain but no data of requested type 2008-07-01 21:05:04 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting 2008-07-01 21:05:04 [NOTICE] switch_core_state_machine.c:115 switch_core_standard_on_routing() Hangup sofia/internal/1000@192.168.1.101 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-07-01 21:05:04 [DEBUG] switch_channel.c:1360 switch_channel_perform_hangup() Kill sofia/internal/1000@192.168.1.101 [KILL] 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:676 switch_core_session_signal_state_change() Kill sofia/internal/1000@192.168.1.101 [BREAK] 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State ROUTING going to sleep 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/1000@192.168.1.101 Running State Change CS_HANGUP 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:393 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State HANGUP 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel sofia/internal/1000@192.168.1.101 hanging up, cause: NO_ROUTE_DESTINATION 2008-07-01 21:05:04 [DEBUG] mod_sofia.c:303 sofia_on_hangup() Responding to INVITE with: 404 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:46 switch_core_standard_on_hangup() Standard HANGUP sofia/internal/1000@192.168.1.101, cause: NO_ROUTE_DESTINATION 2008-07-01 21:05:04 [DEBUG] switch_core_state_machine.c:393 switch_core_session_run() (sofia/internal/1000@192.168.1.101) State HANGUP going to sleep 2008-07-01 21:05:04 [DEBUG] switch_core_session.c:735 switch_core_session_thread() Session 10 (sofia/internal/1000@192.168.1.101) Locked, Waiting on external entities 2008-07-01 21:05:04 [NOTICE] switch_core_session.c:753 switch_core_session_thread() Session 10 (sofia/internal/1000@192.168.1.101) Ended 2008-07-01 21:05:04 [NOTICE] switch_core_session.c:755 switch_core_session_thread() Close Channel sofia/internal/1000@192.168.1.101 [CS_HANGUP] 2008-07-01 21:05:04 [DEBUG] sofia.c:190 sofia_event_callback() event [nua_i_state] status [404][Not Found] session: n/a 2008-07-01 21:05:07 [DEBUG] sofia.c:190 sofia_event_callback() event [nua_r_options] status [486][Busy Here] session: n/a
Your regular expression is wrong for your bridge action. Or you put it in the wrong place. So it gives up and send it to enum and has no way to route the call. /b On Jul 1, 2008, at 2:07 PM, Henk Oegema wrote:
switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 Execute transfer(0031344641353 enum)
Brian West sip:brian@freeswitch.org
I'd guess that the spare } in here is probaly responsible: 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(0031\d**}*)$/ -Dave
Your regular expression is wrong for your bridge action. Or you put it in the wrong place. So it gives up and send it to enum and has no way to route the call.
/b
On Jul 1, 2008, at 2:07 PM, Henk Oegema wrote:
switch_core_standard_on_execute() sofia/internal/1000@192.168.1.101 <mailto:sofia/internal/1000@192.168.1.101> Execute transfer(0031344641353 enum)
Brian West sip:brian@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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
On Tue, Jul 1, 2008 at 4:07 PM, Henk Oegema <pabx_freeswitch@telenet.be> wrote:
[..snip..] 2008-07-01 21:05:04 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing 1000->0031344641353@default 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(0031344641353) =~ /^(0031\d*})$/ 2008-07-01 21:05:04 [DEBUG] mod_dialplan_xml.c:109 parse_exten() Regex mismatch
Regex problem. You've got: <condition field="destination_number" expression="^(0031\d*})$"> You probably want: <condition field="destination_number" expression="^(0031\d+)$"> I changed the '*' to a '+' as you probably want at least one digit after the 0031 to match, but that's up to you. The problem was with the '}' just before the closing parentheses. - Gonzalo
On Tuesday 01 July 2008 21:20:46 Gonzalo Servat wrote:
On Tue, Jul 1, 2008 at 4:07 PM, Henk Oegema <pabx_freeswitch@telenet.be>
Regex problem. You've got:
<condition field="destination_number" expression="^(0031\d*})$">
You probably want:
<condition field="destination_number" expression="^(0031\d+)$">
I changed the '*' to a '+' as you probably want at least one digit after the 0031 to match, but that's up to you. The problem was with the '}' just before the closing parentheses.
You are right Gonzola. Thanks very much for your attention. It's working now. :-) I really didn't see the Regex problem. Overlooked it hundred times. (XML is also completely new to me) Anyhow, it was a good learning experience for me. Never knew about the different F-keys either. Maybe I overlooked it in the documentation (?) I must also admit that it's a big learning curve to understand FS. But I like the challenge and really love playing around with it. (as a long time Asterisk user). The more a play with FS, the more I start appreciating it. (Also thanks Brian and Anthony) Rgds Henk sip:henk@oegema.com
participants (5)
-
Anthony Minessale
-
Brian West
-
David Knell
-
Gonzalo Servat
-
Henk Oegema