<extension name="Local_Extension">
<condition expression="^(1\d{3})$" field="destination_number">
<action application="playback" data="voc/welcome.wav"/>
</condition>
</extension>
可以听到声音 日志
2017-10-10 11:14:49.768984 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001@192.168.1.60 [2d164be4-ad69-11e7-a5d8-393da222a120]
2017-10-10 11:14:49.788985 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->1001 in context public
2017-10-10 11:14:49.788985 [NOTICE] switch_ivr.c:2172 Transfer sofia/internal/1001@192.168.1.60 to XML[1001@default]
2017-10-10 11:14:49.788985 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->1001 in context default
2017-10-10 11:14:49.808985 [INFO] switch_core_session.c:2649 Sending early media
2017-10-10 11:14:49.808985 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/1001@192.168.1.60!
2017-10-10 11:14:56.828991 [NOTICE] switch_core_state_machine.c:385 sofia/internal/1001@192.168.1.60 has executed the last dialplan instruction, hanging up.
2017-10-10 11:14:56.828991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/internal/1001@192.168.1.60 [CS_EXECUTE] [NORMAL_CLEARING]
2017-10-10 11:14:56.828991 [NOTICE] switch_core_session.c:1683 Session 32 (sofia/internal/1001@192.168.1.60) Ended
2017-10-10 11:14:56.828991 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/1001@192.168.1.60 [CS_DESTROY]2017-10-10 11:14:49.768984 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001@192.168.1.60 [2d164be4-ad69-11e7-a5d8-393da222a120]
2017-10-10 11:14:49.788985 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->1001 in context public
2017-10-10 11:14:49.788985 [NOTICE] switch_ivr.c:2172 Transfer sofia/internal/1001@192.168.1.60 to XML[1001@default]
2017-10-10 11:14:49.788985 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->1001 in context default
2017-10-10 11:14:49.808985 [INFO] switch_core_session.c:2649 Sending early media
2017-10-10 11:14:49.808985 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/1001@192.168.1.60!
2017-10-10 11:14:56.828991 [NOTICE] switch_core_state_machine.c:385 sofia/internal/1001@192.168.1.60 has executed the last dialplan instruction, hanging up.
2017-10-10 11:14:56.828991 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/internal/1001@192.168.1.60 [CS_EXECUTE] [NORMAL_CLEARING]
2017-10-10 11:14:56.828991 [NOTICE] switch_core_session.c:1683 Session 32 (sofia/internal/1001@192.168.1.60) Ended
2017-10-10 11:14:56.828991 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/1001@192.168.1.60 [CS_DESTROY]
————————————————————
<extension name="test">
<condition field="destination_number" expression="^300$">
<action application="playback" data="voc/welcome.wav"/>
</condition>
</extension>
听不到声音 日志
2017-10-10 11:15:50.428985 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001@192.168.1.60 [513ec226-ad69-11e7-a5e5-393da222a120]
2017-10-10 11:15:50.448985 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->300 in context public
2017-10-10 11:15:50.448985 [NOTICE] switch_core_state_machine.c:385 sofia/internal/1001@192.168.1.60 has executed the last dialplan instruction, hanging up.
2017-10-10 11:15:50.448985 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/internal/1001@192.168.1.60 [CS_EXECUTE] [NORMAL_CLEARING]
2017-10-10 11:15:50.468996 [NOTICE] switch_core_session.c:1683 Session 33 (sofia/internal/1001@192.168.1.60) Ended
2017-10-10 11:15:50.468996 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/1001@192.168.1.60 [CS_DESTROY]
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}