Summary:ASTERISK-03018: "." pattern character only matches first digit with PhoneJACK
Reporter:irjustman (irjustman)Labels:
Date Opened:2004-12-16 21:48:11.000-0600Date Closed:2011-06-07 14:04:59
Versions:Frequency of
Description:When I dial an extension which has has a "." as a pattern matching character, it only takes the first digit dialed when the "." in the template is reached.  Fixed-length extensions work fine.  See example below from my extensions.conf for more details.


From my extensions.conf file for FWD:

exten => _393.,2,Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:3},60,r)

I dial the 393 prefix to use the FWD dial profile; the next digit is part of the "." pattern.  Only the first digit is taken; the call is placed immediately before I have a chance to dial anymore digits.
Comments:By: Clod Patry (junky) 2004-12-16 22:05:59.000-0600

I did it with my IP500: i've tried to dial 39312345 and my dial occured like that:
*CLI>     -- Executing Dial("SIP/101-29a8", "IAX2/456880:SECRET@iax2.fwdnet.net/12345|60|r") in new stack

The only thing i had changed is the priority 2 to priority 1 and i'm not using variable for my number and password.

Could it be pattern on your phone?
try to change extension 393, to like 39, and see past the CLI's output here please.

By: irjustman (irjustman) 2004-12-16 22:16:38.000-0600

I'm not using an IP phone.  I'm using a normal phone connected to a Quicknet PhoneJACK.  I'm specifically talking about an FXS card.  The phone is defined in /etc/asterisk/phone.conf.  I have a softphone which works fine.  And in this case, I'm using IAX rather than SIP.

After changing the prefix per your suggestion, I get the following when I attempt to dial the 612 number for the time (39 to go to FWD, then 612):

*CLI>     -- Executing Dial("Phone/phone0", "IAX2/533088:(secret)@iax2.fwdnet.net/|60|r") in new stack
   -- Called 533088:(secret)@iax2.fwdnet.net/
Dec 16 20:10:01 WARNING[14622]: chan_iax2.c:5510 socket_read: Call rejected by No such context/extension
   -- Hungup 'IAX2/'
 == No one is available to answer at this time
Dec 16 20:10:01 NOTICE[14628]: channel.c:1691 ast_set_write_format: Unable to find a path from unknown to slin
   -- Executing Congestion("Phone/phone0", "") in new stack
 == Spawn extension (phone, 396, 2) exited non-zero on 'Phone/phone0'
   -- Hungup 'Phone/phone0'

By: Clod Patry (junky) 2004-12-16 22:28:13.000-0600

Here's my CLI's output:
    -- Executing Dial("SIP/101-7b69", "IAX2/456880:SECRET@iax2.fwdnet.net/12|60|r")
and my extensions.conf:
exten => _39.,1,Dial(IAX2/456880:SECRET@iax2.fwdnet.net/${EXTEN:3},60,r)

which is correct.

I don't have FXS card at this time, i'll try to get one between x-mas and new year eve to make a couple of tests.

By: irjustman (irjustman) 2004-12-16 22:42:15.000-0600

Tried again with SIP, using the instructions I found on voip-info.org which uses a 7 as the prefix.  I get the following:

*CLI>     -- Executing SetCIDNum("Phone/phone0", "533088") in new stack
   -- Executing SetCIDName("Phone/phone0", ""I(removed)"") in new stack
   -- Executing Dial("Phone/phone0", "SIP/6@fwd.pulver.com") in new stack
   -- Called 6@fwd.pulver.com
   -- SIP/fwd.pulver.com-a57c answered Phone/phone0
 == Spawn extension (phone, 76, 3) exited non-zero on 'Phone/phone0'
   -- Hungup 'Phone/phone0'

By: Brian West (bkw918) 2004-12-16 23:58:35.000-0600