Ticket #5078 (new Feature Requests)

Opened 2 years ago

Last modified 1 year ago

Diversion headers for internal calls

Reported by: black187 Assigned to: p_lindheimer
Priority: minor Milestone: 2.11
Component: Core Version: 2.9-branch
Keywords: SIP Diversion headers Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Hi,

Is it possible to add Diversion headers for internal calls.

* A calls B -> B transfers to C -> C can see where the call was transfered * A calls B -> B has CFU to C -> C can see that the call was forwarded ...

This was also mentioned in this ticket: http://www.freepbx.org/v2/ticket/4539

Now it's only possible for outbound calls, but it would be great, to have this for internal SIP users also.

Change History

04/18/11 14:55:17 changed by p_lindheimer

  • milestone changed from 2.9 to 2.10.

02/16/12 14:44:41 changed by p_lindheimer

  • milestone changed from 2.10 to 2.11.

Are there phones that will display the Diversion information? If so, can you elaborate so we can check this out. If it's possible to use Diversion information on local calls and display it somewhere then it would be worth looking into doing this. Otherwise it's not clear how this would be used.

02/23/12 03:29:56 changed by black187

Hi,

Phones that i know, which will display diversion headers are Aastra and Polycom.

I've tested with Aastra, and it needs diversion header like this (for call transfer):

extensions_custom.conf:

[custom-test_transfer]
exten => _X.,1,NOOP(entering custom-test_transfer)
exten => _X.,n,Set(NAME_VIA="${DB(AMPUSER/${DEXTEN}/cidname)}")
exten => _X.,n,SIPAddHeader(Diversion: ${NAME_VIA} <sip:${DEXTEN}\@${TFTP_IP}\:5060\;user=phone>\;reason=unconditional\;privacy=off\;counter=1)
exten => _X.,n,set(extLeng=${LEN(${EXTEN})})
exten => _X.,n,noop(the extenlength is ${extLeng})
exten => _X.,n,dial(local/${EXTEN}@from-internal,${CTBLING_TIME})
exten => _X.,n,noop(Dialstatus je: ${DIALSTATUS})
exten => _X.,n,Gotoif($["${DIALSTATUS}" = "ANSWER"]?hangup,callback)
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()

"TFTP_IP" variable is the IP address of the interface from where Aastra gets its SIP messages from.