[Freeswitch-users] Dial Plan bridge did not return a correct variable from reqular expression

DJB INTERNATIONAL djbinter at gmail.com
Mon Jan 18 13:27:49 PST 2010


Does anyone experience this problem?

SVN:   16395

Dialplan:

   <extension name="tollfree">
     <condition field="${toll_allow}" expression="tollfree"/>
     <condition field="destination_number"
expression="^(\+1|1)?(8(00|88|77|66)[2-9]\d{6})$">
      <action application="set" data="bypass_media=true"/>
       <action application="bridge" data="sofia/external/1$
2 at tollfreetollfree.com"/>
     </condition>
   </extension>

Possible Error:
Dialplan: sofia/internal/2132345567 at 204.110.15.190 Regex (PASS) [tollfree]
destination_number(18005551212) =~ /^(\+1|1)?(8(00|88|77|66)[2-9]\d{6})$/
break=on-false
Dialplan: sofia/internal/2132345567 at 204.110.15.190 Action
set(bypass_media=true)
Dialplan: sofia/internal/2132345567 at 204.110.15.190 Action
bridge(sofia/external/1 at tollfreetollfree.com)   ******  (It should return $2
as 8005551212)


Thank you,
Dorn B. (djbinter)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100118/2337ea71/attachment-0002.html 


More information about the FreeSWITCH-users mailing list