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-00000027]: 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-00000027]: 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 - centralino at unisi.it Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, http://www.faq.unisi.it -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161130/173a6cb7/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161130/173a6cb7/attachment.pgp>
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-00000027]: 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-00000027]: 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 -centralino at unisi.it > > Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo,http://www.faq.unisi.it > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161130/9de5a676/attachment.html>
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-00000027]: 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-00000027]: 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 .