[Asterisk-Users] sip.conf and asterisk as a sip registrar

smadi smadi at power.eng.mcmaster.ca
Thu Jul 15 13:34:52 MST 2004


I am having a problem with asterisk as a sip registrar.  here is my 
sip.conf file
================================





general]
port=5060




[global]
register => 1000:hello at 130.113.184.38/1000
register => 1001:hello at 130.113.184.38/1001
register => 2000 at 130.113.184.38/2000
disallow=all                    ; Disallow all codecs
allow=ulaw                      ; Allow codecs in order of preference


[1000]
type=friend
;context=1000
;host=dynamic
dtmfmode=inband
defaultip=192.168.1.5
secret=hello
;mailbox=1000

[1001]
type=friend
;context=1000
host=dynamic
dtmfmode=inband
defaultip=192.168.1.7
secret=hello
;mailbox=1000

[2000]
type=friend
;context=2000
host=dynamic                                                                                 

dtmfmode=inband                ; Choices are inband, rfc2833, or info
defaultip=192.168.1.10
disallow=all
allow=ulaw                     ; since we chose 'inband' for dtmf we 
must use g.711
allow=alaw
;mailbox=2000
===================================================

from the asterisk command line CLI> sip show peers

i get the following:

ame/username    Host            Dyn Nat ACL Mask             Port     Status
2000/2000        192.168.1.10     D          255.255.255.255  5060     
Unmonitored
1001/1001        192.168.1.7      D          255.255.255.255  5060     
Unmonitored
1000/1000        192.168.1.5      D          255.255.255.255  5060     
Unmonitored
================================================

i think this means that all my clients register just fine but when 
trying to call any of them it say NOT FOUND except when calling the 
client 1000.

clients 1000 and 1001 are kphones and 2000 is a snom sip phone.

any ideas on how to resolve this behavior?

ms




More information about the asterisk-users mailing list