That'll match: 10 followed by either 0 or 1 followed by a single further digit. - i.e. 1000 to 1019. To match any number passed, just use (.*) --Dave
Thank you and I am sure I am missing the point.
It seems to me that if I use ="^(12508606894) I'll be able to call this number only, is that right ? And, I want to call any number.
In the public.xml there is <condition field="destination_number" expression="^(10[01][0-9])$"> Why is this not enough to match any number passed ?
Jair Santos
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org ] On Behalf Of Brian West Sent: Friday, July 11, 2008 12:04 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Invalid profile
you're hitting the public profile.. so you're hitting 12508606894 in dialplan/public.xml and there is no route for that number in there.. add a route similar to this but make it actually bridge to say a user.
<extension name="public_did"> <condition field="destination_number" expression="^(12508606894)$"> <!-- do something with it --> </condition> </extension>
/b
On Jul 11, 2008, at 1:58 PM, Jair Santos wrote:
2008-07-11 11:53:53 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing FreeSwitch->12508606894@public 2008-07-11 11:53:53 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting 2008-07-11 11:53:53 [NOTICE] switch_core_state_machine.c:115 switch_core_standard_on_routing() Hangup sofia/doublenat/1001@24.67.78.200 :5090 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-07-11 11:53:53 [NOTICE] switch_core_session.c:753 switch_core_session_thread() Session 18 (sofia/doublenat/1001@24.67.78.200 :5090) Ended 2008-07-11 11:53:53 [NOTICE] switch_core_session.c:755 switch_core_session_thread() Close Channel sofia/doublenat/1001@24.67.78.200 :5090 [CS_HANGUP]
Brian West sip:brian@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