[asterisk-users] Signaling incoming call

Steve Edwards asterisk.org at sedwards.com
Sun May 31 14:24:34 CDT 2015


On Sun, 31 May 2015, Luca Bertoncello wrote:

> register => 00493511111111:MYSECRET at pbxluca/00493511111111
> register => 00493512222222:MYSECRET at pbxfax/00493512222222
> register => 00493513333333:MYSECRET at pbxanika/00493513333333
> register => 4444444444:MYVERYSECRET at 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 at 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 at 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       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list