]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix eavesdrop so that *0 works as well as 88 as the access code
authorMichael S Collins <msc@freeswitch.org>
Wed, 28 Sep 2011 23:51:11 +0000 (16:51 -0700)
committerMichael S Collins <msc@freeswitch.org>
Wed, 28 Sep 2011 23:51:11 +0000 (16:51 -0700)
conf/dialplan/default.xml

index 020507912cce541b0d41ea2472ef6bd553fcb34e..6d46eb069ccf826ebdca1211c14054df1be37b1c 100644 (file)
     <extension name="eavesdrop">
       <condition field="destination_number" expression="^88(\d{4})$|^\*0(.*)$">
        <action application="answer"/>
-       <action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/>
+       <action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1$2)}"/>
       </condition>
     </extension>