[Freeswitch-users] Event socket outbound for attended atransfer

Marcin Gozdalik gozdal at gmail.com
Thu Mar 15 18:48:08 MSK 2012


Hi

I am using outbound event socket connection in dialplan using

<action application="socket" data="esl:8022 async full"/>.

The scenario is like this:

1. Call from PSTN to FS (leg A) with socket application in dialplan as above
2. FS bridges the call to endpoint (leg B)
3. Endpoint picks up the call (there is a call no 1 established with legs
A-B)
4. Endpoint holds call no 1
5. Endpoint invites somebody via FS (leg C) with socket application in
dialplan as above
6. FS invites PSTN gateway (leg D)
7. D picks up the call (not there is a call no 2 established with legs C-D)
8. Endpoint makes attended transfer between calls no 1 and no 2
9. A speaks with D, call no. 2 is ended, call no. 1 is modified to include
legs A and D

My event receiver (esl:8022) receives two connections - one for each call.
However the second socket connection ends as soon as Endpoint does a
transfer (point no 8).

This doesn't happen when Endpoint does a blind transfer - both event
connections last until A and D are disconnected (in blind transfer scenario
there is no leg C, Endpoint sends REFER to D in point 5 but it creates
another socket connection).

Is there any method to keep the event connection alive until A and D are
connected with attended transfer? I have tried "myevents", "events all
plain" and "linger" but it doesn't help - second event connection is closed
as soon as connection in transferred.

-- 
Marcin Gozdalik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120315/65eb7e67/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list