Hi List, Merlin Magix hardware v02 I'm trying to get asterisk to act as a voicemail server for a lucent merlin magix PBX that we purchased used. We have 4 FXO channels between the two PBXs on a Sangoma A200 card. The 770 dialgroup is working properly, in that calls to 770 are answered by Asterisk. The magix is sending mode codes in the format #XX#XXX#, where the 2nd block of digits is the calling extension. I'm stripping off the unneeded pound signs and digits, and calling voicemailmain. The problem I'm having is that the asterisk is starting to play vm-password and then interrupts immediately and errors with an incorrect password. Then it works normally. Below is the relevant asterisk config and the asterisk log. Zaptel is configured to start inbound calls in the inbound context. The voicemail accounts and sip accounts are all in the default context. Asterisk log -- Starting simple switch on 'Zap/3-1' Mar 9 10:26:35 NOTICE[4211]: chan_zap.c:6063 ss_thread: Got event 18 (Ring Begin)... -- Executing Answer("Zap/3-1", "") in new stack -- Executing WaitExten("Zap/3-1", "1") in new stack == CDR updated on Zap/3-1 -- Executing NoOp("Zap/3-1", "#00#219#") in new stack -- Executing Set("Zap/3-1", "CVAR=219@default") in new stack -- Executing NoOp("Zap/3-1", "219@default") in new stack -- Executing VoiceMailMain("Zap/3-1", "219@default") in new stack -- Playing 'vm-password' (language 'en') -- Incorrect password '' for user '219' (context = default) -- Playing 'vm-incorrect' (language 'en') -- Playing 'vm-password' (language 'en') ||| Caller hangs up here ||| Mar 9 10:26:41 WARNING[4211]: app_voicemail.c:4998 vm_authenticate: Unable to read password -- Hungup 'Zap/3-1' extensions.conf [inbound] exten => s,1,Answer() exten => s,2,WaitExten(1) ; Allow time for mode code digits to come across ; The following extensions grab the mode code ; coming from the Avaya PBX and route the ; call appropriately via the Voicemail() ; and VoiceMailMain() apps. ; ; someone pressed vmail check ; #00#243# exten => _#XX#XXX#,1,noop(${EXTEN}) exten => _#XX#XXX#,2,Set(CVAR=${EXTEN:4:3}@default) exten => _#XX#XXX#,3,NoOp(${CVAR}) exten => _#XX#XXX#,4,VoicemailMain(${CVAR}) ;exten => _#XX#XXX#,2,VoicemailMain(${EXTEN:4:3}@default) exten => _#XX#XXX#,5,Hangup() ===========================================================As can be seen, I've tried calling voicemailmain with the ${EXTEN:4:3} digit stripping as part of the command, and also I've tried moving the digit stripping to a variable. I'd very much appreciate any help you folks can offer. Thanks much. Darren Ellis
Do you have a timeout set somewhere? Try Set(TIMEOUT(digit)=3), and/or Set(TIMEOUT(response)=5) On 3/9/06, Darren Ellis <darren@ieworks.net> wrote:> Hi List, > > Merlin Magix hardware v02 > > I'm trying to get asterisk to act as a voicemail server for a lucent > merlin magix PBX that we purchased used. We have 4 FXO channels between > the two PBXs on a Sangoma A200 card. The 770 dialgroup is working > properly, in that calls to 770 are answered by Asterisk. The magix is > sending mode codes in the format #XX#XXX#, where the 2nd block of digits > is the calling extension. I'm stripping off the unneeded pound signs > and digits, and calling voicemailmain. The problem I'm having is that > the asterisk is starting to play vm-password and then interrupts > immediately and errors with an incorrect password. Then it works > normally. Below is the relevant asterisk config and the asterisk log. > Zaptel is configured to start inbound calls in the inbound context. The > voicemail accounts and sip accounts are all in the default context. > > Asterisk log > -- Starting simple switch on 'Zap/3-1' > Mar 9 10:26:35 NOTICE[4211]: chan_zap.c:6063 ss_thread: Got event 18 > (Ring Begin)... > -- Executing Answer("Zap/3-1", "") in new stack > -- Executing WaitExten("Zap/3-1", "1") in new stack > == CDR updated on Zap/3-1 > -- Executing NoOp("Zap/3-1", "#00#219#") in new stack > -- Executing Set("Zap/3-1", "CVAR=219@default") in new stack > -- Executing NoOp("Zap/3-1", "219@default") in new stack > -- Executing VoiceMailMain("Zap/3-1", "219@default") in new stack > -- Playing 'vm-password' (language 'en') > -- Incorrect password '' for user '219' (context = default) > -- Playing 'vm-incorrect' (language 'en') > -- Playing 'vm-password' (language 'en') > ||| Caller hangs up here ||| > Mar 9 10:26:41 WARNING[4211]: app_voicemail.c:4998 vm_authenticate: > Unable to read password > -- Hungup 'Zap/3-1' > > extensions.conf > [inbound] > exten => s,1,Answer() > exten => s,2,WaitExten(1) ; Allow time for mode code digits to > come across > > ; The following extensions grab the mode code > ; coming from the Avaya PBX and route the > ; call appropriately via the Voicemail() > ; and VoiceMailMain() apps. > ; > ; someone pressed vmail check > ; #00#243# > exten => _#XX#XXX#,1,noop(${EXTEN}) > exten => _#XX#XXX#,2,Set(CVAR=${EXTEN:4:3}@default) > exten => _#XX#XXX#,3,NoOp(${CVAR}) > exten => _#XX#XXX#,4,VoicemailMain(${CVAR}) > ;exten => _#XX#XXX#,2,VoicemailMain(${EXTEN:4:3}@default) > exten => _#XX#XXX#,5,Hangup() > > ===========================================================> As can be seen, I've tried calling voicemailmain with the ${EXTEN:4:3} > digit stripping as part of the command, and also I've tried moving the > digit stripping to a variable. > I'd very much appreciate any help you folks can offer. > > Thanks much. > > Darren Ellis > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I actually have this working... on a merlin legend R7 zapata.conf ; turn off caller id otherwise it hangs... usecallerid=no usecallingpres=no callwaitingcallerid=no ; drop into the vm context relaxdtmf=yes context=from-vm group = 4 signalling = fxs_ks channel=>29-32 extensions.conf [from-vm] exten => _#00#XXX##,1,NoOP(Directly dialed 770 from extension ${EXTEN}) exten => _#00#XXX##,2,VoicemailMain() exten => _#00#XXX##,3,Hangup() ; auto attendant coverage exten => _#01#XXX##,1,NoOP(outside line ${EXTEN} ${CALLERIDNUM}) exten => _#01#XXX##,2,GoTo(auto-attendant,s,1) ; voicemail coverage for extension exten => _#02#XXX#XXX#,1,NoOP(extention to extension for coverage ${EXTEN}) ;exten => _#02#XXX#XXX#,2,Set(CALLERID(number)=${EXTEN:4:3}) exten => _#02#XXX#XXX#,2,AGI(setcallerid.agi,${EXTEN:4:3}) exten => _#02#XXX#XXX#,3,Voicemail(u${EXTEN:8:3}) exten => _#02#XXX#XXX#,4,Hangup() ; did/outside line coverage for voicemail calls exten => _#03##XXX#,1,NoOP(did coverage for extension ${EXTEN}) exten => _#03##XXX#,2,NoOp(might set callerid here) exten => _#03##XXX#,3,Voicemail(u${EXTEN:5:3}) exten => _#03##XXX#,4,Hangup() exten => s,1,Answer exten => s,2,WaitExten(1) exten => t,1,GoTo(auto-attendant,s,1) exten => o,1,Playback(pbx-transfer) exten => o,2,Flash() exten => o,3,SendDTMF(${OPERATOR}) exten => o,4,Hangup(); Darren Ellis wrote:> Hi List, > > Merlin Magix hardware v02 > > I'm trying to get asterisk to act as a voicemail server for a > lucent merlin magix PBX that we purchased used. We have 4 FXO > channels between the two PBXs on a Sangoma A200 card. The 770 > dialgroup is working properly, in that calls to 770 are answered by > Asterisk. The magix is sending mode codes in the format #XX#XXX#, > where the 2nd block of digits is the calling extension. I'm > stripping off the unneeded pound signs and digits, and calling > voicemailmain. The problem I'm having is that the asterisk is > starting to play vm-password and then interrupts immediately and > errors with an incorrect password. Then it works normally. Below > is the relevant asterisk config and the asterisk log. Zaptel is > configured to start inbound calls in the inbound context. The > voicemail accounts and sip accounts are all in the default context. > > > Asterisk log -- Starting simple switch on 'Zap/3-1' Mar 9 10:26:35 > NOTICE[4211]: chan_zap.c:6063 ss_thread: Got event 18 (Ring > Begin)... -- Executing Answer("Zap/3-1", "") in new stack -- > Executing WaitExten("Zap/3-1", "1") in new stack == CDR updated on > Zap/3-1 -- Executing NoOp("Zap/3-1", "#00#219#") in new stack -- > Executing Set("Zap/3-1", "CVAR=219@default") in new stack -- > Executing NoOp("Zap/3-1", "219@default") in new stack -- Executing > VoiceMailMain("Zap/3-1", "219@default") in new stack -- Playing > 'vm-password' (language 'en') -- Incorrect password '' for user > '219' (context = default) -- Playing 'vm-incorrect' (language 'en') > -- Playing 'vm-password' (language 'en') ||| Caller hangs up here > ||| Mar 9 10:26:41 WARNING[4211]: app_voicemail.c:4998 > vm_authenticate: Unable to read password -- Hungup 'Zap/3-1' > > extensions.conf [inbound] exten => s,1,Answer() exten => > s,2,WaitExten(1) ; Allow time for mode code digits to come > across > > ; The following extensions grab the mode code ; coming from the > Avaya PBX and route the ; call appropriately via the Voicemail() ; > and VoiceMailMain() apps. ; ; someone pressed vmail check ; > #00#243# exten => _#XX#XXX#,1,noop(${EXTEN}) exten => > _#XX#XXX#,2,Set(CVAR=${EXTEN:4:3}@default) exten => > _#XX#XXX#,3,NoOp(${CVAR}) exten => > _#XX#XXX#,4,VoicemailMain(${CVAR}) ;exten => > _#XX#XXX#,2,VoicemailMain(${EXTEN:4:3}@default) exten => > _#XX#XXX#,5,Hangup() > > ============================================================ As can > be seen, I've tried calling voicemailmain with the ${EXTEN:4:3} > digit stripping as part of the command, and also I've tried moving > the digit stripping to a variable. I'd very much appreciate any > help you folks can offer. > > Thanks much. > > Darren Ellis > > > > _______________________________________________ --Bandwidth and > Colocation provided by Easynews.com -- > > Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEEJePy9wPyZpnL2URAv8SAJ4gZbuPz0bGpi+4BSRAc6s/UUl3GwCgj+JY H/Idy1plS9wNi23SSZC44kw=inmr -----END PGP SIGNATURE-----