[asterisk-users] SIP Qualify is not working with Postgres
Marcelo Terres
mhterres at gmail.com
Wed Nov 5 08:18:06 CST 2008
Hello.
I'm using Asterisk 1.4.22 with Postgres 8.3 in a Ubuntu 8.04 Server.
I configured Asterisk to get sip from Postgres, and set qualify for all sips
as yes, but the sip show peers command show the status of the peers as
UNKNOWN
srvcentral*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
Realtime
4900/4900 (Unspecified) D N 0 UNKNOWN
Cached RT
4188/4188 10.63.255.150 D N 65444 UNKNOWN
Cached RT
4181/4181 10.63.255.159 D N 5060 OK (14 ms)
Cached RT
4176/4176 10.63.255.171 D N 5061 UNKNOWN
Cached RT
4111/4111 10.63.255.171 D N 5060 UNKNOWN
Cached RT
4184/4184 10.63.255.195 D N 5061 UNKNOWN
Cached RT
4185/4185 10.63.255.195 D N 5060 UNKNOWN
Cached RT
4156/4156 10.63.255.173 D N 5060 UNKNOWN
Cached RT
Now only the 4181 is working fine (but sometimes just the 4156 is working,
sometimes just the 4188, etc...). If I put the sip config in the sip.conf
file, everything works great.
My extconfig.conf:
sipusers => pgsql,asterisk,sip
sippeers => pgsql,asterisk,sip
voicemail => pgsql,asterisk,voicemail
My configuration from 4111 stored in the Postgres:
callgroup = 2
callerid = Ramal 4111 <4111>
canreinvite = yes
context = ramais
host = dynamic
nat = yes
pickupgroup = 2
qualify = yes
secret = 123456
type = friend
username = 4111
disallow = all
allow = alaw
cancallforward = yes
call-limit = 6
My general section of sip.conf :
[general]
qualify=yes
context=default
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
domain=srvcentral.meudominio.com.br
tos_sip=cs3
tos_audio=ef
tos_video=af41
language=pt_BR
rtptimeout=60
rtpholdtimeout=300
notifyringing = no
notifyhold = no
limitonpeers = yes
nat=yes
rtcachefriends=yes
rtsavesysname=yes
rtupdate=yes
Registration is working fine, the only problem I can see is qualify.
Anybody can help me ?
Marcelo H. Terres
mhterres at gmail.com
****************************************
ICQ: 6649932
MSN: mhterres at hotmail.com
Jabber: mhterres at jabber.org
http://twitter.com/mhterres
http://mhterres.jaiku.com/
****************************************
http://mundoopensource.blogspot.com/
http://offtopicsandfun.blogspot.com/
http://www.propus.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081105/609feff5/attachment.htm
More information about the asterisk-users
mailing list