Daqiang:
How do you make your IP phone not dial right after you press "#"? Usually the IP phone will dial the number already once you pushed "#" On Sun, Oct 11, 2009 at 10:45 AM, daqiang wang <[email protected]> wrote: > it's work . Thank you very much . > > 2009/10/11 Michael Collins <[email protected]> > >> Some characters need a backslash to match in a regular expression. >> However, # is not one of them. I think your regex is wrong: >> <condition field="destination_number" expression="^1#(d+)#(d+)$"/> >> >> It should probably be: >> <condition field="destination_number" expression="^1#(\d+)#(\d+)$"/> >> >> Note the backslashes in front of the d+ entries. \d means "match a digit" >> whereas a bare d means "make a lowercase d character". >> >> Hope that helps. >> -MC >> >> P.S. - The * character does need to be escaped in regexes. See the >> default.xml dialplan file for some obvious examples. >> >> >> On Sat, Oct 10, 2009 at 6:24 AM, Milena <[email protected]> wrote: >> >>> escape character is '\'try >>> <condition field="destination_number" expression="^1\#(d+)\#(d+)$"/> >>> 2009/10/10 daqiang wang <[email protected]> >>> >>>> hello every one : >>>> I want to match the # in XML dialplan , how to do ? >>>> example : >>>> 1#5555#6666 . how to do ? >>>> I do this : >>>> <condition field="destination_number" expression="^1#(d+)#(d+)$"/> >>>> but it's not work >>>> >>>> _______________________________________________ >>>> FreeSWITCH-users mailing list >>>> [email protected] >>>> 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 >>> [email protected] >>> 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 >> [email protected] >> 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 > [email protected] > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > -- Henry Huang UniC Solution - Communication Unified VoIP & Open Source software Consultant
_______________________________________________ FreeSWITCH-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
