I’ve spent some nights now trying to get the Busy Lamps on my GXP-2000 working - especially to get them blinking when another phone is ringing. I’ve read several messages that it works fine for some people and studied their configuration examples but I can’t get it working.
Configuration:
Asterisk 1.2.8 with mISDN
Grandstream BT-101, extension 101
UTstarcom G1000G, extension 103
Grandstream GXP-2000 (firmware 1.1.0.13), extension 1000
(complete config files included below)
If I configure the phones as type=friend it doesn’t work at all.
E.g. if I call extension 101 from extension 103 nothing happens. While extension 101 is ringing “show hints” displays the state as idle.
asteriskCLI> show hints
asteriskCLI>
-= Registered Asterisk Dial Plan Hints =-
1000 : SIP/1000 State:Idle Watchers 1
103 : SIP/mobile State:Idle Watchers 1
101 : SIP/marcus State:Idle Watchers 1
The phones must be configured as type=peer to make it working… halfways…
Now it depends on the call-limit setting. I used to set the call-limit to 1 for the BT-101 and the F1000G. Result:
asterisk*CLI> show hints
-= Registered Asterisk Dial Plan Hints =-
1000 : SIP/1000 State:Idle Watchers 1
103 : SIP/mobile State:Busy Watchers 1
101 : SIP/marcus State:Busy Watchers 1
And with call-limit=2::
asterisk*CLI> show hints
-= Registered Asterisk Dial Plan Hints =-
1000 : SIP/1000 State:Idle Watchers 1
103 : SIP/mobile State:InUse Watchers 1
101 : SIP/marcus State:InUse Watchers 1
In both cases the corresponding LEDs on the GXP-2000 are on. I think this is correct for the state shown by Asterisk - but the question is: Why does Asterisk refuses to indicate a ringing state?
I’ve also set notifyringing=yes for all phones but it doesn’t change anything.
Just to be sure I’ve checked with “sip debug peer 1000” and found no NOTIFY messages from asterisk indicating a ringing state.
The next problem seems to be related to the problem above: If I try to Pickup the ringing line with *8101 or **101 I get error 603. Maybe Asterisk does not accept a pickup because it thinks the phone is not ringing?
For the tests I’ve reduced my configuration files to a minimum:
— sip.conf —
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
disallow=all
allow=alaw
[marcus]
type=peer
context=default
subscribecontext=default
notifyringing=yes
secret=***
host=dynamic
qualify=100
nat=never
canreinvite=no
dtmfmode=info
call-limit=2
[mobile]
type=peer
context=default
subscribecontext=default
notifyringing=yes
secret=***
host=dynamic
qualify=1000
nat=never
canreinvite=no
dtmfmode=info
call-limit=2
[1000]
type=peer
context=default
subscribecontext=default
notifyringing=yes
secret=***
host=dynamic
qualify=100
nat=never
canreinvite=no
dtmfmode=info
call-limit=4
— extensions.conf —
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
[default]
exten => 101,hint,SIP/marcus
exten => 101,1,Dial(SIP/marcus,20,r)
exten => 103,hint,SIP/mobile
exten => 103,1,Dial(SIP/mobile,20,m)
exten => 1000,hint,SIP/1000
exten => 1000,1,Dial(SIP/1000)
exten => _**.,1,Pickup(SIP/${EXTEN:2})
Any ideas?
Ciao
Marcus