@ydarb wrote:
Hey y'all,
Thanks for taking a look. I'm trying to use freepbx as secondary voicemail, and have it work the same as main merlin magix voicemail.I'm using this as reference:
www.voip-info.org/wiki/view/Avaya+or+Lucent+Magix+Voicemail+Integration
I've got 4 regular phone lines coming out of a 016 T/R card into a Wildcard TDM800P. Trying to keep things as simple and reproducible as possible, I've really only made two changes: changed FXO port 1 context to [from-magix], and then created the following code in extensions_custom.conf...
[from-magix]
;type:
;00=VM?, next number is who dialed
;02=internal, next is who dialed, next is who dialing
;03=external, next is empty, next is who dialing
;Flash(),SendDTMF(#53XXXX) Message Waiting Indicater On : #*53XXXX MWI Off
exten => s,1,Answer() ;Have to Answer before magix sends DTMF
;Read() reads DTMF tones into variable. Quits whenever it sees a # sign
;expected pattern is something like: #XX#XXXX#XXXX##
same => n, Read(t) ;throwaway first #
same => n, Read(type)
same => n, Read(dialed)
same => n, Read(dialing)
;same => n, Verbose(1,Type:${type} Dialed:${dialed} Dialing:${dialing})
same => n, ExecIf($[0=${type}]?VoiceMailMain(${dialed}):VoiceMail(${dialing}))
same => n, Verbose(1,from-magix after VMSTATUS: ${VMSTATUS})
same => n, Hangup()exten => h, 1, Verbose(1,${VMSTATUS} from-magix hungup)
;same => n, Flash
same => n, SendDTMF(#*53${dialing})I also created one extension for testing in freepbx. So now I can call that extension from my avaya mlx-10dp phone through merlin magix and be prompted by freepbx voicemail system to leave a message... yay! However, I can't cleanly get the MWI to turn on/off, and haven't even tried more complex tasks (voicemail callback context).
First: can current code be better/cleaner? Is there a more current integration guide around?
Second, if I take an incoming line and Flash it, then SendDTMF MWI digits, the digits send but hangup doesn't work - that call gets sent to the main receptionist. Is there a way to flash incoming line, sendDTMF and actually hangup?
Third, it seems like I'll need to initiate dialing out from freepbx to magix to send dtmf digits, but every Dial command I've tried returns: "Caller hung up before dial" in asterisk console. What steps do I need to accomplish in order to send digits to magix? If I haven't mentioned it here, I haven't done it, so I currently have no outbound routes, DAHDI channel DIDs, etc., mainly due to ignorance.
I've also tried using voicemail external notify: externnotify=/var/lib/asterisk/agi-bin/vmnotify-newvm-mod.php, but would still need to Dial from there (or otherwise send digits to merlin magix).
Finally, is there any information I can provide to make these integration questions more clear?
Thanks again for your time and support!Asterisk 13.9.1
FreePBX 10.13.66-13
SHMZ release 6.6
Posts: 1
Participants: 1