Doh! That would explain it then.
I hate regexp :(

Thanks


On Tue, Jun 3, 2014 at 7:50 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
When you use | you need a separate ^$ around each entry.
So your regex says either anything that starts with a 1 OR anything with a 2 in it anywhere then followd by exactly 3 digits. 


On Tue, Jun 3, 2014 at 1:39 PM, Peter Villeneuve <petervnv1@gmail.com> wrote:
Thanks Anthony.

It seems that my dp is picking it up as a local extension even though it doesn't start with 1 or 2 nor is it 3 digits.
Weird, huh?

sofia/internal/1000@my.domain.com Regex (PASS) [Local_Extension] destination_number(#351213572318) =~ /^1|2(\d{3})$/ break=on-false
Dialplan: sofia/internal/1000@my.domain.com Action export(dialed_extension=318)


On Tue, Jun 3, 2014 at 7:25 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
console loglevel debug


On Tue, Jun 3, 2014 at 1:20 PM, Peter Villeneuve <petervnv1@gmail.com> wrote:
Hi,

Trying to process a simple call and it seems that mod_dptools is only recognizing the last 3 digits of the dialled number instead of the complete number (318 in this example).

Any clue what I'm doing wrong?

Thanks,
Peter


2014-06-03 18:15:27.933596 [INFO] mod_dialplan_xml.c:558 Processing <1000>->#123456782318 in context default
2014-06-03 18:15:27.933596 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *1 execute_extension::dx XML features
2014-06-03 18:15:27.933596 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *2 record_session::/usr/local/freeswitch/recordings/1000.2014-06-03-18-15-27.wav
2014-06-03 18:15:27.933596 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *3 execute_extension::cf XML features
2014-06-03 18:15:27.933596 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *4 execute_extension::att_xfer XML features
2014-06-03 18:15:27.933596 [WARNING] mod_dptools.c:3979 Can't find user [318@my.domain.com]
2014-06-03 18:15:27.933596 [NOTICE] switch_ivr_originate.c:2707 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]
2014-06-03 18:15:27.933596 [INFO] mod_dptools.c:3234 Originate Failed.  Cause: SUBSCRIBER_ABSENT





_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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




--
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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




--
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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