[Serdev] AVP_SIP_MSGID in SER auth_diameter module

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Sat Aug 28 18:15:21 UTC 2004


what's exactly the problem?
bogdan

Chen Youcheng wrote:
> 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
> 
> _______________________________________________
> Serdev mailing list
> serdev at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev




More information about the Serdev mailing list