Problem with transfering call

Hey, I’m a newbie here, hopefully someone can tell me where the issue is in my code.
The idea is the following :
Mister A initiates the call. Mister B answers and decides to transfer Mister A to Mister C.
Everything works fine until Mister C answers the phone.
Current problems :

  1. When Mister C answers, Mister A can still hear Mister B. So he can hear both Mister C and Mister B.
  2. If Mister B hangs up, then Mister A gets hung up too.

Can you help me find what needs to be changed to fix that ?

Here are the logs :

In black : Unrelevant info
In Orange : Number of Mister A
In Green : Number of Mister D (he missed the call of Mister A)
In Blue : Number of Mister B
In Yellow : Number of Mister C

Regarding my .conf files, here are the important parts (I removed the unimportant ones) :

in extensions.conf :

[macro-call_forward_geneve2] ;ARG1 = ge_ulaw ; ARG2 = peoplefone or peoplefone3

exten => s,1,Set(FEATUREMAP(atxfer)=*2)
exten => s,n,GoSub(CallAttempt,s,1(MisterDNumber,{ARG1},{ARG2},AppelTahsin))
exten => s,n,GotoIf(["{CALLFAIL}" = “1”]?att2:exit)
exten => s,n(att2),GoSub(CallAttempt,s,1(MisterBNumber,{ARG1},{ARG2},AppelSaber))

[CallAttempt] ; ARG1= number to call ; ARG2= area ; ARG3=channel ; ARG4= AppelSaber (#2) or AppelTahsin(#3)

exten => s,1,Set(__CALLFAIL=0)
exten => s,n,Set(__DYNAMIC_FEATURES={ARG4}) exten => s,n,Dial(SIP/{ARG1}@{ARG3},22,A({ARG2}),t)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-ANSWER,1,Return()
exten => s-NOANSWER,1,Goto(fail,1)
exten => s-CONGESTION,1,Goto(fail,1)
exten => s-CANCEL,1,Goto(fail,1)
exten => s-BUSY,1,Busy,Goto(fail,1)
exten => s-CHANUNAVAIL,1,Goto(fail,1)
exten => _s-.,1,Congestion
exten => s-,1,Congestion
exten => fail,1,Set(__CALLFAIL=1)
exten => fail,n,Return()

[macro-CallSaber] ; AppelSaber
exten => s,1,Set(SuperS=MisterCNumber)
exten => s,n,Dial(SIP/${SuperS}@directNyon,60)

in features.conf :
atxfernoanswertimeout = 30
atxferdropcall = yes
atxfercomplete = *2

atxfer => *2

AppelSaber =>#2,peer,Macro,CallSaber

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