how to work with regexten

General discussions about Asterisk.

Moderators: Moderator, Support

how to work with regexten

Postby przeqpiciel » Thu Oct 29, 2015 1:33 am

hi,

i'm wondering how to work with regexten. im trying to make new dialplan for devices wich is registering now. but i didnt see any dialpaln execution in CLI. any suggestion ?

my config files

sip.conf:
[general]
regcontext = system

[devicexxx]
regexten = telefon

extensions.conf
[system]
exten => telefon,1,Noop(telefon sie zarejestrowal)
same => n,Set(ODBC_REJESTRACJA()=1)
przeqpiciel
Newsterisk
 
Posts: 4
Joined: Wed Mar 13, 2013 2:11 am

Re: how to work with regexten

Postby david55 » Thu Oct 29, 2015 5:11 am

Provide the log of a failing incoming call in sufficient detail that one can see that the call is arriving and the point at which it fails.

Also, this is a discussion forum, not one for solving problems.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: how to work with regexten

Postby david55 » Thu Oct 29, 2015 5:20 am

Having checked what regexten does, it's use is incompatible with the existence of an extension which has a manually configured priority 1.

I don't know when you expect dialplan to be executed, but the only time that it should be executed in relation to regexten is when there is an incoming call, normally from a different device, that references that extension. As you have a manual priority 1, that dialplan will be executed in spite of your regexten setting, so it suggest you are not getting any calls that go to that extension.

The purpose of regexten is so that calls fail "not found", or at least match some wild card in the dialplan, or some higher level definition of the extension, if the device is not registered.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 1 guest