Re: [asterisk-users] _FAX_. extension refuses to work !

2016-11-30 Thread A J Stiles
On Wednesday 30 Nov 2016, Michele Pinassi wrote:
>[stuff deleted]
> but on a call directed to, es. FAX_3700 i got:
> 
> [Nov 30 11:38:30] NOTICE[5462][C-0027]: chan_sip.c:26309
> handle_request_invite: Call from 'voip-trunk' (xxx:5060) to extension
> 'FAX_3700' rejected because extension not found in context 'from-voip'.
> [Nov 30 11:38:30] NOTICE[5462][C-0027]: chan_sip.c:26309
> handle_request_invite: Call from 'voip-trunk' (xxx:5060) to extension
> 'FAX_3700' rejected because extension not found in context 'from-voip'.
> 
> Other extension like _IVR_ or _VMR_ works perfeclty and are defined in
> the same manner.
> 
> Maybe _FAX was a reserved keyword ?

Almost.  The letter X is a reserved *character*; it gets translated internally 
to [0-9]. So your extension pattern
_FAX_.
actually matches the pattern
FA[0-9]_.
and something like "FAX_3700" is not going to match this pattern  (because 
there is now a letter X in the place where the extension pattern is expecting 
for there to be a digit 0-9).

Try a backslash before the X?

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] _FAX_. extension refuses to work !

2016-11-30 Thread Jean Aunis

Hello,

The letter "X" is reserved for dialplan patterns. You should escape it 
this way :


_FA[X]_

Best regards

Jean Aunis


Le 30/11/2016 à 11:45, Michele Pinassi a écrit :


Hi all,

my dialplan is:

/; 
==//

//; FROM VOIP//
//; 
==//

//
//[from-voip]//
//include => default//
//
//[default]
/

/; FAXes//
//exten => _FAX_.,1,Noop("from-voip: FAX ${CALLERID(num)} ${EXTEN}")//
//exten => _FAX_.,n,Set(DID=${EXTEN:4})//
//exten => _FAX_.,n,Goto(fax-services,s,1)/

but on a call directed to, es. FAX_3700 i got:

[Nov 30 11:38:30] NOTICE[5462][C-0027]: chan_sip.c:26309 
handle_request_invite: Call from 'voip-trunk' (xxx:5060) to extension 
'FAX_3700' rejected because extension not found in context 'from-voip'.
[Nov 30 11:38:30] NOTICE[5462][C-0027]: chan_sip.c:26309 
handle_request_invite: Call from 'voip-trunk' (xxx:5060) to extension 
'FAX_3700' rejected because extension not found in context 'from-voip'.


Other extension like _IVR_ or _VMR_ works perfeclty and are defined in 
the same manner.


Maybe _FAX was a reserved keyword ?

Michele

--
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)5000 -central...@unisi.it

Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo,http://www.faq.unisi.it  





-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] _FAX_. extension refuses to work !

2016-11-30 Thread Michele Pinassi
Hi all,

my dialplan is:

/;
==//
//; FROM VOIP//
//;
==//
//
//[from-voip]//
//include => default//
//
//[default]
/

/; FAXes//
//exten => _FAX_.,1,Noop("from-voip: FAX ${CALLERID(num)} ${EXTEN}")//
//exten => _FAX_.,n,Set(DID=${EXTEN:4})//
//exten => _FAX_.,n,Goto(fax-services,s,1)/

but on a call directed to, es. FAX_3700 i got:

[Nov 30 11:38:30] NOTICE[5462][C-0027]: chan_sip.c:26309
handle_request_invite: Call from 'voip-trunk' (xxx:5060) to extension
'FAX_3700' rejected because extension not found in context 'from-voip'.
[Nov 30 11:38:30] NOTICE[5462][C-0027]: chan_sip.c:26309
handle_request_invite: Call from 'voip-trunk' (xxx:5060) to extension
'FAX_3700' rejected because extension not found in context 'from-voip'.

Other extension like _IVR_ or _VMR_ works perfeclty and are defined in
the same manner.

Maybe _FAX was a reserved keyword ?

Michele

-- 
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)5000 - central...@unisi.it

Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di 
Ateneo, http://www.faq.unisi.it 



signature.asc
Description: OpenPGP digital signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users