Please open a bug with respect to this issue. This error should end
up in the error_route.
Try to run tcpdump with buffer rotation and see if you can spot the bogus reply.
Regards,
Ovidiu Sas
On Mon, Apr 13, 2009 at 4:30 PM, Geoffrey Mina <geoffreymina(a)gmail.com> wrote:
> OK, the error has occurred again today, and the error_route didn't
> catch the condition. Any other ideas?
>
> thanks,
> Geoff
>
> On Sun, Apr 12, 2009 at 6:42 PM, Geoffrey Mina <geoffreymina(a)gmail.com> wrote:
>> Ovidiu,
>> Thanks for your continued input. I currently have the error_route
>> block configured with some logging. I am hoping this will be
>> sufficient to capture the condition. The error hasn't happened today,
>> traffic has been very light as it is Eastern and Passover, and I
>> suppose people have better things to do than be on the phone :)
>>
>> If I get the log message and nothing from error_route, I will
>> definitely do a tcpdump of the SIP port and try to correlate the
>> timing.
>>
>> thanks!
>> Geoff
>>
>> On Sun, Apr 12, 2009 at 8:46 AM, Ovidiu Sas <osas(a)voipembedded.com> wrote:
>>> Hello Geoffrey,
>>>
>>> With tcpdump, you can capture data in buffers and rotate the buffers
>>> and keep only the latest 2-3 buffers (check the man page).
>>> As soon as the error arise, you stop the traffic and your bogus
>>> message should be in your last buffer.
>>> Just an idea ...
>>>
>>> Also, if your cps is not very high, you can print the callid of each
>>> request/reply, and when the error arise, you can correlate it with the
>>> callid.
>>>
>>>
>>> Regards,
>>> Ovidiu Sas
>>>
>>> On Sun, Apr 12, 2009 at 8:06 AM, Geoffrey Mina <geoffreymina(a)gmail.com> wrote:
>>>> Ovidiu,
>>>> Thank you for your pointer. I could capture all the SIP traffic, but
>>>> it would be a LOT of data to sift through. This machine processes
>>>> hundreds of thousands of calls per day. I have tried the error_route
>>>> handler to see if it shows up there... fingers crossed. I was unaware
>>>> of that handler before now.
>>>>
>>>> Thanks for the info!
>>>> Geoff
>>>>
>>>> On Sat, Apr 11, 2009 at 8:38 PM, Ovidiu Sas <osas(a)voipembedded.com> wrote:
>>>>> 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…
>>>>>
>>>>> 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(a)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(a)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(a)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(a)lists.kamailio.org
>>>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>
>>>>
>>>
>>
>
I am preparing to add a new upstream SIP provider to my network, and
now have a requirement to route based on the number that the user is
calling. From what I have read it appears that LCR is the better
method for doing this. I have one small issue in that I have a few
customers who switch through my network in order to get to a specific
carrier. Currently I am using carrierroute with all of my customers
in order to support the ones that need to switch to specific carriers,
and everyone else takes the default carrierroute.
Can carrierroute and LCR be used together? If so can you give me a
few pointers so that I can get a lab system working. If not can you
suggest whether or not carrierroute could or should be used to route
based on rate center. The rate center list from my new carrier is
about 31,000 rows. If carrier route cannot or should not be used for
this purpose, can you recommend a way that LCR can be used, and still
have a few customers switch out to a specific carrier regardless of
the number dialed?
Thank You
Stagg Shelton
-----Original Message-----
From: Carlos A. Alvarez
Sent: Tuesday, April 14, 2009 11:32 AM
To: 'tushar(a)eurus.net'
Subject: RE: [Kamailio-Users] LCR
I have a similar problem, with lcr and mysql modules. I am running lenny. The deb packages install fine. Bet when compiling the lcr and mysql are excluded. I do have installed all the dev libraries. Any ideas?
-----Original Message-----
From: users-bounces(a)lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of tushar(a)eurus.net
Sent: Tuesday, April 14, 2009 10:06 AM
To: juha heinanen; tushar(a)eurus.net; users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] LCR
Thanks Jaha,
but I dont think they have added LCR in excluded list, I myself complied
the ver, I also tried to complied just the lcr module but no use.
I wanted to know if anyone else is able to make it work?
What make file you are using for Kamailio ?
Tushar
Original Message:
-----------------
From: jh(a)tutpro.com (Juha Heinanen)
Date: Tue, 14 Apr 2009 16:55:12 +0300
To: tushar(a)eurus.net, users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] LCR
tushar(a)eurus.net writes:
> Recently i installed Kamailio 1.5 everything working fine except the LCR
> module, found theer was no lcr.so module file in the module file.
if you compiled yourself, make sura that lcr module is not excluded. it
uses pcre library and the may have been added to some exclude list. i'm
not using standard kamailio makefile myself and don't know the details.
-- juha
--------------------------------------------------------------------
mail2web LIVE - Free email based on Microsoft(r) Exchange technology -
http://link.mail2web.com/LIVE
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/usershttp://lists.openser-project.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.287 / Virus Database: 270.11.54/2056 - Release Date: 04/14/09 06:17:00
Thanks Juha for instant replies, will update you after make giving a try on
it.
Original Message:
-----------------
From: jh(a)tutpro.com (Juha Heinanen)
Date: Tue, 14 Apr 2009 17:18:41 +0300
To: tushar(a)eurus.net, users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] LCR
Juha Heinanen writes:
> exclude_modules = list of module you use
> export exclude_modules
> make
sorry, should have read
exclude_modules = list of module you do NOT use
-- juha
--------------------------------------------------------------------
mail2web.com Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail
Thanks Jaha,
but I dont think they have added LCR in excluded list, I myself complied
the ver, I also tried to complied just the lcr module but no use.
I wanted to know if anyone else is able to make it work?
What make file you are using for Kamailio ?
Tushar
Original Message:
-----------------
From: jh(a)tutpro.com (Juha Heinanen)
Date: Tue, 14 Apr 2009 16:55:12 +0300
To: tushar(a)eurus.net, users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] LCR
tushar(a)eurus.net writes:
> Recently i installed Kamailio 1.5 everything working fine except the LCR
> module, found theer was no lcr.so module file in the module file.
if you compiled yourself, make sura that lcr module is not excluded. it
uses pcre library and the may have been added to some exclude list. i'm
not using standard kamailio makefile myself and don't know the details.
-- juha
--------------------------------------------------------------------
mail2web LIVE Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE
Thanks Jaha,
but I dont think they have added LCR in excluded list, I myself complied
the ver, I also tried to complied just the lcr module but no use.
I wanted to know if anyone else is able to make it work?
What make file you are using for Kamailio ?
Tushar
Original Message:
-----------------
From: jh(a)tutpro.com (Juha Heinanen)
Date: Tue, 14 Apr 2009 16:55:12 +0300
To: tushar(a)eurus.net, users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] LCR
tushar(a)eurus.net writes:
> Recently i installed Kamailio 1.5 everything working fine except the LCR
> module, found theer was no lcr.so module file in the module file.
if you compiled yourself, make sura that lcr module is not excluded. it
uses pcre library and the may have been added to some exclude list. i'm
not using standard kamailio makefile myself and don't know the details.
-- juha
--------------------------------------------------------------------
mail2web.com What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint
HI All,
Recently i installed Kamailio 1.5 everything working fine except the LCR
module, found theer was no lcr.so module file in the module file.
I tried to rebuild the module separtly also but didnt work. Is there any
changes in this module in ver 1.5? Did anyone also had same problem, I
tried on debian 5 as well as on Centos 5 with same result.
Though there is no issue in insatallation of ver 1.4 in either of the
machines.
Tushar
Original Message:
-----------------
From: Henning Westerholt henning.westerholt(a)1und1.de
Date: Tue, 14 Apr 2009 10:59:03 +0200
To: users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] carrier route vs LCR
--------------------------------------------------------------------
mail2web.com What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint
Hi gentlemen,
I'm configuring some balance and failure routes with CarrierRoute module.
I have the following topology:
-----------> Carrier1
--------> GW1
-----------> Carrier2
Kamailio
-----------> Carrier1
--------> GW2
-----------> Carrier2
The idea will be to select a carrier using carrierroute going out through
GW1. If GW1 fails (timeout) i want the call to go to the same carrier
through the other GW. I assume the hash value calculated on cr_route will be
the same for the failure route, but I need to verify the fields used on the
DB to calculate a hash_index and the way that they are calculated so I can
assure the previous behavior.
Thanks in advance!
Uriel
Hi,
When printing the message in function receive_msg() in core the buffer seems to be corrupt with CSeq header name. It shows as Seq and naturally the parsing fails throwing error as reply cannot be parsed and also no 2nd via found in reply.
SIP/2.0 487 Request Terminated#015#012
Via: SIP/2.0/UDP xxxx;branch=z9hG4bK158a.61909fe2.0#015#012
From:xxxxx
Call-ID: B110CD4E_CE5E_4F70_9472_439E0796F926#015#012
To: xxxxxx#015#012
Seq: 180 INVITE#015#012
Max-Forwards: 70#015#012
User-Agent: Kamailio (1.4.3-tls (i386/linux))#015#012
Content-Length: 0#015#012#015#012
Did anyone face this situation earlier?
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
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