On Sun, 31 May 2015, Luca Bertoncello wrote:

register => 00493511111111:MYSECRET@pbxluca/00493511111111
register => 00493512222222:MYSECRET@pbxfax/00493512222222
register => 00493513333333:MYSECRET@pbxanika/00493513333333
register => 4444444444:MYVERYSECRET@messagenet/4444444444

[pbxluca]
type=peer
defaultuser=00493511111111
secret= MYSECRET
dtmfmode=rfc2833
host=172.16.34.132
context=luca_incoming
outboundproxy=172.16.34.132
port=5060
fromuser=00493511111111
fromdomain=172.16.34.132
usereqphone=yes
canreinvite=no
insecure=invite
qualify=yes
qualifyfreq=600

[pbxfax]
type=peer
defaultuser=00493512222222
secret= MYSECRET
dtmfmode=rfc2833
host=172.16.34.132
context=fax_incoming
outboundproxy=172.16.34.132
port=5060
fromuser=00493512222222
fromdomain=172.16.34.132
usereqphone=yes
canreinvite=no
insecure=invite
qualify=yes
qualifyfreq=600

[snip]

Just a few 'stylistic' and 'ease of maintenance' suggestions:

1) Group the 'register' with the stanza.

2) Add a bit of whitespace to increase 'readability.'

3) Sort the parameters to make it easier to maintain.

4) Move 'common' settings to 'general.'

Thus, I'd write your sip.conf as:

[general]
        canreinvite                     = no
        context                         = luca_incoming
        dtmfmode                        = rfc2833
        insecure                        = invite
        outboundproxy                   = 172.16.34.132
        port                            = 5060
        qualify                         = yes
        qualifyfreq                     = 600
        usereqphone                     = yes

[general](+)
        register                        = 
00493511111111:MYSECRET@pbxluca/00493511111111
[pbxluca]
        defaultuser                     = 00493511111111
        fromdomain                      = 172.16.34.132
        fromuser                        = 00493511111111
        host                            = 172.16.34.132
        secret                          = MYSECRET
        type                            = peer

[general](+)
        register                        = 
00493512222222:MYSECRET@pbxfax/00493512222222
[pbxfax]
        defaultuser                     = 00493512222222
        fromdomain                      = 172.16.34.132
        fromuser                        = 00493512222222
        host                            = 172.16.34.132
        secret                          = MYSECRET
        type                            = peer

5) I'd try and move more of the common settings to general, but these were the 
ones listed on voip-info.org.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

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

Reply via email to