[asterisk-users] Configuring asterisk to revert call back to forwarder if exten is busy

James Mutuku jnmutuku at gmail.com
Mon Mar 9 00:09:25 CDT 2009


I manged to get something working but It's only working when a 
grandstream ip phones is the one tranfering calls. With linksys IP 
phones I get a busy yone

I edited the extensions.conf

last lines of [macro-exten-vm]:

; Extensions with no Voicemail box reporting BUSY come here
exten => s-BUSY,1,NoOp(Extension is reporting BUSY and not passing to Voicemail)
; This should recover failed transfers.
exten => s-BUSY,n,GotoIf($[${LEN(${BLINDTRANSFER})} > 0]?custom-MANAGE_LOST_TRANSFERS,s,1)
exten => s-BUSY,n,Playtones(busy)
exten => s-BUSY,n,Busy(20)

; Anything but BUSY comes here
; This should recover failed transfers.
exten => _s-.,1,GotoIf($[${LEN(${BLINDTRANSFER})} > 0]?custom-MANAGE_LOST_TRANSFERS,s,1)
exten => _s-.,n,Playtones(congestion)
exten => _s-.,n,Congestion(10)

and added a new context on  extensions_custom.conf

[custom-MANAGE_LOST_TRANSFERS]
exten => s,1,Answer()
exten => s,n,Playback(please-wait-bouncing-back)
; Supposing there are 4-digit extensions here - no error checking
exten => s,n,Set(RETURN_EXT=${BLINDTRANSFER:4:3})
exten => s,n,Goto(from-internal,${RETURN_EXT},1)
exten => s,n,HangUp()

What could be the problem with linksys phones?
_





Paul Hales wrote:
> Can I assume that you want this only for blind transfers?
>
> I have done this previously, but I lost my copy of the work (and it was
> a proof of concept only)
>
> It involved the ${BLINDTRANSFER} variable, which catches the number that
> made the blind transfer and making macro-stdexten (or your equivalent)
> dial that variable in the case of the dial status being treated as BUSY.
>
> To get a 'busy' will involve single line phones, or disabling call
> waiting on the phone receiving the call.
>
> regards,
>
> PaulH
>
>
> James Mutuku wrote:
>   
>> Hellos,
>>
>> I want to configure asterisk so that if exten A transfers a call to
>> exten B, and B is either busy or the call is not answered, the call
>> returns back to A. Is this possible?
>>
>> Please help
>> James
>>
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>     
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090309/05378dce/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jnmutuku.vcf
Type: text/x-vcard
Size: 331 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090309/05378dce/attachment.vcf 


More information about the asterisk-users mailing list