GOOD NEWS Announce Callee with RingGroup

@Gregorywest This code in the extensions_custom.conf announces the caller's name. Modify for your page group extension and voicemail extension.

Code:
; Park incoming call and announce over Page or Intercom
[custom-announce-call]
exten => s,1,Answer()
exten => s,n,Playtones(ring)
exten => s,n,Wait(4)
exten => s,n,playback(thank_you_calling&silence/1&followme/pls-hold-while-try)
exten => s,n,Set(countum=1)
exten => s,n,System(/usr/bin/flite "${CALLERID(name)} " -o /var/lib/asterisk/sounds/en/custom/temp.wav)
;exten => s,n,System(/usr/bin/flite "${CONNECTEDLINE(name)} " -o //var/lib/asterisk/sounds/en/custom/called.wav)
exten => s,n(resume),parkandannounce(,t(16)c(custom-announce-call,s,continue),silence/1:call-waiting:from:custom/temp:on:PARKED,LOCAL/296@from-internal)
exten => s,n(continue),Set(countum=$[${countum} + 1])
exten => s,n,gotoif($[${countum} <= 3 ]?thanks:vmail)
exten => s,n(thanks),Playback(queue-thankyou)
exten => s,n,GoTo(resume)
exten => s,n(vmail),Voicemail(210@default,u)
exten => s,n,Hangup()
;=======end=======================
 
@Gregorywest This code in the extensions_custom.conf announces the caller's name. Modify for your page group extension and voicemail extension.

Code:
; Park incoming call and announce over Page or Intercom
[custom-announce-call]
exten => s,1,Answer()
exten => s,n,Playtones(ring)
exten => s,n,Wait(4)
exten => s,n,playback(thank_you_calling&silence/1&followme/pls-hold-while-try)
exten => s,n,Set(countum=1)
exten => s,n,System(/usr/bin/flite "${CALLERID(name)} " -o /var/lib/asterisk/sounds/en/custom/temp.wav)
;exten => s,n,System(/usr/bin/flite "${CONNECTEDLINE(name)} " -o //var/lib/asterisk/sounds/en/custom/called.wav)
exten => s,n(resume),parkandannounce(,t(16)c(custom-announce-call,s,continue),silence/1:call-waiting:from:custom/temp:on:PARKED,LOCAL/296@from-internal)
exten => s,n(continue),Set(countum=$[${countum} + 1])
exten => s,n,gotoif($[${countum} <= 3 ]?thanks:vmail)
exten => s,n(thanks),Playback(queue-thankyou)
exten => s,n,GoTo(resume)
exten => s,n(vmail),Voicemail(210@default,u)
exten => s,n,Hangup()
;=======end=======================
not sure how to do that? Everything is working now, just announcing the wrong name.
 
not sure how to do that? Everything is working now, just announcing the wrong name.
The same way you did it originally. Look at the code above and modify whatever you have done. The eighth line from the top has the flite command to generate a file with the caller's name in it.
 
The way the code worked originally is the trunck went to the script directly. This was 'close but no cigar'. What was needed, and now working is from the trunk, ring the desk phone, if no one answeres then park & page. Problem is, now the announcement is the name of the callee, i need it to be the caller
 
Line 8 generates that name in a sound file. Modify your code to use that instead of the called name which is shown in the commented out line 9. I have no idea what you have in your coding right now so you need to study your code and modify accordingly. I can't program it for you. You started this thread about a month ago so surely you recollect how you did it originally.
 
ah, ok, sorry what I am looking for the the variable name that contains the name and number of the initial caller. I can get everything to work, just need the data dictionary to tell me the variable i need to go after
 
Will keep working on it. Just not sure why it keep saying my name when referencing ${CALLERID(name)}. Just read the link re-caller id. for some reason when follow-me calls your script I get my name, not the callers
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top