[asterisk-bugs] [Asterisk 0008587]: [patch] Caller Id and Message Waiting Indicator problems
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Sep 26 05:53:06 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=8587
======================================================================
Reported By: meneault
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 8587
Category: Channels/chan_zap
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 48462
Disclaimer on File?: Yes
Request Review:
======================================================================
Date Submitted: 12-14-2006 08:47 CST
Last Modified: 09-26-2007 05:53 CDT
======================================================================
Summary: [patch] Caller Id and Message Waiting Indicator
problems
Description:
I've got two issues but i didn't open two bugs because they are quite
related.
Issue 1) In France callerid signalling is V23 and callerid start is RING.
Current callerid works well except when callerid is associated to a
"message waiting indicator"(mwi) message. In this case callerid spill is
just ignored by chan_zap.
It is due to the fact that callerid's mdmf type is 0x80 and callerid with
mwi is 0x82 (mdmf fields are the same). So the patch to callerid_feed is
straight forward.
But well when a message waiting indication arrives it should'nt be treated
as normal call so my patch makes the fxo channel start at 'mwi' extension
if it exist.
Issue 2) Current code try to generate mwi signal to fxs channel when their
mailbox state change. It is using ONHOOKTRANSFER to do so and it doesn't
work for french phones (based on ETSI standard, so it mail fail for others
aswell).
To work, we should ring once to wake up the phone and then transmit mwi
data, no rings should follow the transmission.
I added an option to the native format request so as to ring and stop when
cidspill has been sent, that's 'm' option.
ex:
Dial(Zap/1m), to ring using default cadence and stop after first ring (ie
cidspill is sent).
Dial(Zap/1m1), to ring using custom cadence and stop after cidspill sent
(depending on the cadence)
Message waiting indicator will be set if channel's ${HASVOICEMAIL} is set
to 1.
Message waiting indicator will be cleared otherwise.
In France :
defining cadence=250,1500,1500,3000
and then doing Dial(Zap/1m1) works well.
So when mailbox state changed instead of doing an onhooktransfer, we
should Dial (Zap/1m1).
The best way I found to do this and keep backward compatibility is to
launch the pbx in a specific extension.
I added an option to zapata.conf so as to decide what to do when mailbox
state changed for a FXS channel (option called 'onmboxchange').
- Either 'sendmwi', default mode (for backward compatibility), to send
data using onhooktransfer.
- Or 'jumptomboxchanged', to start the pbx on 'mboxchanged' extension in
the channel's default context. The variable {HASVOICEMAIL} will be set to 1
if mailbox is not empty and set to 0 otherwise. Then the user is free to
decide what to do when it's mailbox state changed.
Ok to sum up:
here's is my config:
zapata.conf
cadence=250,1500,1500,3000
onmboxchange=jumptomboxchanged
extensions.conf
[fxschannel] ;=> that's the extension for my Zap/1 FXS channel
; our mailbox state changed, we will send the mwi to our phones Zap/1
exten => mboxchanged,1,NoOp(Status of mailbox changed ${HASVOICEMAIL})
; timeout is 3 seconds, enough time to send the cidspill
exten => mboxchanged,2,Dial(Zap/1m1,3)
exten => mboxchanged,3,Hangup()
exten => mboxchanged,103,Hangup()
[fxochannel]
; we received mwi from telco provider
exten => mwi,1,NoOp(Got Messages Indication from telco ${HASVOICEMAIL})
; here we decide to send it to our phones
; CALLERID should be valid also if we want to check calling number
exten => mwi,2,Dial(Zap/1m1,3)
exten => mwi,3,Hangup()
exten => mwi,103,Hangup()
======================================================================
----------------------------------------------------------------------
meneault - 09-26-07 05:53
----------------------------------------------------------------------
I am sorry, but I do not plan to make new patches in a near future. I am on
another business right now.
I still use the SVN version 48462 at home since december 2006 and
everything works as well as it should. I do not plan to update my server
for the moment.
About the licensing issue, I faxed it in december 2006, but now faxing
seems to be a deprecated way. So I'll sign the Open Source Contributor
License right now.
And you can fully assume that the Open Source Contributor License is
exactly the license applicable to my patches.
If your really need the patch right now, it wouldn't be too difficult for
the maintainer of chan_zap.c to look at my patches, read the bug
description and to fix them so that they apply cleanly.
I'll get into it as soon as I need to update my home server (maybe not
tomorrow). I am sure it will cost me a lot to come back into asterisk
source and particularly in chan_zap.c (sorry about saying that but it's
handling too much devices at the same time, updating it safely is a huge
pain).
However I am open-minded so if patch is really wanted, I may change my
mind.
For the moment bug didn't receive much attention, I already explained why
in my previous note.
Having said so, I am still convinced that some users are desperately
trying to get their message waiting indication working.
Issue History
Date Modified Username Field Change
======================================================================
09-26-07 05:53 meneault Note Added: 0071099
======================================================================
More information about the asterisk-bugs
mailing list