Problem with Call Count

Hi, i am using asterisk 1,8 SIP and now i migrate to asterisk 20 PJSIP, in all asterisk version

if I use the call count after I have transferred the call, the person who transferred remains busy

3114 call 3115

3115 transfer call to 3117

3114 and 3117 they are speaking and therefore they are busy

3115 stay busy until 3114 and 3117 close call!

Why?

TNX ALL

What call count are you referring to? You’ll need to be more specific.

exten => _31XX,1,Set(GROUP()=call_count)
exten => _31XX,n,Noop(Numero totale di chiamate:${GROUP_COUNT(call_count)})
exten => _31XX,n,Gotoif($[${GROUP_COUNT(call_count)}<2]?continue:BUSY)
exten => _31XX,n(continue),Noop()

exten => _31XX,n,GotoIf(${DB_EXISTS(deviazione/${EXTEN})}?:nodeviata)
exten => _31XX,n,Set(deviazione=${DB(deviazione/${EXTEN})})
exten => _31XX,n,Set(contesto=${DB(contesto/${EXTEN})})
exten => _31XX,n,Set(CALLERID(num)=${EXTEN})
exten => _31XX,n,Set(CALLERID(name)=${EXTEN})
exten => _31XX,n,Goto(${contesto},${deviazione},1)
exten => _31XX,n(nodeviata),Dial(PJSIP/${EXTEN},${TIMEOUT})
exten => _31XX,n,Goto(hangup_listener,s-${DIALSTATUS},1)

exten => _31XX,n(BUSY),Busy(10)

Okay, so using the group functionality. I would suggest providing console output so we can see exactly where the logic is executed and on what channels and when.

First CALL 3116 TO 3113

  • Executing [3113@internal:1] Set(“PJSIP/3116-000000d9”, “GROUP()=call_count”) in new stack
    – Executing [3113@internal:2] NoOp(“PJSIP/3116-000000d9”, “Numero totale di chiamate:1”) in new stack
    – Executing [3113@internal:3] GotoIf(“PJSIP/3116-000000d9”, “1?continue:BUSY”) in new stack
    – Goto (internal,3113,4)
    – Executing [3113@internal:4] NoOp(“PJSIP/3116-000000d9”, “”) in new stack
    – Executing [3113@internal:5] GotoIf(“PJSIP/3116-000000d9”, “0?:nodeviata”) in new stack
    – Goto (internal,3113,11)
    – Executing [3113@internal:11] Dial(“PJSIP/3116-000000d9”, “PJSIP/3113,60”) in new stack
    – Called PJSIP/3113
    – PJSIP/3113-000000da is ringing
    – PJSIP/3113-000000da answered PJSIP/3116-000000d9
    Channel PJSIP/3113-000000df joined ‘simple_bridge’ basic-bridge <777fe5a5-6767-43ca-a25e-1972bc72be6b>
    – Channel PJSIP/3116-000000de joined ‘simple_bridge’ basic-bridge <777fe5a5-6767-43ca-a25e-1972bc72be6b>

Transfer 3113 TO 3117

Started music on hold, class ‘default’, on channel ‘PJSIP/3116-000000de’
– Stopped music on hold on PJSIP/3116-000000de
– Channel PJSIP/3116-000000de left ‘simple_bridge’ basic-bridge <777fe5a5-6767-43ca-a25e-1972bc72be6b>
– Channel PJSIP/3113-000000df left ‘simple_bridge’ basic-bridge <777fe5a5-6767-43ca-a25e-1972bc72be6b>
– Executing [3117@operatori:1] GotoIf(“PJSIP/3116-000000de”, “0?:call”) in new stack
– Goto (operatori,3117,3)
– Executing [3117@operatori:3] Goto(“PJSIP/3116-000000de”, “internal,3117,1”) in new stack
– Goto (internal,3117,1)
– Executing [3117@internal:1] Set(“PJSIP/3116-000000de”, “GROUP()=call_count”) in new stack
– Executing [3117@internal:2] NoOp(“PJSIP/3116-000000de”, “Numero totale di chiamate:1”) in new stack
– Executing [3117@internal:3] GotoIf(“PJSIP/3116-000000de”, “1?continue:BUSY”) in new stack
– Goto (internal,3117,4)
– Executing [3117@internal:4] NoOp(“PJSIP/3116-000000de”, “”) in new stack
– Executing [3117@internal:5] GotoIf(“PJSIP/3116-000000de”, “0?:nodeviata”) in new stack
– Goto (internal,3117,11)
– Executing [3117@internal:11] Dial(“PJSIP/3116-000000de”, “PJSIP/3117,60”) in new stack
– Called PJSIP/3117
– PJSIP/3117-000000e0 is ringing
– PJSIP/3117-000000e0 answered PJSIP/3116-000000de
– Channel PJSIP/3117-000000e0 joined ‘simple_bridge’ basic-bridge <73c2e1ef-cd80-4bc1-bc99-f727c0df0f06>
– Channel PJSIP/3116-000000de joined ‘simple_bridge’ basic-bridge <73c2e1ef-cd80-4bc1-bc99-f727c0df0f06>

Call to trasferred 3115 TO 3113

Executing [3113@operatori:1] GotoIf(“PJSIP/3115-000000e7”, “0?:call”) in new stack
– Goto (operatori,3113,3)
– Executing [3113@operatori:3] Goto(“PJSIP/3115-000000e7”, “internal,3113,1”) in new stack
– Goto (internal,3113,1)
– Executing [3113@internal:1] Set(“PJSIP/3115-000000e7”, “GROUP()=call_count”) in new stack
– Executing [3113@internal:2] NoOp(“PJSIP/3115-000000e7”, “Numero totale di chiamate:2”) in new stack
– Executing [3113@internal:3] GotoIf(“PJSIP/3115-000000e7”, “0?continue:BUSY”) in new stack
– Goto (internal,3113,13)
– Executing [3113@internal:13] Busy(“PJSIP/3115-000000e7”, “10”) in new stack
== Spawn extension (internal, 3113, 13) exited non-zero on ‘PJSIP/3115-000000e7’

You have many different endpoints involved here, and your descriptions for each don’t include all the involved endpoints so it’s a bit confusing. It’s also snippets so the complete execution of the channels is not present.

I would say that there are still two channels in the group. One of them is for sure “PJSIP/3115-000000e7”. Another may be a PJSIP/3116 channel.

my problem comes from call-limit, if i set 1 to receive only 1 call, i can’t transfer already from asterisk version 1.8

i’d like to receive X call and transfer…in this case 1 incoming call!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.