Hello...
I need to make Diversion in Follow Me application - scripts/app/fllow_me/index.lua with correct origination_callee_id_name and origination_callee_id_number like call-forward-all in 'Dialplan Manager'.
So origination_callee_id_name must be equal outbound_caller_id_name of extension with 'Follow Me' enabled and origination_callee_id_number must be equal outbound_caller_id_number of extension with 'Follow Me' enabled. And I need to set Diversion in SIP header - sip_h_Diversion=<sip:${caller_destination}@${external_sip_ip}:5060>;reason=unconditional.
follow_me app makes new call to destination in 'Applications -> Follow Me -> Destinations' :
bridge({toll_allow=,accountcode=domain.com,origination_caller_id_name='INBOUND_NUMBER',origination_caller_id_number=INBOUND_NUMBER,sip_invite_domain=domain.com,domain_uuid=d28fd821-d412-49a8-a18c-fe1548b42749,call_direction=inbound,confirm=false,originate_timeout=30,originate_delay_start=0}loopback/FIRST_FOLLOW_ME_NUMBER:_:{sip_invite_domain=office.voip,call_direction=inbound,confirm=false,originate_timeout=30,originate_delay_start=30000,dialed_extension=EXT,extension_uuid=3e4a2c40-a23a-4e61-abe9-90e8fe9f1d6a}user/EXT@office.voip)
If I correctly understand this bridge makes new call from FusionPBX with number CallerID=INBOUND_NUMBER and CalledID=FIRST_FOLLOW_ME_NUMBER without Diversion.
To make Diversion work I need correct origination_callee_id_name and origination_callee_id_number in app_data and set SIP header Diversion - <sip:${caller_destination}@${external_sip_ip}:5060>;reason=unconditional.
Am I right ?
I need to make Diversion in Follow Me application - scripts/app/fllow_me/index.lua with correct origination_callee_id_name and origination_callee_id_number like call-forward-all in 'Dialplan Manager'.
So origination_callee_id_name must be equal outbound_caller_id_name of extension with 'Follow Me' enabled and origination_callee_id_number must be equal outbound_caller_id_number of extension with 'Follow Me' enabled. And I need to set Diversion in SIP header - sip_h_Diversion=<sip:${caller_destination}@${external_sip_ip}:5060>;reason=unconditional.
follow_me app makes new call to destination in 'Applications -> Follow Me -> Destinations' :
bridge({toll_allow=,accountcode=domain.com,origination_caller_id_name='INBOUND_NUMBER',origination_caller_id_number=INBOUND_NUMBER,sip_invite_domain=domain.com,domain_uuid=d28fd821-d412-49a8-a18c-fe1548b42749,call_direction=inbound,confirm=false,originate_timeout=30,originate_delay_start=0}loopback/FIRST_FOLLOW_ME_NUMBER:_:{sip_invite_domain=office.voip,call_direction=inbound,confirm=false,originate_timeout=30,originate_delay_start=30000,dialed_extension=EXT,extension_uuid=3e4a2c40-a23a-4e61-abe9-90e8fe9f1d6a}user/EXT@office.voip)
If I correctly understand this bridge makes new call from FusionPBX with number CallerID=INBOUND_NUMBER and CalledID=FIRST_FOLLOW_ME_NUMBER without Diversion.
To make Diversion work I need correct origination_callee_id_name and origination_callee_id_number in app_data and set SIP header Diversion - <sip:${caller_destination}@${external_sip_ip}:5060>;reason=unconditional.
Am I right ?