[Kamailio-Users] ERROR:core:receive_msg: no via found in reply

Ovidiu Sas osas at voipembedded.com
Sun Apr 12 02:38:43 CEST 2009


How often do you get this error?
IIRC, last time when I got this type of error it was related to a
missing Via header into a SIP reply.
Can you capture/sniff the traffic and check if all the received
replies are sane (via header is present)?

Another idea would be to capture the bogus message into the error_route:
http://www.kamailio.net/dokuwiki/doku.php/core-cookbook:1.5.x#error_route
and then print the message via $mb:
http://www.kamailio.net/dokuwiki/doku.php/pseudovariables:1.5.x#sip_message_buffer

I haven't checked the code to see if this type of error will end up in
the error_route, but is it worth a try.
If it's not caught, please open a bug, because it should be.


Regards,
Ovidiu Sas

On Sat, Apr 11, 2009 at 5:58 PM, Geoffrey Mina <geoffreymina at gmail.com> wrote:
> Tried adding that log into my onreply_route[1] block, but it didn't
> work.  I can't seem to figure out I can possibly capture the SIP
> message which is generating this error.  Any help would be much
> appreciated.
>
> On Fri, Apr 10, 2009 at 10:23 PM, Geoffrey Mina <geoffreymina at gmail.com> wrote:
>> Perhaps I should clarify what I am looking for a bit.  I am guessing
>> based on the log "no via found in reply" that I would need to check
>> for this condition in my onreply_route[1] block.
>>
>> Based on my knowledge of SIP, all reply responses are REQUIRED to have
>> a VIA header to ensure the response traverses the same path as the
>> request... correct?
>>
>> Would the following effectively deal with this condition, or would
>> sending a 500 error in response to a reply cause problems down stream?
>>
>> onreply_route[1]{
>>     if(!is_present_hf("Via")){
>>           sl_reply_error("500","No Via found in response.");
>>     }
>> }
>>
>> Thanks for anyone's assistance.
>> Geoff
>>
>> On Fri, Apr 10, 2009 at 12:02 PM, Geoffrey Mina <geoffreymina at gmail.com> wrote:
>>> Hello,
>>> I am seeing the following message repeatedly in my log file.  I am
>>> guessing I have a server or servers misbehaving.  Where might I be
>>> able to check for this error condition and log appropriately?  I have
>>> attached my current configuration file for reference.
>>>
>>> Thanks!
>>> Geoff
>>>
>>>
>>> Apr 10 11:45:40 atl-sipgateway2 /usr/local/sbin/kamailio[15487]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:45:42 atl-sipgateway2 /usr/local/sbin/kamailio[15490]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:45:46 atl-sipgateway2 /usr/local/sbin/kamailio[15490]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:45:50 atl-sipgateway2 /usr/local/sbin/kamailio[15507]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:45:54 atl-sipgateway2 /usr/local/sbin/kamailio[15497]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:45:58 atl-sipgateway2 /usr/local/sbin/kamailio[15491]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:46:02 atl-sipgateway2 /usr/local/sbin/kamailio[15490]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:46:06 atl-sipgateway2 /usr/local/sbin/kamailio[15485]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:47:46 atl-sipgateway2 /usr/local/sbin/kamailio[15485]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:47:47 atl-sipgateway2 /usr/local/sbin/kamailio[15486]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:47:48 atl-sipgateway2 /usr/local/sbin/kamailio[15507]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:47:50 atl-sipgateway2 /usr/local/sbin/kamailio[15503]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:47:54 atl-sipgateway2 /usr/local/sbin/kamailio[15492]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:47:58 atl-sipgateway2 /usr/local/sbin/kamailio[15485]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:48:02 atl-sipgateway2 /usr/local/sbin/kamailio[15490]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:48:06 atl-sipgateway2 /usr/local/sbin/kamailio[15491]:
>>> ERROR:core:receive_msg: no via found in reply
>>> Apr 10 11:48:10 atl-sipgateway2 /usr/local/sbin/kamailio[15492]:
>>> ERROR:core:receive_msg: no via found in reply
>>>
>>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>




More information about the sr-users mailing list