[Serdev] AVP_SIP_MSGID in SER auth_diameter module
Chen Youcheng
dayong1973 at yahoo.com
Fri Aug 27 15:49:01 UTC 2004
Hello,
/* obtain the structure corresponding to the message */
msg = AAATranslateMessage(rb->buf, rb->buf_len, 0);
if(!msg)
{
LOG(L_ERR, M_NAME": message structure not obtained\n");
return AAA_ERROR;
}
avp = AAAFindMatchingAVP(msg, NULL, AVP_SIP_MSGID,
vendorID, AAA_FORWARD_SEARCH);
if(!avp)
{
LOG(L_ERR, M_NAME": AVP_SIP_MSGID not found\n");
return AAA_ERROR;
}
m_id = *((unsigned int*)(avp->data.s));
DBG("######## m_id=%d\n", m_id);
if(m_id!=waited_id)
{
number_of_tries ++;
LOG(L_NOTICE, M_NAME": old message received\n");
continue;
}
goto next;
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
More information about the Serdev
mailing list