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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Brian West
Sent: Friday, July 11, 2008 12:04 PM
To: [email protected]
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->[EMAIL PROTECTED] 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/[EMAIL PROTECTED] :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/[EMAIL PROTECTED] :5090) Ended 2008-07-11 11:53:53 [NOTICE] switch_core_session.c:755 switch_core_session_thread() Close Channel sofia/doublenat/[EMAIL PROTECTED] :5090 [CS_HANGUP]

Brian West
sip:[EMAIL PROTECTED]



_______________________________________________
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

Reply via email to