Hello !
I am having troubles setting up Busy Light Fields (BLF) in asterisk 1.4.18
The things work up to 80%, I can transfer the call by BLF button and I can
see the green (free) status and red (busy) status.
What I cannot do is to accept the call when someone rings a remote
extension. The BLF button starts to blink in red telling me that the call is
ringing on remote extenson, but if I press it, my phone starts ringing that
extension instead of accepting the call. I can only acept the call from
other sides if I enter *8 (send) button.
Here I am sending an example from my sip.conf file (I have sip accounts from
60-90) :
[62]
; telefon
Callgroup=3
pickupgroup=1-20
subscribecontext=BLF
context=buster
type=friend
username=62
secret=<secret>
disallow=all
allow=alaw
allow=ulaw
allow=g729
qualify=yes
canreinvite=no
callerid=62
insecure=port
host=dynamic
dtmfmode=rfc2833
rtptimeout=10
nat=no
call-limit=20
[63]
; telefon
Callgroup=4
pickupgroup=1-20
subscribecontext=BLF
context=buster
type=friend
username=63
secret=<secret>
disallow=all
allow=alaw
allow=ulaw
allow=g729
qualify=yes
canreinvite=no
callerid=63
insecure=port
host=dynamic
dtmfmode=rfc2833
rtptimeout=10
nat=no
call-limit=20
[64]
; telefon
Callgroup=5
pickupgroup=1-20
subscribecontext=BLF
context=buster
type=friend
username=64
secret=<secret>
disallow=all
allow=alaw
allow=ulaw
allow=g729
qualify=yes
canreinvite=no
callerid=64
insecure=port
host=dynamic
dtmfmode=rfc2833
rtptimeout=10
nat=no
call-limit=20
Here the output from extensions.conf:
[buster]
; the usual dialplan+extensions are here, then comes:
; Pickup BLF
exten => _**6,1,Pickup(${EXTEN:1})
exten => _**6,2,Hangup
exten => _**11,1,Pickup(${EXTEN:2})
exten => _**11,2,Hangup
exten => _**6X,1,Pickup(${EXTEN:2})
exten => _**6X,2,Hangup
exten => _**7X,1,Pickup(${EXTEN:2})
exten => _**7X,2,Hangup
exten => _**8X,1,Pickup(${EXTEN:2})
exten => _**8X,2,Hangup
[BLF]
exten => 60,hint,SIP/60 ; Jozi
exten => 61,hint,SIP/61 ; Fax
exten => 62,hint,SIP/62 ; Tomaz
exten => 63,hint,SIP/63 ; Luka
exten => 64,hint,SIP/64 ; Petra
exten => 65,hint,SIP/65 ; Primoz
exten => 66,hint,SIP/66 ; Tibor
exten => 67,hint,SIP/67 ; Gregor
exten => 68,hint,SIP/68 ; Bostjan
exten => 69,hint,SIP/69 ; Oskar
exten => 70,hint,SIP/70 ; Jan
exten => 71,hint,SIP/71 ; Sinisa
exten => 73,hint,SIP/73 ; Tomaz Doma
exten => 78,hint,SIP/78 ; Tomaz Ratece
exten => 80,hint,SIP/80 ; Bostjan doma
exten => 82,hint,SIP/82 ; Tomaz
exten => 92,hint,SIP/92 ; Tomaz
exten => 95,hint,SIP/95 ; Test
This is it.
Kind regards,
Jan Prunk
--
Jan Prunk <janprunk AT SPAMFREE gmail DOT com>
Website: http://www.prunk.si PGP key: 00E80E86
Fingerprint: 77C5156E29A4EB6C1C4A5EBA414A29F500E80E86
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080619/0e508521/attachment.htm
Jan Prunk wrote:> Hello ! > > I am having troubles setting up Busy Light Fields (BLF) in asterisk 1.4.18 > The things work up to 80%, I can transfer the call by BLF button and I > can see the green (free) status and red (busy) status. > What I cannot do is to accept the call when someone rings a remote > extension. The BLF button starts to blink in red telling me that the > call is ringing on remote extenson, but if I press it, my phone starts > ringing that extension instead of accepting the call. I can only acept > the call from other sides if I enter *8 (send) button. > Here I am sending an example from my sip.conf file (I have sip accounts > from 60-90) : >I may have it wrong, but I've found that PickUp can be a complete pain in the arse. In the same arrangement, I have an agi script called for (what in yours would be _**6X,1, which picks up a group of extensions (well all 4 lines on the phone at intqueue (internal queue context) and the extension number itself. This seems to work for incoming calls, but not internal calls. (Although I haven't really looked into this, I do know that PickUp doesn't work ifn certain circumstances, such as the extension being picked up using a Macro to which handles the dialling for instance). Now hopefully someone will come along and explain all the bits I got wrong. :-)
On Thu, 19 Jun 2008, Jan Prunk wrote:> Hello ! > > I am having troubles setting up Busy Light Fields (BLF) in asterisk 1.4.18 > The things work up to 80%, I can transfer the call by BLF button and I can > see the green (free) status and red (busy) status.Firstly, make sure the GS phones are of a relatively new hardware revision and have the latest firmware loaded... Program-- 1.1.6.16 Bootloader-- 1.1.6.5 is a current "good" version for GXP phones.> Here the output from extensions.conf: > > [buster] > ; the usual dialplan+extensions are here, then comes: > > ; Pickup BLF > exten => _**6,1,Pickup(${EXTEN:1}) > exten => _**6,2,HangupThis is wrong - you need :2 to skip over the 2 stars.> exten => _**11,1,Pickup(${EXTEN:2}) > exten => _**11,2,Hangup > exten => _**6X,1,Pickup(${EXTEN:2}) > exten => _**6X,2,Hangup > exten => _**7X,1,Pickup(${EXTEN:2}) > exten => _**7X,2,Hangup > exten => _**8X,1,Pickup(${EXTEN:2}) > exten => _**8X,2,HangupYou might want to try: exten => _**.,1,Pickup(${EXTEN:2}) exten => _**.,n,Hangup() Which is what I use and it works just fine. And one other thing to remember if it's relevant for you, is that different phones send different things - eg. Snoms send *8 then the extension number, so putting: exten => _**.,1,Pickup(${EXTEN:2}) exten => _**.,n,Hangup() exten => _*8.,1,Pickup(${EXTEN:2}) exten => _*8.,n,Hangup() Somewhere covers both cases. Gordon
Try adding you context in that the phone is subscribed to. I had some issue
with this because if you do not specify the context it defaults to ?default? and
has trouble finding the phone correctly. If you watch your debug very closely I
you should see it try to pick the phone up in the wrong context. In your case
the phone registers in the context ?buster? so you would want your BLF pickup
to look like this:
exten => _**6X,1,Pickup(${EXTEN:2}@buster)
exten => _**6X,2,Hangup
Hope this helps you out.
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces
at lists.digium.com] On Behalf Of Jan Prunk
Sent: Thursday, June 19, 2008 2:23 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Grandstream Busy Light Fields
Hello !
I am having troubles setting up Busy Light Fields (BLF) in asterisk 1.4.18
The things work up to 80%, I can transfer the call by BLF button and I can see
the green (free) status and red (busy) status.
What I cannot do is to accept the call when someone rings a remote extension.
The BLF button starts to blink in red telling me that the call is ringing on
remote extenson, but if I press it, my phone starts ringing that extension
instead of accepting the call. I can only acept the call from other sides if I
enter *8 (send) button.
Here I am sending an example from my sip.conf file (I have sip accounts from
60-90) :
[62]
; telefon
Callgroup=3
pickupgroup=1-20
subscribecontext=BLF
context=buster
type=friend
username=62
secret=<secret>
disallow=all
allow=alaw
allow=ulaw
allow=g729
qualify=yes
canreinvite=no
callerid=62
insecure=port
host=dynamic
dtmfmode=rfc2833
rtptimeout=10
nat=no
call-limit=20
[63]
; telefon
Callgroup=4
pickupgroup=1-20
subscribecontext=BLF
context=buster
type=friend
username=63
secret=<secret>
disallow=all
allow=alaw
allow=ulaw
allow=g729
qualify=yes
canreinvite=no
callerid=63
insecure=port
host=dynamic
dtmfmode=rfc2833
rtptimeout=10
nat=no
call-limit=20
[64]
; telefon
Callgroup=5
pickupgroup=1-20
subscribecontext=BLF
context=buster
type=friend
username=64
secret=<secret>
disallow=all
allow=alaw
allow=ulaw
allow=g729
qualify=yes
canreinvite=no
callerid=64
insecure=port
host=dynamic
dtmfmode=rfc2833
rtptimeout=10
nat=no
call-limit=20
Here the output from extensions.conf:
[buster]
; the usual dialplan+extensions are here, then comes:
; Pickup BLF
exten => _**6,1,Pickup(${EXTEN:1})
exten => _**6,2,Hangup
exten => _**11,1,Pickup(${EXTEN:2})
exten => _**11,2,Hangup
exten => _**6X,1,Pickup(${EXTEN:2})
exten => _**6X,2,Hangup
exten => _**7X,1,Pickup(${EXTEN:2})
exten => _**7X,2,Hangup
exten => _**8X,1,Pickup(${EXTEN:2})
exten => _**8X,2,Hangup
[BLF]
exten => 60,hint,SIP/60 ; Jozi
exten => 61,hint,SIP/61 ; Fax
exten => 62,hint,SIP/62 ; Tomaz
exten => 63,hint,SIP/63 ; Luka
exten => 64,hint,SIP/64 ; Petra
exten => 65,hint,SIP/65 ; Primoz
exten => 66,hint,SIP/66 ; Tibor
exten => 67,hint,SIP/67 ; Gregor
exten => 68,hint,SIP/68 ; Bostjan
exten => 69,hint,SIP/69 ; Oskar
exten => 70,hint,SIP/70 ; Jan
exten => 71,hint,SIP/71 ; Sinisa
exten => 73,hint,SIP/73 ; Tomaz Doma
exten => 78,hint,SIP/78 ; Tomaz Ratece
exten => 80,hint,SIP/80 ; Bostjan doma
exten => 82,hint,SIP/82 ; Tomaz
exten => 92,hint,SIP/92 ; Tomaz
exten => 95,hint,SIP/95 ; Test
This is it.
Kind regards,
Jan Prunk
--
Jan Prunk <janprunk AT SPAMFREE gmail DOT com>
Website: http://www.prunk.si PGP key: 00E80E86
Fingerprint: 77C5156E29A4EB6C1C4A5EBA414A29F500E80E86
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080619/1a6cd539/attachment.htm
Hello Gordon, On Thu, 19 Jun 2008, Jan Prunk wrote:> Hello ! > > I am having troubles setting up Busy Light Fields (BLF) in asterisk 1.4.18 > The things work up to 80%, I can transfer the call by BLF button and I can > see the green (free) status and red (busy) status.Firstly, make sure the GS phones are of a relatively new hardware revision and have the latest firmware loaded... Program-- 1.1.6.16 Bootloader-- 1.1.6.5 is a current "good" version for GXP phones. Yes we got all phones updated with newest firmware.> Here the output from extensions.conf: > > [buster] > ; the usual dialplan+extensions are here, then comes: > > ; Pickup BLF > exten => _**6,1,Pickup(${EXTEN:1}) > exten => _**6,2,HangupThis is wrong - you need :2 to skip over the 2 stars.> exten => _**11,1,Pickup(${EXTEN:2}) > exten => _**11,2,Hangup > exten => _**6X,1,Pickup(${EXTEN:2}) > exten => _**6X,2,Hangup > exten => _**7X,1,Pickup(${EXTEN:2}) > exten => _**7X,2,Hangup > exten => _**8X,1,Pickup(${EXTEN:2}) > exten => _**8X,2,HangupYou might want to try: exten => _**.,1,Pickup(${EXTEN:2}) exten => _**.,n,Hangup() Ok I have tried adding these 2 lines, and the error which I get when calling 01 5863165, which then rings extension 65, and I try to accept the call on extension 70 by a BLF button. It gives me error code. -- Accepting overlap voice call from '015852977' to '5863165' on channel 0/1, span 3 -- Starting simple switch on 'Zap/7-1' -- Executing [5863165 at buster:1] Dial("Zap/7-1", "SIP/65|17|rtk") in new stack Extension Changed 65[BLF] new state Ringing for Notify User 70 -- Called 65 -- SIP/65-081fb370 is ringing -- Executing [**65 at buster:1] PickUp("SIP/70-b5f18268", "65") in new stack [2008-06-19 15:13:33] WARNING[7287]: channel.c:4347 ast_get_group: Ignoring invalid group 65 (maximum group is 63) -- No channel found 0. == Spawn extension (buster, **65, 1) exited non-zero on 'SIP/70-b5f18268' -- Channel 0/1, span 3 got hangup request, cause 16 Extension Changed 65[BLF] new state Idle for Notify User 70 == Spawn extension (buster, 5863165, 1) exited non-zero on 'Zap/7-1' -- Hungup 'Zap/7-1' Regards, Jan -- Jan Prunk <janprunk AT SPAMFREE gmail DOT com> Website: http://www.prunk.si PGP key: 00E80E86 Fingerprint: 77C5156E29A4EB6C1C4A5EBA414A29F500E80E86 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080619/a6f53b8f/attachment.htm
Hello Gordon, On Thu, 19 Jun 2008, Jan Prunk wrote:>* You might want to try:*>* *>* exten => _**.,1,Pickup(${EXTEN:2}) *>* exten => _**.,n,Hangup() *>**>* Ok I have tried adding these 2 lines, and the error which I get when calling *>* 01 5863165, which then rings extension 65, and I try to accept the call on *>* extension 70 by a BLF button. It gives me error code. *>* *>* -- Accepting overlap voice call from '015852977' to '5863165' on channel *>* 0/1, span 3 *>* -- Starting simple switch on 'Zap/7-1' *>* -- Executing [5863165 at buster <http://lists.digium.com/mailman/listinfo/asterisk-users>:1] Dial("Zap/7-1", "SIP/65|17|rtk") in new *>* stack *>* Extension Changed 65[BLF] new state Ringing for Notify User 70 *>* -- Called 65 *>* -- SIP/65-081fb370 is ringing *>* -- Executing [**65 at buster <http://lists.digium.com/mailman/listinfo/asterisk-users>:1] PickUp("SIP/70-b5f18268", "65") in new *>* stack *>* [2008-06-19 15:13:33] WARNING[7287]: channel.c:4347 ast_get_group: Ignoring *>* invalid group 65 (maximum group is 63) *>* -- No channel found 0. *>* == Spawn extension (buster, **65, 1) exited non-zero on 'SIP/70-b5f18268' *>* -- Channel 0/1, span 3 got hangup request, cause 16 *>* Extension Changed 65[BLF] new state Idle for Notify User 70 *>* == Spawn extension (buster, 5863165, 1) exited non-zero on 'Zap/7-1' *>* -- Hungup 'Zap/7-1' * Er, I don't get quite the same output as you - I'm on 1.2 though. A test call I've just done - extension 109 called extension 100, and extension 101 (a grandstream phone) picked it up by pushing the BLF key corresponding to extension 100: -- Executing Dial("SIP/109-0820a178", "IAX2/100&SIP/100||WwTton") in new stack -- Called 100 -- SIP/100-081fe780 is ringing Extension Changed 100 new state Ringing for Notify User 101 -- Executing Pickup("SIP/101-081edf38", "100") in new stack -- Executing Hangup("SIP/101-081edf38", "") in new stack == Spawn extension (internal, **100, 2) exited non-zero on 'SIP/101-081edf38' -- SIP/101-081edf38 answered SIP/109-0820a178 Extension Changed 100 new state Idle for Notify User 101 == Spawn extension (macro-dialInternal, s, 53) exited non-zero on 'SIP/109-0820a178' in macro 'dialInternal' So your pickup is picking up a group - seems odd to me, but maybe the behaviour changed after 1.2 ? One other thing - do you have exten => 65,1,Dial(SIP/65) Yes I do have this: exten => 65,1,Dial(SIP/65,30,rtk) exten => 65,n,Hangup() exten => 70,1,Dial(SIP/70,30,rtk) exten => 70,n,Hangup() As pickup works on the extension not the channel... (ie. what do you dial on a phone to make the SIP/65 ring? What does the DDI point to?) It goes like this: exten => 5863165,1,Dial(SIP/65,17,rtk) exten => 5863165,n,Dial(SIP/64,120,rtk) exten => 5863165,n,Hangup() Regards, Jan -- Jan Prunk <janprunk AT SPAMFREE gmail DOT com> Website: http://www.prunk.si PGP key: 00E80E86 Fingerprint: 77C5156E29A4EB6C1C4A5EBA414A29F500E80E86 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080620/0164bf12/attachment.htm