Call transfer of asterisk

As ususal, we use blind transfer and attended transfer, and in asterisk, we also can do it.

1. please open the file features.conf, and change the related information you want, after we change it we need to input the command features reload in CLI to activate it.

[general]
atxfernoanswertimeout = 30    

; Timeout for answer on attended transfer default is 15 seconds, when we transfer the call to other extension or the number from outsider, we can set it longer.  
transferdigittimeout => 10     

; Number of seconds to wait between digits when transferring a call (default is 3 seconds), in order to make sure the call can be sent successfully, we can set it longer.

xfersound = beep                         ;  to indicate an attended transfer is complete
xferfailsound = beeperr            ; to indicate a failed transfer

[featuremap]
blindxfer => ##            

disconnect => 1               

atxfer => *2               

2. please open the file sip.conf, and input the three extension, here we need to input sip reload to activate it.

[John]
type=peer
host=dynamic
secret=123456
context=serverB
qualify=yes
nat=yes
directmedia=no
disallow=all
allow=ulaw
allow=alaw
dtmfmode=auto
insecure=invite
callcounter=yes

[grace](John)
secret=123456

[hello](John)
secret=123456

3. let us set the dial plan in the file extensions.conf like this, here we need to input dialplan reload to activate it. 

[serverB]

exten => 3001,1,Dial(SIP/grace,10,Tt)
exten => 3002,1,Dial(sip/hello)

 

About the blind transfer:

The extension John dials 3001, then the extension grace will ring, when John and grace are in one call, grace can dial ## and go on dialing 3002, the extension hello will ring, at this time, John is hearing the hold on music, and  then garce will hang up automatically, when hello picks up the call, hello and John will be in one call.

 

About attended transfer:

 The extension John dials 3001, then the extension grace will ring, when John and grace are in one call, grace can dial *2 and go on dialing 3002, the extension hello will ring, at this time, John is hearing the hold on music, if hello picks up the call, grace and hello will be in one call, and if hello wants to talk with John, grace can hang up directly, after that, John and hello will be in one call automatically.

If hello donot want to talk with John, grace can press 1, after that, hello will be hung up, and John and grace are in one call. 

 

No comments yet.

Leave a Reply