Search

Wednesday, October 19, 2011

Blind Transfer and Ring back in Elastix

The followings apply to Elastix 2.0.0-36 &  Asterisk 1.6.2.10 on CentOS release 5.5.

In Elastix, we can perform blind transfer and ring back us if the transferee does not answer.  Note that here assumes you are transferring call using Asterisk feature, not the IP phone's own transfer function.  

Firstly, we have to setup a TRANSFER_CONTEXT.  Dialplan execution will jump to here on transfer.

/etc/asterisk/globals_custom.conf
TRANSFER_CONTEXT = blindxfer_ringback

Next, we make use of the BLINDTRANSFER variable to ring back in the context [blindxfer_ringback]

/etc/asterisk/extensions_custom.conf
 
[blindxfer_ringback]
; the destination ext should not have vm enabled
exten => _X.,1,NOOP(${BLINDTRANSFER})
exten => _X.,n,set(timeoutd=15) ; set timeout in seconds to dial the transferee
exten => _X.,n,set(extLeng=${LEN(${EXTEN})})
exten => _x.,n,dial(local/${EXTEN}@from-internal,${timeoutd})
exten => _X.,n,Gotoif($["${DIALSTATUS}" = "ANSWER"]?hangup:callback)
; strip the 'SIP/' and ring back
exten => _X.,n(callback),dial(local/${BLINDTRANSFER:4:${extLeng}}@from-internal,,tr)
exten => _X.,n(hangup),hangup()

How does it work
  1. During a conversation, when you want to transfer caller, you press '##' followed by the transferee extension and '#'.
  2. You can hangup your phone.
  3. The caller now hears music while being connected to the transferee.
  4. If the transferee does not answer, Asterisk will ring back you.
Asterisk feature
The '##' is the key sequence to initiate blind transfer in Asterisk.  You can verify the actual sequence defined in your Elastix.

  1. PBX>PBX Configuration>Feature Codes
  2. Or you can check it in CLI.
*CLI> features show
Builtin Feature           Default Current
---------------           ------- -------
Pickup                    *8      *8
Blind Transfer            #       ##



11 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Yes. Thanks for spotting the typo. After correcting it, they work for you now?

    ReplyDelete
  4. hi, pls check that /etc/asterisk/globals_custom.conf
    TRANSFER_CONTEXT = blindxfer_ringback is defined. Also, your asterisk log could help to show where it goes wrong.

    ReplyDelete
  5. hi, in CLI> dialplan show blindxfer_ringback. It should show what extensions will land in this context.

    ReplyDelete
  6. Hi , Thank you . It work great but only one small issu. My setup is in french but
    whit your code , when a transfer call on vm , the voice switch in English.
    My phone extension is 2XX and voicemail is 3xx . do you have an idea ?

    ReplyDelete
  7. http://bantalsilikon01.blogspot.com/2014/10/perumahan-baru-di-tangerang-graha-raya.html
    http://marinirseo.blogspot.com/2014/10/perumahan-baru-di-tangerang-graha-raya.html
    http://kopiluwakliar01.blogspot.com/2014/10/perumahan-baru-di-tangerang-graha-raya.html
    http://marinir-seo.blogspot.com/2014/10/marinir-seo.html
    http://bantalsilikon01.blogspot.com/
    http://bantalsilikon01.blogspot.com/2014/11/bantal-silikon.html
    http://bantalsilikon01.blogspot.com/2014/10/rekomendasi-untuk-cloud-dedicated.html

    http://asdf-14.blogspot.com/2014/10/hhh.html
    http://vvtiin.blogspot.com/2014/10/iii.html
    http://dfes12.blogspot.com/2014/10/rrr.html
    http://jkt-49.blogspot.com/2014/10/ooo.html
    http://seo-aaa.blogspot.com/2014/10/lll.html
    http://agen-seo16.blogspot.com/2014/10/fff.html
    http://agen-seo19.blogspot.com/2014/10/ccc.html
    http://agen-seo20.blogspot.com/2014/10/bbb.html
    http://bumbu-pecel01.blogspot.com/2014/10/xxx.html
    http://marinirseo17.blogspot.com/2014/10/ddd.html
    http://bumbupecel16.blogspot.com/2014/10/eee.html
    http://bumbupecel15.blogspot.com/2014/10/ggg.html
    http://marinirseo14.blogspot.com/2014/10/hhh.html
    http://marinirseo12.blogspot.com/2014/10/jjj.html
    http://vvty-ine.blogspot.com/2014/10/nnn.html
    http://give-a-power.blogspot.com/2014/10/ooo.html
    http://bumbupecel-12.blogspot.com/2014/10/ppp.html
    http://guru-seo-praktisi-123.blogspot.com/2014/10/rrr.html
    http://kopiluwakmalang11.blogspot.com/2014/10/ttt.html
    http://seo-malang-19.blogspot.com/2014/10/bbb.html
    http://bantalasdf.blogspot.com/2014/10/aaa.html
    http://blog-seo-konsultasi10.blogspot.com/2014/10/marinir-seo-abc.html

    ReplyDelete
  8. I just know about Asterisk. Thanks for sharing ....

    Regards too from Tangki Fiberglass and jual septic tank

    ReplyDelete
  9. This was very useful, I have been trying to figure out how to help with lost transfers (especially since my company is used to more traditional PBX in Asia).

    Appreciate your blog, the info regarding utf-8 was also quite helpful. Keep it up!

    ReplyDelete