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

Umair Bari umairbari at gmail.com
Tue Sep 6 01:57:58 MST 2005


try bindport=5062 and bind the IP address too
 bindaddr=IP_ADDRESS

 On 9/5/05, Aisling <ashling.odriscoll at cit.ie> wrote: 
> 
>  Hello,
> 
>  Hope somebody can help me – Asterisk is behaving very oddly and I'm 
> totally stumped! 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 type "sip show settings" into the console, I see SIP Port: 
> 5060 in Global Settings. When I run "netstat –tunap" I see:
> 
>  x.x.x.x:5060 LISTEN
> 
> ser
> 
> 127.0.0.1 <http://127.0.0.1/> :5060 LISTEN
> 
> ser
> 
> 0.0.0.0 <http://0.0.0.0/> :2000 LISTEN
> 
> asterisk
> 
> .
> 
> .
> 
> .
> 
> 0.0.0.0 <http://0.0.0.0/> :2727
> 
> asterisk
> 
> 0.0.0.0:4520 <http://0.0.0.0:4520/>
> 
> asterisk
> 
> 0.0.00:5060
> 
> asterisk
> 
> x.x.x.x:5060 
> 
> ser
> 
> 127.0.0.1:5060 <http://127.0.0.1:5060/>
> 
> ser
> 
>  My config is like follows
> 
>  ;sip.conf
> 
>  [general]
> 
> context=default
> 
> port=5062
> 
> bindaddr=0.0.0.0 <http://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<http://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 configured to register with port 5060 
> only! Basically I think Asterisk is still listening on 5060 and I can't 
> change it. I originally thought maybe I had multiple sip.conf's on my 
> machine but when I do "sip reload" in the asterisk console, it says parsing 
> /etc/asterisk/sip.conf, so it's definitely the correct file.
> 
>  Do I need to change the asterisk port somewhere other that sip.conf? Does 
> anyone have other suggestions for what could be making Asterisk behave so 
> oddly?
> 
> Many thanks,
> 
> Aisling.
> 
> -------------------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. 
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com<http://easynews.com/>--
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050906/25aef2ee/attachment.htm


More information about the asterisk-users mailing list