Problem in Queue Member status until poll_interval

  1. 13 years ago

    Hi,

    I have a problem with exten status in a queue button on the fop2.
    I setup an exten like this:

    [SIP/1019]
    type=extension
    extension=1019
    context=from-inside
    label=Marcus Vinicius
    mailbox=1019
    extenvoicemail=*1131019@from-inside

    And I have a queue button like this:

    [QUEUE/pabx]
    type=queue
    label=PABX
    extension=5000
    context=from-inside

    When the exten 1019 use a AddQueueMember(), the name of the exten doesn’t appear in the queue Button, in real time. There is no way to know which exten was logged until “poll_interval” has reached:
    http://i283.photobucket.com/albums/kk300/americanet/problem1.png

    In the fop1 there is a way to know that exten was logged, in real time:

    http://i283.photobucket.com/albums/kk300/americanet/ok1.png

    If I restart fop2 or if “poll_interval” has reached, then everything work very well, and I can see the name of the exten logged in the queue:
    http://i283.photobucket.com/albums/kk300/americanet/ok2.png

    Is there a way to solve this problem?

    FOP 2.21

    When the exten loggin in the queue, I can see the debug below:

    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1019-b53e6620
    127.0.0.1       <- Context: macro-nx-agent-dynamic-add
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 5
    127.0.0.1       <- Application: AddQueueMember
    127.0.0.1       <- AppData: pabx|SIP/1019|
    127.0.0.1       <- Uniqueid: 1312550658.408712
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: QueueMemberAdded
    127.0.0.1       <- Privilege: agent,all
    127.0.0.1       <- Queue: pabx
    127.0.0.1       <- Location: SIP/1019
    127.0.0.1       <- Membership: dynamic
    127.0.0.1       <- Penalty: 0
    127.0.0.1       <- CallsTaken: 0
    127.0.0.1       <- LastCall: 0
    127.0.0.1       <- Status: 2
    127.0.0.1       <- Paused: 0
    127.0.0.1       <- Server: 0
    Use of uninitialized value in string ne at script/fop2_server.pl line 3391.
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1019-b53e6620
    127.0.0.1       <- Context: macro-nx-agent-dynamic-add
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 6
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?jalogado
    127.0.0.1       <- Uniqueid: 1312550658.408712
    127.0.0.1       <- Server: 0
    
    10.10.1.166     => { 'btn': '67@GENERAL', 'cmd': 'queuemembers', 'data': 'PGRpdiBjbGFzcz0nbWVtYmVyYnVzeSBteWNsaWNrJyBpZD0ncW0hUVVFVUUvUEFCWCFTSVAvMTAxOSc+PC9kaXY+PHNwYW4+PC9zcGFuPjxiciBjbGFzcz0nY2xlYXInLz48ZGl2IGNsYXNzPSdtZW1iZXJyZWFkeSBteWNsaWNrJyBpZD0ncW0hUVVFVUUvUEFCWCFTSVAvMTAyMSc+PC9kaXY+PHNwYW4+UmFmYWVsPC9zcGFuPjxiciBjbGFzcz0nY2xlYXInLz4=', 'slot': '' }
    
    10.10.1.166     => { 'btn': '2@GENERAL', 'cmd': 'rename', 'data': '', 'slot': '' }
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1019-b53e6620
    127.0.0.1       <- Context: macro-nx-agent-dynamic-add
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?ok
    127.0.0.1       <- Uniqueid: 1312550658.408712
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1019-b53e6620
    127.0.0.1       <- Context: macro-nx-agent-dynamic-add
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 11
    127.0.0.1       <- Application: Playback
    127.0.0.1       <- AppData: queue/agent-loggedin
    127.0.0.1       <- Uniqueid: 1312550658.408712
    127.0.0.1       <- Server: 0

    tks

    --
    Marcus Vinicius

  2. admin

    6 Aug 2011 Administrator

    My suggestion is to use the membername parameter to the addqueuemember directive. fop2 can track member names at runtime/event when using local channels and the extension/context of a button matches the extension@context in the local channel.

    Asterisk supports now the membername directive for queue members, fop2 will pick that right up with no issues and no fancy/hackish match..

or Sign Up to reply!