返回列表 發帖
Will try this one tonight to look into the sip message

http://sipx-wiki.calivia.com/ind ... Messages_to_display

TOP

Try to learn and debug whatever I can. Everyone is helpful, in particular 角色.
Once I got it fix, I can then share my experience.

TOP

I hope I can fix it. Perhaps one of the problems is the IP address. I notice that the requesting and then returning IPs are different. Keep trying

TOP

Finally, I manage to get both inbound and outbound work. But not yet fixed up the IVR to catch the call.

HKBN to extension - no problem
to IVR, failed, either invalid extension or failed.

TOP

My sip.con is like this

[general]
context = default
srvlookup = no
nat = yes
realm = Realm
externhost = xxx.yyy.zzz
fromdomain = xxx.yyy.zzz
localnet = 192.168.118.0/255.255.255.128  ;change it as per your Asterisk network address
localnet = 192.168.1.0/255.255.255.0
externrefresh = 180
defaultexpirey = 120
bindport = 5060
pedantic = no
qualify = yes
tos = cs3
tos_audio = ef
tos_video = af41
disallow = all
allow = alaw
allow = ulaw
allow = gsm
;domain =
autodomain = no
bindaddr = 0.0.0.0
allowexternalinvites=no
alwaysauthreject=no
allowexternaldomains=no

register => 35678900hk:password@s2hkbntel.net/35678900

[hkbn2b]
type = friend
nat = yes
username = 35678900hk
secret = password
port = 5060
host = s2hkbntel.net
fromuser = 35678900hk
fromdomain = s2hkbntel.net
canreinvite = no
insecure = invite
disallow = all
allow = alaw
;dtmfmode = rfc2833
context = from-hkbn2b
outboundproxy = 203.80.89.139
quality = no

This is in a multiWAN environment with centos based asterisk server, IP01 with switchfin firmware and a DD-WRT router.

Only problem now is the IVR, somehow it drops.
If I forward to a SIP phone, it rings with callerID.

TOP

My error is like this
  -- Executing [1000@default:4] WaitExten("SIP/domain2b.hkbn.net-000000fd", "5") in new stack
    -- Timeout on SIP/domain2b.hkbn.net-000000fd, continuing...
    -- Executing [1000@default:5] Hangup("SIP/domain2b.hkbn.net-000000fd", "") in new stack
  == Spawn extension (default, 1000, 5) exited non-zero on 'SIP/domain2b.hkbn.net-000000fd'

Can't take my extensions

TOP

No idea now that dial out is not working. Registration sometimes success, sometimes timeout. I got 603 declined error

TOP

Thanks, bubblestar 兄, the information is reasonable and similar to my understanding of the underlying problem.

One can conclude that asterisk 1.6 has created its own set of problems.

TOP

I have just read a post from  which might be useful to you to fix the outbound or inbound problems o ...
bubblestar 發表於 2010-10-4 11:30


May not be 100% working.
   
Now, I add the following in the general section of sip.conf

stunaddr = stun.xten.com

TOP

回復 42# 角色

Now, both works. However, I believe the underlying problem is asterisk 1.6
Unfortunately, no time or choice to downgrade to 1.4

TOP

An update:

The problem is in asterisk 1.6 but also in my router. In the former, it is the variable, type and insecure. But also note that router issue is important. Because of using more than one IP, when the outgoing connection is made, different IPs may be associated. In return at the authenization phase, IPs mismatched. Now I fix this by looking at my outgoing firewall rules, and bound to a fixed wan IP . No problem so far.

The usual internal extension under one asterisk server works with the present auto-attendant script. When try to press extension of other asterisks or try other dialplan, it generates invalid extension.

TOP

試下更改 /etc/hosts 如下

;203.80.89.135       s2hkbntel.net s21.hkbntel.net
203.80.89.139                s2hkbntel.net s22.hkbntel.net
;203.80.89.146        s2hkbntel.net s23.hkbntel.net
;203.80.89.150        s2hkbntel.net s24.hkbntel.net

記得行 service network restart

假定你用 Centos /Redhat linux

TOP

Please reboot your server once. It happens to me many times recently. YH advised me to reboot. It will work again.

TOP

回復 49# 電腦超人

Also reboot your router and try to go into 2b web page to reset your setting.

It just happens again to me last night. It is back to normal.

TOP

Yes, I confirm that it is back to normal.

Try this link to reset your 2b account

http://pa.2b.com.hk/login.jsp

TOP

返回列表