SIP REGISTER using Asterisk


#1

Hi all,
i’m new in Asterisk world. So, I have a simple question to do…
How can configure my Asterisk installation to accept sip register message?..At moment my UAC receive an unauthorized message where “Allow” field doesn not contain REGISTER value.
Can somebody help me please?

Thanks in advance.
Ciao
Francesco


#2

You’d better explain what you’re trying to do, what problems you’re having doing it, and what you’ve done to try and fix it.


#3

sorry,
in brief, Asterisk does not accept SIP REGISTER.
Is there something that i forgot in my Asterisk configuration?

Thanks and Best Regards
Ciao
Francesco


#4

you need to set up users in sip.conf…


#5

post something about your sip.conf;
what kind of UAC are using?
C.


#6

I use the followinf files configuration…
###########extension.conf##############
[general]
static=yes
writeprotect=no
[globals]
[local]
include => default
[default]
exten => 553001,1,Dial(SIP/553001)
exten => 553002,1,Dial(SIP/553002)

#############sip.conf#############

[general]
context=default
port=5060
bindaddr=0.0.0.0
srvlookup=yes
defaultexpirey=3600

[553001]
type=friend ; Friends place calls and receive calls
context=default ; Context for incoming calls from this user
secret=friend
language=it ; Use German prompts for this user
host=dynamic ; This peer register with us
dtmfmode=inband ; Choices are inband, rfc2833, or info
defaultip=172.38.1.196 ; IP used until peer registers
username=u1 ; Username to use in INVITE until peer registers
canreinvite=yes
;

[553002]
type=friend ; Friends place calls and receive calls
context=default ; Context for incoming calls from this user
secret=friend
language=it ; Use German prompts for this user
host=dynamic ; This peer register with us
dtmfmode=inband ; Choices are inband, rfc2833, or info
defaultip=172.38.1.196 ; IP used until peer registers
canreinvite=yes
username=553002 ; Username to use in INVITE until peer registers
;


#7

Thanks a lot…
It was just necessary to restart and not reload sip…

Bye
Ciao

Francescp