[Asterisk-Users] Asterisk won't listen on different port

Aisling ashling.odriscoll at cit.ie
Tue Aug 30 02:46:10 MST 2005


Hello,
 
I have SER and Asterisk running on the same box. I want SER to listen on
port 5060 (it is) and Asterisk to listen on port 5062. I have configured
my phones to register with x.x.x.x:5060 (SER) and Asterisk will purely
act as a voicemail server at the moment. However I cannot get Asterisk
to listen on a different port. It is my understanding that I just need
to set the port in sip.conf (port=5062) but that doesn't seem to be
working. When I run "netstat -tunap" I see:
 
       x.x.x.x:5060           LISTEN
ser
       127.0.0.1 :5060      LISTEN
ser
       0.0.0.0 :2000          LISTEN
asterisk
.
.
.
0.0.0.0    :2727
asterisk
      0.0.0.0:4520
asterisk
      0.0.00:5060
asterisk
     x.x.x.x:5060     
ser
     127.0.0.1:5060
ser
 
My config is like follows
 
;sip.conf
context=default
port=5062
bindaddr=0.0.0.0
srvlookup=yes
canreinvite=no
autocreatepeer=yes
 
[2092]
type=friend
username=2092
canreinvite=no
context=default
mailbox=2092
host=dynamic
nat=no dtmfmode=info
disallow=all
allow=ulaw
allow=alaw
 
;extensions.conf
 
;leave voice messages
exten => 2092, 1, Voicemail(u2092)
exten => 2092, 2, Hangup
 
;play voice messages
exten => 9999, 1, VoiceMailMain, s2092
 
;voicemail.conf
 
2092 => 2092, 2092, emailaddress
 
At the moment when a user dials 9999 to access voicemail, ser forwards
to x.x.x.x:5062 and with my current config (port 5062, bindaddr=0.0.0.0)
nothing reaches asterisk. However when I change this to (port=5062,
bindaddr=x.x.x.x).the same address as ser, the phones start registering
with asterisk even though they're configure to register with port 5060
only! Basically I think Asterisk is still listening on 5060 and I can't
change it.
 
Do I need to change the asterisk port somewhere other that sip.conf?
Many thanks.
 


-------------------Legal  Disclaimer---------------------------------------

The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050830/3901da35/attachment.htm


More information about the asterisk-users mailing list