[Asterisk-Users] Attended transfer and group problem

Domenico Lanteri lanteri at trmz.org
Mon Nov 14 03:37:05 MST 2005


I have a problem with group and attended transfer.
I have tested below example dialplan with asterisk-1.2.0-beta1,
asterisk-1.2.0-rc1 and and astesik-HEAD on 11/14/2005.

I have simple test dialplan like: 

[default]
exten => 210,1,Macro(stdexten,${EXTEN},SIP,test1)
exten => 211,1,Macro(stdexten,${EXTEN},SIP,test2)
exten => 212,1,Macro(stdexten,${EXTEN},SIP,test3)

[macro-stdexten]
exten => s,1,Set(OUTBOUND_GROUP=${ARG1})
exten => s,n,Set(GROUP=${CALLERIDNUM})
exten => s,n,Dial(${ARG2}/${ARG3}||t)

If i dial 211 from 210, 211 answer and make attended trasfer to 212, 212
answer and 211 hangup, cli show: 

Monitor*CLI> set verbose 4 
Verbosity is at least 4
    -- Executing Macro("SIP/test1-2f4f", "stdexten|211|SIP|test2") in new
stack
    -- Executing Set("SIP/test1-2f4f", "OUTBOUND_GROUP=211") in new stack
    -- Executing Set("SIP/test1-2f4f", "GROUP=210") in new stack
    -- Executing NoOp("SIP/test1-2f4f", "EXTEN: -211-  CALLERIDNUM: -210-")
in new stack
    -- Executing NoOp("SIP/test1-2f4f", "------SIP/test1-2f4f--------") in
new stack
    -- Executing Dial("SIP/test1-2f4f", "SIP/test2||t") in new stack
    -- Called test2
    -- SIP/test2-c1b6 is ringing
    -- SIP/test2-c1b6 answered SIP/test1-2f4f
    -- Attempting native bridge of SIP/test1-2f4f and SIP/test2-c1b6
    -- Attempting native bridge of SIP/test1-2f4f and SIP/test2-c1b6
    -- Started music on hold, class 'default', on channel 'SIP/test1-2f4f'
    -- Playing 'pbx-transfer' (language 'it')
    -- Executing Macro("Local/212 at default-8f24,2", "stdexten|212|SIP|test3")
in new stack
    -- Executing Set("Local/212 at default-8f24,2", "OUTBOUND_GROUP=212") in
new stack
    -- Executing Set("Local/212 at default-8f24,2", "GROUP=211") in new stack
    -- Executing NoOp("Local/212 at default-8f24,2", "EXTEN: -212-
CALLERIDNUM: -211-") in new stack
    -- Executing NoOp("Local/212 at default-8f24,2",
"------Local/212 at default-8f24,2--------") in new stack
    -- Executing Dial("Local/212 at default-8f24,2", "SIP/test3||t") in new
stack
    -- Called test3
    -- SIP/test3-61de is ringing
    -- Local/212 at default-8f24,1 is ringing
    -- SIP/test3-61de answered Local/212 at default-8f24,2
Nov 14 12:01:51 NOTICE[6186]: res_features.c:1124
ast_feature_request_and_dial: Don't know what to do about control frame: -1
    -- Stopped music on hold on SIP/test1-2f4f
    -- Playing 'beep' (language 'en')
  == Spawn extension (macro-stdexten, s, 5) exited non-zero on
'Transfered/SIP/test1-2f4f<ZOMBIE>' in macro 'stdexten'
  == Spawn extension (default, 211, 1) exited non-zero on
'Transfered/SIP/test1-2f4f<ZOMBIE>'
Monitor*CLI> group show channels 
Channel                    Group                 Category            
SIP/test1-2f4f             210                   (default)           
SIP/test3-61de             212                   (default)           
Local/212 at default-8f24,2   211                   (default)           
7 active channels


Channel Local/212 belong to group 211 but the 211 phone is hangup.
Anyone as any idea ?
Thank you
Lanteri Domenico.





More information about the asterisk-users mailing list