Announcement To Be Played For Attended Transfer Call

Home » Asterisk Users » Announcement To Be Played For Attended Transfer Call
Asterisk Users 4 Comments

Hello List,

I want to play an announcement for attended transfer calls. For example, “A” calls “B”, “B” answers the call and transfers (attended) to “C” – once transfer is complete “B” should hear an announcement saying “you call has been transferred”. Is there any configuration in asterisk to implement this behavior?

I have not used asterisk Transfer Dialplan application or feature.conf for configuring the transfer; however I am using SIP REFER from UA to request the transfer.

Regards,

Rajib

4 thoughts on - Announcement To Be Played For Attended Transfer Call

  • While B is talking to C, A is enjoying MOH. You could install a musicclass that starts with “Your are being…”.

    Playing an announcement like “Your call has been…” to A after C has accepted the call is probably not a good idea, because C has to wait until the the announcement has finished. In environments where callers are announced to C, C would typically not want to wait for A—believe me.

    jg

  • jg Sent: Tuesday, June 11, 2013 5:28 AM

    Playing an announcement like “Your call has been…” to A after C has accepted the call is probably not a good idea, because C has to wait until the the announcement has finished. In environments where callers are announced to C, C would typically not want to wait for A—believe me.

    **OP asked for an announcement to be played to B, not A.

    –Don

  • So, B transfers the call and after bridging to C, B should get an announcement.

    This is just an idea:
    See whether you can dispatch the termination of the call leg B-C by evaluating the DIALSTATUS variable. I am not sure whether you can see this inside the dialplan, but you should get the event via AMI. This is only the 1st part of the solution.

    A general solution would require a lot of things or may not be possible at all as you can transfer calls not only via Asterisk using DTMF
    signalling, but also the SIP phones themselves might be capable of transferring calls, thereby circumventing Asterisk.

    jg

  • Since Dial() might not return, DIALSTATUS cannot be used.

    I checked the various AMI events and you’ll see a bunch of Newchannel, Hangup, Bridge, Unlink, and Masquerade events when transferring calls. You could use this to originate a call with the announcement for B. This is ugly, but if B’s phone has intercom capabilities, this might be a quick and dirty solution that works.

    On the other hand, if B does the transfer and knows about the state of the transfer, why should there be an extra announcement?

    jg