Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] SIP MWI Problem in 1.4 and 1.6


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
asterisk-admin at hulb...
Guest





PostPosted: Mon Jul 07, 2008 11:59 am    Post subject: [asterisk-users] SIP MWI Problem in 1.4 and 1.6 Reply with quote

I've been having a problem with Asterisk MWI notification on my SIP
phones since going to version 1.4 a long time ago. Since going to this
version, I have needed to go into chan_sip.c and do the following:

/*! \brief Check whether peer needs a new MWI notification check */
static int does_peer_need_mwi(struct sip_peer *peer)
{
time_t t = time(NULL);

/* COMMENT OUT THIS CODE
if (ast_test_flag(&peer->flags[1], SIP_PAGE2_SUBSCRIBEMWIONLY) &&
!peer->mwipvt) {
peer->lastmsgcheck = t;
return FALSE;
}
*/

if (!ast_strlen_zero(peer->mailbox) && (t - peer->lastmsgcheck) >
global_mwitime)
return TRUE;

return FALSE;
}

After commenting out the section noted above then MWI works fine on all
phones. Now, I have moved to 1.6 and am having the same problem except
this function no longer exists. Has anyone had a similar problem and if
so, how did you fix it in your config files assuming it's some setting
in one of them? Does anyone know why this flag test is not working?
Also, if someone knows how I can patch 1.6 to fix this that would be
helpful also. I have the corresponding mailboxes set in my sip.conf
contexts as so:

[sipiura1]
...
mailbox=55 at default,66 at default,99 at default
subscribemwi=yes
...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services