[HELP] DTMF hangup for voicemail integration on Zap channels


#1

Hi,

I am trying to integrate with a Nitsuko (now NEC?) 124i phone system to replace the old Vangard VM box. The problem so far is that the phone system sends DTMF 9999 to indicate that the call has hung up.

It looks like I need to change chan_zap.c. I found where it handles ignoring dtmf codes, and it sort of looks like that might be where I should put some new code.

I have two questions at the moment:

  1. How do I add a variable to the channel so I can track the last DTMF digit received and how many I got? Also, I would like to put some kind of time stamp there to make sure the sequence comes in within a certain time frame.

  2. What is the proper way to tell Asterisk that a hang up event happened / should happen?

FYI, it looks like it has been done before per voip-info.org/wiki/index.php … isk+Nortel . Unfortunately they didn’t post a patch. I would be more than happy to post a patch when I get it working.

Thanks,
Brandon Peterson