Ticket #2740 (closed Feature Requests: duplicate)

Opened 9 months ago

Last modified 5 months ago

Blind transfer to a dead extention results in call being dropped and not passed back to ext that made blind transfer

Reported by: kgarrison Assigned to: p_lindheimer
Priority: minor Milestone: 2.5
Component: Core Version: 2.4-branch
Keywords: Cc:
Confirmation: Need Feedback SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description (Last modified by p_lindheimer)

From trixbox Bug Tracker:

Fix;

Modify 'extensions.conf', section '[macro-exten-vm]';

[macro-exten-vm]
exten => s,1,Macro(user-callerid)

exten => s,n,Set(FROMCONTEXT=exten-vm)
exten => s,n,Set(VMBOX=${ARG1})
exten => s,n,Set(EXTTOCALL=${ARG2})
exten => s,n,Set(CFUEXT=${DB(CFU/${EXTTOCALL})})
exten => s,n,Set(CFBEXT=${DB(CFB/${EXTTOCALL})})
exten => s,n,Set(RT=${IF($[$["${VMBOX}"!="novm"] | $["foo${CFUEXT}"!="foo"]]?${RINGTIMER}:"")})
exten => s,n,Macro(record-enable,${EXTTOCALL},IN)

exten => s,n,Macro(dial,${RT},${DIAL_OPTIONS},${EXTTOCALL})
exten => s,n,Set(SV_DIALSTATUS=${DIALSTATUS})
exten => s,n,GosubIf($[$["${SV_DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer
exten => s,n,GosubIf($[$["${SV_DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy
exten => s,n,Set(DIALSTATUS=${SV_DIALSTATUS})
exten => s,n,NoOp(Voicemail is '${VMBOX}')
exten => s,n,GotoIf($["${VMBOX}" = "novm"]?s-${DIALSTATUS},1) ; no voicemail in use for this extension
exten => s,n,NoOp(Sending to Voicemail box ${EXTTOCALL})
exten => s,n,Macro(vm,${VMBOX},${DIALSTATUS})

; Try the Call Forward on No Answer / Unavailable number
exten => docfu,1,Set(RTCFU=${IF($["${VMBOX}"!="novm"]?${RINGTIMER}:"")})
exten => docfu,n,Dial(Local/${CFUEXT}@from-internal/n,${RTCFU},${DIAL_OPTIONS})
exten => docfu,n,Return

; Try the Call Forward on Busy number
exten => docfb,1,Set(RTCFB=${IF($["${VMBOX}"!="novm"]?${RINGTIMER}:"")})
exten => docfb,n,Dial(Local/${CFBEXT}@from-internal/n,${RTCFB},${DIAL_OPTIONS})
exten => docfb,n,Return

; Extensions with no Voicemail box reporting BUSY come here
exten => s-BUSY,1,NoOp(Extension is reporting BUSY and not passing to Voicemail)
exten => s-BUSY,n,GotoIf($[${LEN(${BLINDTRANSFER})} > 0]?blindtr,1) ; check if blindtransfer
exten => s-BUSY,n,Playtones(busy)
exten => s-BUSY,n,Busy(20)

; Anything but BUSY comes here
exten => _s-.,1,NoOp(Extension is reporting UNAVAILABLE and not passing to Voicemail)
exten => _s-.,n,GotoIf($[${LEN(${BLINDTRANSFER})} > 0]?blindtr,1) ; check if blindtransfer
exten => _s-.,n,Playtones(congestion)
exten => _s-.,n,Congestion(10)

exten => blindtr,1,NoOp(CallingBack ${BLINDTRANSFER})
exten => blindtr,n,Set(blindtrdevice=${CUT(BLINDTRANSFER,/,2-)})
exten => blindtr,n,Set(blindtrext=${CUT(BLINDTRDEVICE,,1)})
exten => blindtr,n,Wait(1)
exten => blindtr,n,Ringing
exten => blindtr,n,Wait(1)
exten => blindtr,n,NoOp(CallingBack ${BLINDTREXT})
exten => blindtr,n,Macro(dial,${RT},${DIAL_OPTIONS},${BLINDTREXT})

Change History

03/14/08 09:21:01 changed by p_lindheimer

  • confirmation changed from Unreviewed to Need Feedback.
  • description changed.
  • milestone changed from Cut Line to 3.0.

Kerry, these bug reports with suggested solutions are very appreciated. As a representative of another project, I'm sure you can understand the value of submitting your suggested bug fixes as a patch file. This is very important for multiple reasons:

  1. If people want to apply your changes and there are changes on versions that they either have modified or we have modified, they can easily be applied
  2. It lets us quickly examine the changes without having to study them against the original side by side and try to find out what was added.

and attaching it as a file.patch format invokes the visualization tools in trac so it is VERY easy to see the differences.

You can easily create a patch file as follows:

# diff -ubB original_file changed_file > file.patch

which can then be attached. Can you do that for the attached suggestion? Thanks.

03/15/08 16:55:53 changed by francesco_r

This is an old issue, i wrote this patch long time ago. See #1972

05/30/08 11:40:36 changed by p_lindheimer

  • type changed from Bugs to Feature Requests.

07/01/08 16:58:27 changed by lazytt

closing as a dup of 1972. Please feel free to reopen if its not the same thing

07/02/08 13:51:54 changed by lazytt

  • status changed from new to closed.
  • resolution set to duplicate.
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads