[asterisk-users] Grandstream Busy Light Fields

Gordon Henderson gordon+asterisk at drogon.net
Thu Jun 19 11:14:06 CDT 2008


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: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'

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)

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?)

Gordon



More information about the asterisk-users mailing list