# Asterisk cuts connection before call transfer takes place

**URL:** <https://community.asterisk.org/t/asterisk-cuts-connection-before-call-transfer-takes-place/16913>\
**Category:** Asterisk Support\
**Created:** [September 23, 2007, 9:47am UTC](https://community.asterisk.org/t/asterisk-cuts-connection-before-call-transfer-takes-place/16913 "2007-09-23T09:47:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel11](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Daniel11](https://community.asterisk.org/u/Daniel11)\
**Post date:** [September 23, 2007, 9:47am UTC](https://community.asterisk.org/t/asterisk-cuts-connection-before-call-transfer-takes-place/16913/1 "2007-09-23T09:47:42Z")

</div>

Hi there

I have a traditional PBX (Alcatel 4100) which I want to integrate with Asterisk. One of the Alcatel analogue extensions (nr 299) is connected to an Atcom AT-100P FXO card (see \* below). An incoming rule routes calls coming in on this extension (nr 299) to a SIP phone (Atcom AT-530P) nr 108. From this phone (SIP nr 108) I want the person answering to be able to transfer/forward calls to other extensions (eg 202) on the Alcatel PBX.

I use the following (for testing) in extensions.conf in the default section:  
exten =\> 23,1,Flash()  
exten =\> 23,2,Wait(1)  
exten =\> 23,3,SendDTMF(202,550)  
exten =\> 23,4,Wait(4)

What happens is:

1. On the SIP phone (nr 108) the user presses FDW.
2. The SIP user then types in 23 and presses send
3. The SIP phone (nr. 108) says “Hangup” (i.e. disconnects)
4. The original caller gets a busy tone
5. After about 3 seconds the Alcatel PABX does put the call through to extension 202 (when that call is answer using the analogue phone the person also has a busy tone).

From this I can deduce that the flash and DTMF does work. My question is how can I prevent the link from being disconnected as explained in step 4 above?

- The AT-100P supports FXS Loopstart and “Kewlstart” (Loopstart with far end disconnection supervision). It can detect ringing and remote hangup and fully supports Pseudo-TDM bridging through Zaptel.

I would appreciate any help on this

Regards

Daniel

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [September 23, 2007, 10:21am UTC](https://community.asterisk.org/t/asterisk-cuts-connection-before-call-transfer-takes-place/16913/2 "2007-09-23T10:21:25Z")

</div>

Hi

You need to post the cli output of the call,  
Also I would remove the waits from the dialplan

Ian

---

<div class="post-metadata">

**Author:** ![Daniel11](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Daniel11](https://community.asterisk.org/u/Daniel11)\
**Post date:** [September 27, 2007, 5:22pm UTC](https://community.asterisk.org/t/asterisk-cuts-connection-before-call-transfer-takes-place/16913/3 "2007-09-27T17:22:50Z")

</div>

Hi

Thanks for the reply. I have removed the waits but it still does not work.

The CLI output is as follows.

Really destroying SIP dialog ‘76e99eb13ca6b61b2c9730d27c2c7e10@192.168.0.105’ Method: NOTIFY  
– Starting simple switch on ‘Zap/1-1’  
[Sep 27 19:18:38] NOTICE[22695]: chan\_zap.c:6364 ss\_thread: Got event 18 (Ring Begin)…  
[Sep 27 19:18:38] NOTICE[22695]: chan\_zap.c:6364 ss\_thread: Got event 2 (Ring/Answered)…  
[Sep 27 19:18:40] NOTICE[22695]: chan\_zap.c:6364 ss\_thread: Got event 18 (Ring Begin)…  
– Executing [s@DID\_trunk\_1:1] Goto(“Zap/1-1”, “default|108|1”) in new stack  
– Goto (default,108,1)  
– Executing [108@default:1] Macro(“Zap/1-1”, “stdexten|108|SIP/108”) in new stack  
– Executing [s@macro-stdexten:1] Dial(“Zap/1-1”, “SIP/108|20”) in new stack  
– Called 108  
– SIP/108-08625a00 is ringing  
– SIP/108-08625a00 answered Zap/1-1  
– Started music on hold, class ‘default’, on Zap/1-1  
– Stopped music on hold on Zap/1-1  
== Spawn extension (numberplan-custom-2, 42, 0) exited non-zero on ‘Zap/1-1’  
– Executing [42@numberplan-custom-2:1] Flash(“Zap/1-1”, “()”) in new stack  
Really destroying SIP dialog ‘2144430753-2983417694@192.168.1.179’ Method: REGISTER  
– Flashed channel Zap/1-1  
– Executing [42@numberplan-custom-2:2] SendDTMF(“Zap/1-1”, “201”) in new stack  
== Auto fallthrough, channel ‘Zap/1-1’ status is ‘ANSWER’  
– Hungup 'Zap/1-1’  
localhost\*CLI\>

This is with a verbosity of 7.

Regards

Daniel
