Disabling authentication for register

ris8_allo_zen0's picture

Hi all,
I know that's a really bad practice, but I need to configure my Asterisk installation (in an AsteriskNOW distro) to avoid authentication during REGISTERs. I tried writing the following sip_custom_post.conf the following way (for two extensions, 1000 and 1001):
-----------------------
[1000](+)
insecure=invite,port

[1001](+)
insecure=invite,port
-----------------------
, but it keeps asking for authentication. How to solve that?

Thanks & best regards
Enrico


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I reply my myself. In order

ris8_allo_zen0's picture

I reply my myself.
In order to do so, the password for the user should be left empty. This should be done by manually editing the config files, since FreePBX won't allow to enter an empty password from the GUI.


If you leave out the secret

mickecarlsson's picture

If you leave out the secret for an extension you will get a warning that it is bad practice to have a blank secret, if you click OK it will save the extension without a secret, if you click Cancel you are back at editing the extension.

Do not edit the config files as they are overwritten once you click on the Apply Changes bar.


__________________

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)


Thank you Michael, I didn't

ris8_allo_zen0's picture

Thank you Michael, I didn't notice it was just a warning. By the way, I used the sip_custom_post.conf file in order to not interfere with FreePBX.

Enrico


Any SIP peer/user section is

obelisk's picture

Any SIP peer/user section is ignored by chan_sip parser unless it contains type= statement.

Had you watched the log file you would notice complaints like:

chan_sip.c: Section '1000' lacks type

so they should really look like

[1000](+)
insecure=invite,port
type=peer

__________________

SIP: Magic incantations - http://forums.digium.com/viewtopic.php?t=78543


All extensions in FreePBX

mickecarlsson's picture

All extensions in FreePBX has a default setting for type: type=friend


__________________

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)


ris8_allo_zen0 wrote: This

SkykingOH's picture
ris8_allo_zen0 wrote:
This should be done by manually editing the config files, since FreePBX won't allow to enter an empty password from the GUI.

mikecarlsson is correct, do not edit the config files. No "password" screen exists in FreePBX. SIP extensions has a "secret" field that can be left blank.

I would always use an access list for security (the permit/deny) fields when no using a secret for digest authentication.


All extensions in FreePBX

obelisk's picture

All extensions in FreePBX has a default setting for type: type=friend

Right, so chan_sip creates both user and peer definition for all extensions.

In order to uniquely identify the SIP section it is necessary not only to provide the name but also the type.
That's why type= is necessary when extending the section using the (+) construct.


__________________

SIP: Magic incantations - http://forums.digium.com/viewtopic.php?t=78543