My asterisk is built on linux. I have 1 hk2b, a analog line through SPA3000 FXO out, several VOIP accounts e.g. IPtel. All working except 2b that fail intermittently.
For CMphone, it can be registered as a client when coded in sip.conf. It rings and can be dialed in, For out, its status is never reachable.作者: ckleea 時間: 2011-2-20 06:08
The parameter available from cmphone includes
1, HK tel number
2. regustrar/backup server ip
3. user id - 852+ the HK number
4. password.
I can use them to login in their server through 2 pieces of thing.
Zoiper
Siemens IP phone
In and out, no problem with good quality
For asterisk, I need to put pedantic = yes
in [general] of sip.conf
and the usual register string
userid:password@hostip
I don't know the timeout period for cmphone, but at least few minutes for reconnection作者: ckleea 時間: 2011-2-20 06:12
It allows only one login at one time. As far as I can tell, only one call any time. This is difficult from 2b and some other voip providers.作者: 角色 時間: 2011-2-20 09:40
CK
Are you able to change the Agent name to other name instead of Asterisk when you pass the information to CM server? I guess CM rejects outbound call if the user agent is Asterisk.
YH作者: bubblestar 時間: 2011-2-20 10:54
Yes, I recall that Asterisk The Future of Telephony also mentions that some servers might not accept Asterisk as user Agent name for unknown reasons. You may change whatever name you like other than Asterisk and try again. No harm.作者: ckleea 時間: 2011-2-20 14:13
Will try again later to see.作者: ckleea 時間: 2011-2-21 22:41
Change the user agent does not work
May need to think about this as well
Phone registers, but I can't receive calls
This problem is most likely to happen if the phone is behind a NAT router, thus loosing its connectivity to the mydivert.com server.
While default phone settings work correctly in environments without a NAT, for phones behind a NAT you must change the phone time-out period - this is the amount of time after which the phone tries to register again to the server.
Most phones have a Registration expires/Re-register timeout/Registration timeout setting. The name varies, but the function is always the same. Default values are 1 hour or 3,600 seconds.
While this is alright for typical connections that are normally closed after 7,200 seconds, for connections behind NAT the value must be set to 60 seconds or 1 minute, or, in any case, lower then 120 seconds. This is mandatory because most routers close the connection after 120 seconds and when a call comes from a public IP after this period of time, the router just drops it since it does not know what to do with the packets.
Check the phone advanced settings. Set a low registration period and check to see if it offers NAT keep-alive options or other helpers.
The problem may also be caused by router settings. So, it's probably best to try different settings. If nothing else works, consider using a STUN server (there are public STUN servers available on the net, example stunserver.org, or use stun.mydivert.com).
Check your firewall/router
Many registration problems are caused by firewall applications. To make sure your problem is not caused by the firewall, open all the VoIP ports on the firewall/router in front of the phone. If you want to create strict rules, then make sure that at least the UDP ports 5060-5070, 10000-20000 and 53 are not blocked.
Log into your router or modem/router administration. There may be options available to enable NAT support.作者: dingli 時間: 2011-3-6 01:43
it is my cmphone config
[COMNET_PSTN]
context = DID_COMNET_PSTN
host = 202.0.179.3
username = 8523XXXXXXX
fromuser = 8523XXXXXXX
realm = 8523XXXXXXX
trunkname = COMNET_PSTN
secret = ??????????????
hasiax = no
registeriax = no
hassip = yes
registersip = yes
hasexten = no
insecure = port,invite
disallow = all
allow = ulaw
qualify = no
transport = udp
canreinvite = no
type = friend
dtmfmode = rfc2833
hasvoicemail = no
context 指返去自己既incoming call dial plan
使用sip show registry檢查返是否成功登入cmphone.作者: lawleo 時間: 2012-7-21 01:40
試左都還是不能.
raspberrypi*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
202.0.179.3:5060 N 85235021085 105 Registered Sat, 21 Jul 2012 01:21:16
這部份應該登入成功,但當我一打出時....
== Using SIP RTP CoS mark 5
-- Executing [18503@users:1] Dial("SIP/30-00000011", "SIP/18503@cmphone") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/18503@cmphone
-- Got SIP response 503 "Service Unavailable" back from 202.0.179.3:5060
-- SIP/cmphone-00000012 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/30-00000011' status is 'CONGESTION'
立即 503 error, rejected
打入時都係差唔多
== Using SIP RTP CoS mark 5
-- Called SIP/40
-- SIP/40-00000003 is ringing
-- SIP/40-00000003 answered SIP/cmphone-00000000
-- Locally bridging SIP/cmphone-00000000 and SIP/40-00000003
== Spawn extension (from_cmphone, 85235021085, 1) exited non-zero on 'SIP/cmphone-00000000'
[Jul 21 01:31:24] WARNING[4395]: chan_sip.c:3639 retrans_pkt: Retransmission timeout reached on transmission 05c852db110d192113947b295dfca5c4@192.168.2.233:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response作者: lawleo 時間: 2012-7-21 01:46
我的登入句法是
register=8523502xxxx:xxxxxxxx@202.0.179.3/8523502xxxx <- 放在 sip.conf 裡的 general
dialplan for 打出打入 in extension.conf
[local]
exten => _[1-9].,1,Dial(SIP/cmphone/${EXTEN}) <- 唔work
;exten => _[1-9].,1,Dial(SIP/${EXTEN}@cmphone) <- 都唔 work
Change the type=peer to
type = friend
in sip.conf作者: lawleo 時間: 2012-7-21 09:30
還是不能....鞋...相同的 error message
撥出
= Using SIP RTP CoS mark 5
-- Executing [18503@users:1] Dial("SIP/40-00000001", "SIP/85235021085/18503,,60") in new stack
[Jul 21 09:14:27] WARNING[4838]: chan_sip.c:5440 create_addr: Purely numeric hostname (85235021085), and not a peer--rejecting!
[Jul 21 09:14:27] WARNING[4838]: app_dial.c:2341 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/40-00000001' status is 'CHANUNAVAIL'
== Using SIP RTP CoS mark 5
-- Executing [85235021085@from_cmphone:1] Dial("SIP/cmphone-00000002", "SIP/10&SIP/20&SIP/30&SIP/40,30") in new stack
-- SIP/40-00000004 answered SIP/cmphone-00000002
-- Locally bridging SIP/cmphone-00000002 and SIP/40-00000004
== Spawn extension (from_cmphone, 85235021085, 1) exited non-zero on 'SIP/cmphone-00000002'作者: bubblestar 時間: 2012-7-21 13:10