Best Way To Know A Call Is Being Transfered
Hello
using Asterisk 1.8.32.3.
What is the best way of knowing a call is being transfered (attended and unattended) ? And also knowing whereto (sip user) the call is being transfered and who is the transferer ?
So I can log this information.
Kind regards.
J.
3 thoughts on - Best Way To Know A Call Is Being Transfered
Well, once you’ve upgraded to a version of Asterisk which didn’t become “EOL – DO NOT USE – NO FIXES” (!) almost 2 years ago, then you might be able use logging which was introduced 5 years ago in Asterisk
11. Although the “transfers” section in the info below says it “can be a little tricky…”. Read on!
https://wiki.asterisk.org/wiki/display/AST/Call+Identifier+Logging
———————————-
Hello
thank you for your answer.
However this does not help me to know when a call is being transfered.
My question is simple : if A calls B, and then B tranfers (unattened or attended) the call to C, how can I know this happens ?? I see it happening on the CLI, but how can I “catch” this, for example in the dialplan logic ? Or through AMI perhaps ?
Kind regards.
J.
Op 29-05-17 om 10:16 schreef Jonathan H:
Unfortunately, the transfer AMI events were introduced just in Asterisk13.
But, you can set the __TRANSFER_CONTEXT variable and probably the
__GOTO_ON_BLINDXFR (this one I never used) to control the transfer in your own way.
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables
Regards, Marcelo H. Terres
IM: mhterres@jabber.mundoopensource.com.br https://www.mundoopensource.com.br https://twitter.com/mhterres https://linkedin.com/in/marceloterres