I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file. <include> <extension name="14142211800"> <condition field="destination_number" expression=""^+14142211800$"> <action application="bridge" data="sofia/gateway/level3/+15618911806"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression=""^+(1{0,1}\d{10})$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/> </condition> </extension> </include>
hi chad, nothing could match "+" in the destination_number. -nandy On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel@lyonl.com> wrote:
I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file.
<include> <extension name="14142211800"> <condition field="destination_number" expression=""^+14142211800$"> <action application="bridge" data="sofia/gateway/level3/ +15618911806"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression=""^+(1{0,1}\d{10 })$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav "/> </condition> </extension> </include>
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
level 3 is sending us + on every incoming DID, how would i write the correct expression? On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote: hi chad, nothing could match "+" in the destination_number. -nandy On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel@lyonl.com<mailto:cvogel@lyonl.com>> wrote: I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file. <include> <extension name="14142211800"> <condition field="destination_number" expression=""^+14142211800$"> <action application="bridge" data="sofia/gateway/level3/+15618911806<tel:%2B15618911806>"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression=""^+(1{0,1}\d{10})$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/> </condition> </extension> </include> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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
+ is a regex operator (see a basic intro at http://wiki.freeswitch.org/wiki/Regular_Expression) If you want to use a literal +, you need to escape it, e.g \+ -Avi On Mon, Sep 19, 2011 at 8:35 AM, Chad Vogel <cvogel@lyonl.com> wrote:
level 3 is sending us + on every incoming DID, how would i write the correct expression?
On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote:
hi chad,
nothing could match "+" in the destination_number.
-nandy
On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel@lyonl.com> wrote:
I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file.
<include> <extension name="14142211800"> <condition field="destination_number" expression=""^+14142211800$"> <action application="bridge" data="sofia/gateway/level3/ +15618911806"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression=""^+(1{0,1}\d{10 })$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav "/> </condition> </extension> </include>
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
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
it seems to almost work, but call forwarding doesnt work, I get this error: "[INFO] mod_dptools.c:2801 Originate Failed. Cause: ORIGINATOR_CANCEL" <include> <extension name="4142211800"> <condition field="destination_number" expression="^(\+?1)?(4142211800)$"> <action application="bridge" data="sofia/gateway/level3/+15618911806"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression="^(\+?1)?(\d{10})$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/> </condition> </extension> </include> Our gateway config (i did replace the username's and passwords): <gateway name="level3"> <param name="username" value="username"/> <param name="password" value="password"/> <param name="proxy" value="4.55.35.60:5070"/> <param name="expire-seconds" value="3600"/> <param name="register-transport" value="udp"/> <param name="register" value="false"/> <param name="dtmf-type" value="rfc2833"/> </gateway>> </include> On Sep 19, 2011, at 12:46 AM, Avi Marcus wrote: + is a regex operator (see a basic intro at http://wiki.freeswitch.org/wiki/Regular_Expression) If you want to use a literal +, you need to escape it, e.g \+ -Avi On Mon, Sep 19, 2011 at 8:35 AM, Chad Vogel <cvogel@lyonl.com<mailto:cvogel@lyonl.com>> wrote: level 3 is sending us + on every incoming DID, how would i write the correct expression? On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote: hi chad, nothing could match "+" in the destination_number. -nandy On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel@lyonl.com<mailto:cvogel@lyonl.com>> wrote: I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file. <include> <extension name="14142211800<tel:14142211800>"> <condition field="destination_number" expression=""^+14142211800<tel:14142211800>$"> <action application="bridge" data="sofia/gateway/level3/+15618911806<tel:%2B15618911806>"/> </condition> </extension> <extension name="13127567001<tel:13127567001>"> <condition field="destination_number" expression=""^+(1{0,1}\d{10})$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/> </condition> </extension> </include> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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
That means the person calling hung up. If you don't think that's the case, can you pastebin a full call log on /log 7 from the fs_cli? -Avi On Mon, Sep 19, 2011 at 9:40 AM, Chad Vogel <cvogel@lyonl.com> wrote:
it seems to almost work, but call forwarding doesnt work, I get this error: "[INFO] mod_dptools.c:2801 Originate Failed. Cause: ORIGINATOR_CANCEL"
<include> <extension name="4142211800"> <condition field="destination_number" expression="^(\+?1)? (4142211800)$"> <action application="bridge" data="sofia/gateway/level3/ +15618911806"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression="^(\+?1)?(\d{10})$ "> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav "/> </condition> </extension> </include>
Our gateway config (i did replace the username's and passwords):
<gateway name="level3"> <param name="username" value="username"/> <param name="password" value="password"/> <param name="proxy" value="4.55.35.60:5070"/> <param name="expire-seconds" value="3600"/> <param name="register-transport" value="udp"/> <param name="register" value="false"/> <param name="dtmf-type" value="rfc2833"/> </gateway>> </include>
On Sep 19, 2011, at 12:46 AM, Avi Marcus wrote:
+ is a regex operator (see a basic intro at http://wiki.freeswitch.org/wiki/Regular_Expression) If you want to use a literal +, you need to escape it, e.g \+ -Avi
On Mon, Sep 19, 2011 at 8:35 AM, Chad Vogel <cvogel@lyonl.com> wrote:
level 3 is sending us + on every incoming DID, how would i write the correct expression?
On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote:
hi chad,
nothing could match "+" in the destination_number.
-nandy
On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel@lyonl.com> wrote:
I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file.
<include> <extension name="14142211800"> <condition field="destination_number" expression=""^+14142211800$"
<action application="bridge" data="sofia/gateway/level3/ +15618911806"/> </condition> </extension> <extension name="13127567001"> <condition field="destination_number" expression=""^+(1{0,1}\d{10 })$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav "/> </condition> </extension> </include>
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
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
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
here is a copy of our logs, i'm seeing "Regex (FAIL)" do i need an except char in the string "sofia/gateway/level3/+15618911806<tel:%2B15618911806>", also how can i tell if fs is sending the remote gateway our authentication info because i can see we are receiving 487 error from level3 and my understanding this happens when we dont pass our username and password. 2011-09-19 14:54:20.601492 [NOTICE] switch_channel.c:908 Ne w Channel sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> [4e94849a-35b6-4e8f-8fd4-84ac03 e3da7c] 2011-09-19 14:54:20.601492 [DEBUG] sofia.c:5156 Channel sofia/external/+15618911 806@4.55.35.60<mailto:806@4.55.35.60> entering state [received][100] 2011-09-19 14:54:20.601492 [DEBUG] sofia.c:5167 Remote SDP: v=0 o=BroadWorks 4208062 1 IN IP4 4.55.35.60 s=- c=IN IP4 4.55.35.60 t=0 0 m=audio 49972 RTP/AVP 0 8 18 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=maxptime:20 2011-09-19 14:54:20.601492 [DEBUG] sofia_glue.c:4739 Audio Codec Compare [PCMU:0 :8000:20:64000]/[PCMU:0:8000:20:64000] 2011-09-19 14:54:20.601492 [DEBUG] sofia_glue.c:2857 Set Codec sofia/external/+1 5618911806@4.55.35.60<mailto:5618911806@4.55.35.60> PCMU/8000 20 ms 160 samples 64000 bits 2011-09-19 14:54:20.601492 [DEBUG] sofia_glue.c:4859 Set 2833 dtmf send/recv pay load to 101 2011-09-19 14:54:20.601492 [DEBUG] sofia.c:5357 (sofia/external/+15618911806@4.5 5.35.60) State Change CS_NEW -> CS_INIT 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) Running State Change CS_INIT 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:375 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State INIT 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:85 sofia/external/+15618911806@4. 55.35.60 SOFIA INIT 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:125 (sofia/external/+15618911806@ 4.55.35.60) State Change CS_INIT -> CS_ROUTING 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:375 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State INIT going to sleep 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) Running State Change CS_ROUTING 2011-09-19 14:54:20.601492 [DEBUG] switch_channel.c:1837 (sofia/external/+156189 11806@4.55.35.60<mailto:11806@4.55.35.60>) Callstate Change DOWN -> RINGING 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:384 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State ROUTING 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:148 sofia/external/+15618911806@4 .55.35.60 SOFIA ROUTING 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:78 sofia/external /+15618911806@4.55.35.60 Standard ROUTING 2011-09-19 14:54:20.601492 [INFO] mod_dialplan_xml.c:336 Processing +15618911806 <+15618911806>->+14142211800 in context public Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> parsing [public->unloop] contin ue=false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Regex (PASS) [unloop] ${unroll_ loops}(true) =~ /^true$/ break=on-false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Regex (FAIL) [unloop] ${sip_loo ped_call}() =~ /^true$/ break=on-false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> parsing [public->outside_call] continue=true Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Absolute Condition [outside_cal l] Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Action set(outside_call=true) Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Action set(RFC2822_DATE=${strft ime(%a, %d %b %Y %T %z)}) Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> parsing [public->call_debug] co ntinue=true Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Regex (FAIL) [call_debug] ${cal l_debug}(false) =~ /^true$/ break=never Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> parsing [public->public_extensi ons] continue=false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Regex (FAIL) [public_extensions ] destination_number(+14142211800) =~ /^(10[01][0-9])$/ break=on-false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> parsing [public->4142211800] co ntinue=false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Regex (PASS) [4142211800] desti nation_number(+14142211800) =~ /^(\+?1)?(4142211800)$/ break=on-false Dialplan: sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> Action bridge(sofia/gateway/lev el3/+15618911806) 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:128 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State Change CS_ROUTING -> CS_EXECUTE 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:384 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State ROUTING going to sleep 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) Running State Change CS_EXECUTE 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:391 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State EXECUTE 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:241 sofia/external/+15618911806@4 .55.35.60 SOFIA EXECUTE 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:166 sofia/externa l/+15618911806@4.55.35.60<mailto:l/+15618911806@4.55.35.60> Standard EXECUTE EXECUTE sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> set(outside_call=true) 2011-09-19 14:54:20.601492 [DEBUG] mod_dptools.c:1167 sofia/external/+1561891180 6@4.55.35.60<mailto:6@4.55.35.60> SET [outside_call]=[true] EXECUTE sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> set(RFC2822_DATE=Mon, 19 Sep 2011 14:54:20 Coordinated Universal Time) 2011-09-19 14:54:20.601492 [DEBUG] mod_dptools.c:1167 sofia/external/+1561891180 6@4.55.35.60<mailto:6@4.55.35.60> SET [RFC2822_DATE]=[Mon, 19 Sep 2011 14:54:20 Coordinated Universal Time] EXECUTE sofia/external/+15618911806@4.55.35.60<mailto:sofia/external/+15618911806@4.55.35.60> bridge(sofia/gateway/level3/+1561 8911806) 2011-09-19 14:54:20.601492 [DEBUG] switch_ivr_originate.c:1873 Parsing global va riables 2011-09-19 14:54:20.601492 [NOTICE] switch_channel.c:908 New Channel sofia/exter nal/+15618911806 [1278470d-f578-4200-9892-be93025bdd62] 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:4491 (sofia/external/+15618911806 ) State Change CS_NEW -> CS_INIT 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806 [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806) Running State Change CS_INIT 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:375 (sofia/extern al/+15618911806) State INIT 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:85 sofia/external/+15618911806 SO FIA INIT 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:870 Send signal sofia/e xternal/+15618911806 [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:125 (sofia/external/+15618911806) State Change CS_INIT -> CS_ROUTING 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806 [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:375 (sofia/extern al/+15618911806) State INIT going to sleep 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806) Running State Change CS_ROUTING 2011-09-19 14:54:20.601492 [DEBUG] switch_channel.c:1837 (sofia/external/+156189 11806) Callstate Change DOWN -> RINGING 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:384 (sofia/extern al/+15618911806) State ROUTING 2011-09-19 14:54:20.601492 [DEBUG] mod_sofia.c:148 sofia/external/+15618911806 S OFIA ROUTING 2011-09-19 14:54:20.601492 [DEBUG] switch_ivr_originate.c:66 (sofia/external/+15 618911806) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2011-09-19 14:54:20.601492 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806 [BREAK] 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:384 (sofia/extern al/+15618911806) State ROUTING going to sleep 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806) Running State Change CS_CONSUME_MEDIA 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:403 (sofia/extern al/+15618911806) State CONSUME_MEDIA 2011-09-19 14:54:20.601492 [DEBUG] switch_core_state_machine.c:403 (sofia/extern al/+15618911806) State CONSUME_MEDIA going to sleep 2011-09-19 14:54:20.601492 [DEBUG] sofia.c:5156 Channel sofia/external/+15618911 806 entering state [calling][0] 2011-09-19 14:54:23.187429 [DEBUG] switch_core_session.c:870 Send signal sofia/e xternal/+15618911806@4.55.35.60<mailto:xternal/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:23.187429 [DEBUG] switch_core_session.c:870 Send signal sofia/e xternal/+15618911806@4.55.35.60<mailto:xternal/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:23.187429 [DEBUG] switch_core_session.c:870 Send signal sofia/e xternal/+15618911806@4.55.35.60<mailto:xternal/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:23.207937 [DEBUG] sofia.c:5156 Channel sofia/external/+15618911 806@4.55.35.60<mailto:806@4.55.35.60> entering state [terminated][487] 2011-09-19 14:54:23.207937 [DEBUG] switch_channel.c:2797 (sofia/external/+156189 11806@4.55.35.60<mailto:11806@4.55.35.60>) Callstate Change RINGING -> HANGUP 2011-09-19 14:54:23.207937 [NOTICE] sofia.c:5881 Hangup sofia/external/+15618911 806@4.55.35.60<mailto:806@4.55.35.60> [CS_EXECUTE] [ORIGINATOR_CANCEL] 2011-09-19 14:54:23.207937 [DEBUG] switch_channel.c:2813 Send signal sofia/exter nal/+15618911806@4.55.35.60<mailto:nal/+15618911806@4.55.35.60> [KILL] 2011-09-19 14:54:23.207937 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:23.207937 [DEBUG] switch_channel.c:2797 (sofia/external/+156189 11806) Callstate Change RINGING -> HANGUP 2011-09-19 14:54:23.207937 [NOTICE] switch_ivr_originate.c:3156 Hangup sofia/ext ernal/+15618911806 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL] 2011-09-19 14:54:23.207937 [DEBUG] switch_channel.c:2813 Send signal sofia/exter nal/+15618911806 [KILL] 2011-09-19 14:54:23.207937 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806 [BREAK] 2011-09-19 14:54:23.207937 [DEBUG] switch_ivr_originate.c:3331 Originate Cancell ed by originator termination Cause: 487 [ORIGINATOR_CANCEL] 2011-09-19 14:54:23.207937 [INFO] mod_dptools.c:2801 Originate Failed. Cause: O RIGINATOR_CANCEL 2011-09-19 14:54:23.207937 [DEBUG] switch_core_session.c:2209 sofia/external/+15 618911806@4.55.35.60<mailto:618911806@4.55.35.60> skip receive message [APPLICATION_EXEC_COMPLETE] (channel i s hungup already) 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:391 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State EXECUTE going to sleep 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) Running State Change CS_HANGUP 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:576 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State HANGUP 2011-09-19 14:54:23.207937 [DEBUG] mod_sofia.c:452 sofia/external/+15618911806@4 .55.35.60 Overriding SIP cause 487 with 487 from the other leg 2011-09-19 14:54:23.207937 [DEBUG] mod_sofia.c:458 Channel sofia/external/+15618 911806@4.55.35.60<mailto:911806@4.55.35.60> hanging up, cause: ORIGINATOR_CANCEL 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:46 sofia/external /+15618911806@4.55.35.60 Standard HANGUP, cause: ORIGINATOR_CANCEL 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:576 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State HANGUP going to sleep 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:367 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State Change CS_HANGUP -> CS_REPORTING 2011-09-19 14:54:23.207937 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:336 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) Running State Change CS_REPORTING 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:636 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State REPORTING 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:53 sofia/external /+15618911806@4.55.35.60 Standard REPORTING, cause: ORIGINATOR_CANCEL 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:636 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State REPORTING going to sleep 2011-09-19 14:54:23.207937 [DEBUG] switch_core_state_machine.c:361 (sofia/extern al/+15618911806@4.55.35.60<mailto:al/+15618911806@4.55.35.60>) State Change CS_REPORTING -> CS_DESTROY 2011-09-19 14:54:23.207937 [DEBUG] switch_core_session.c:1175 Send signal sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60> [BREAK] 2011-09-19 14:54:23.207937 [DEBUG] switch_core_session.c:1349 Session 12 (sofia/ external/+15618911806@4.55.35.60<mailto:external/+15618911806@4.55.35.60>) Locked, Waiting on external entities 2011-09-19 14:54:23.207937 [NOTICE] switch_core_session.c:1367 Session 12 (sofia /external/+15618911806@4.55.35.60) Ended 2011-09-19 14:54:23.207937 [NOTICE] switch_core_session.c:1369 Close Channel sof ia/external/+15618911806@4.55.35.60<mailto:ia/external/+15618911806@4.55.35.60> [CS_DESTROY] On Sep 19, 2011, at 1:58 AM, Avi Marcus wrote: That means the person calling hung up. If you don't think that's the case, can you pastebin a full call log on /log 7 from the fs_cli? -Avi On Mon, Sep 19, 2011 at 9:40 AM, Chad Vogel <cvogel@lyonl.com<mailto:cvogel@lyonl.com>> wrote: it seems to almost work, but call forwarding doesnt work, I get this error: "[INFO] mod_dptools.c:2801 Originate Failed. Cause: ORIGINATOR_CANCEL" <include> <extension name="4142211800<tel:4142211800>"> <condition field="destination_number" expression="^(\+?1)?(4142211800<tel:%284142211800>)$"> <action application="bridge" data="sofia/gateway/level3/+15618911806<tel:%2B15618911806>"/> </condition> </extension> <extension name="13127567001<tel:13127567001>"> <condition field="destination_number" expression="^(\+?1)?(\d{10})$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/> </condition> </extension> </include> Our gateway config (i did replace the username's and passwords): <gateway name="level3"> <param name="username" value="username"/> <param name="password" value="password"/> <param name="proxy" value="4.55.35.60:5070<http://4.55.35.60:5070/>"/> <param name="expire-seconds" value="3600"/> <param name="register-transport" value="udp"/> <param name="register" value="false"/> <param name="dtmf-type" value="rfc2833"/> </gateway>> </include> On Sep 19, 2011, at 12:46 AM, Avi Marcus wrote: + is a regex operator (see a basic intro at http://wiki.freeswitch.org/wiki/Regular_Expression) If you want to use a literal +, you need to escape it, e.g \+ -Avi On Mon, Sep 19, 2011 at 8:35 AM, Chad Vogel <cvogel@lyonl.com<mailto:cvogel@lyonl.com>> wrote: level 3 is sending us + on every incoming DID, how would i write the correct expression? On Sep 19, 2011, at 12:05 AM, Nandy Dagondon wrote: hi chad, nothing could match "+" in the destination_number. -nandy On Mon, Sep 19, 2011 at 12:42 PM, Chad Vogel <cvogel@lyonl.com<mailto:cvogel@lyonl.com>> wrote: I'm trying to build a dialplan however it doesn't seem to work. on the first number I would like to forward and all other numbers i would like to play an an audio file. <include> <extension name="14142211800<tel:14142211800>"> <condition field="destination_number" expression=""^+14142211800<tel:14142211800>$"> <action application="bridge" data="sofia/gateway/level3/+15618911806<tel:%2B15618911806>"/> </condition> </extension> <extension name="13127567001<tel:13127567001>"> <condition field="destination_number" expression=""^+(1{0,1}\d{10})$"> <action application="answer"/> <action application="set" data="playback_terminators=#"/> <action application="playback" data="C:\Program Files\FreeSWITCH\sounds\music\48000\danza-espanola-op-37-h-142-xii-arabesca.wav"/> </condition> </extension> </include> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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<http://www.freeswitch.org/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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
participants (3)
-
Avi Marcus
-
Chad Vogel
-
Nandy Dagondon