Goto_on_blindxfr

Saqqara

Member
Joined
Aug 11, 2008
Messages
57
Reaction score
0
Asterisk Source Version : 1.4.21.2

Something of a programming question: I can't seem to get the GOTO_ON_BLINDXFR variable to have any effect in a custom extension and wonder if it was abandoned prior to the version of Asterisk I'm running.

Its usage may be reasonably obscure. I've seen someone with my problem posting all over asterisk.org but nobody has acknowledged him, so I figured I'd try a different venue.
 
I found "__Transfer_context" on VOIP info. I used it like this to retrieve calls that were blind transferred and not answered.

Don't know if this will help you or not, but here tiz.

[from-pstn-custom]
exten => _x.,1,set(__TRANSFER_CONTEXT=custom-test_transfer|${EXTEN}|1)

[custom-test_transfer]
exten => _X.,1,NOOP(entering custom-test_transfer)
exten => _X.,n,set(timeoutd=10) ; set timeout in seconds
exten => _X.,n,set(extLeng=${LEN(${EXTEN})})
exten => _X.,n,noop(the extenlength is ${extLeng})
exten => _x.,n,dial(local/${EXTEN}@from-internal,${timeoutd})
exten => _X.,n,Gotoif($["${DIALSTATUS}" = "ANSWER"]?hangup,callback)
exten => _X.,n,Set(CALLERID(name)=RB:${CALLERID(name)})
exten => _X.,n(callback),dial(local/${BLINDTRANSFER:4:${extLeng}}@from-internal)
exten => _X.,n(hangup),hangup()
exten => _*X.,1,dial(local/${EXTEN}@from-internal,15)
exten => _*X.,n,hangup()
 
Progress!

What I was attempting to do is hotwire the blind transfer feature so that any time the access code was entered, it would go directly to 1234 without any input. And you have me much further along that path, thank you:

[from-pstn-custom]
exten => _x.,1,set(__TRANSFER_CONTEXT=custom-test_transfer)

[custom-test_transfer]
exten => _!,1,dial(local/1234@from-internal)


Now after the pbx-transfer message, there is a brief dialtone and if nothing is entered it goes to 1234. Or if anything else is entered it goes to 1234. The only thing that doesn't get the call to 1234 is if the transferrer hangs up during the dialtone, and doesn't wait for a disconnect. Unfortunately that will cause problems.

Still, forward progress feels great! And I don't know if what I'm trying is possible, or if GOTO_ON_BLINDXFR would work any differently. Now I also have a little sign of life out of that variable, too; I'm currently trying to learn what it does by process of elimination.

Thanks!
 
Aha! I figured out my fundamental misunderstanding.

GOTO_ON_BLINDXFR sends the TRANSFERER someplace after the transfer, not the TRANSFEREE. The documentation on Voip-info is sparse: but correct in this regard.

Still useful for me, and working, now that I understand what it does.

TRANSFER_CONTEXT is much closer to what I was after though, so thanks again.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top