[SR-Users] Loops using uac_replace_from

"Ján ONDREJ (SAL)" ondrejj at salstar.sk
Fri Jul 30 15:36:12 CEST 2010


Hello,

On Wed, Jul 28, 2010 at 03:07:20PM +0200, Daniel-Constantin Mierla wrote:
> On 7/28/10 2:56 PM, Ján ONDREJ (SAL) wrote:
> >   after some failures with uac_auth (uac_auth can't increase CSeq number,
> >which is required by my provider) my provider maked me an testing access
> >without autentification, but I still can't make calls with kamailio or
> >openser. I can make calls with opensips, but I am still not chosen, which
> >sip software to use in future (still using openser).
> >
> >   This is a part of my configuration:
> >
> >route[6] {
> >         uac_replace_from("sip:556807505 at as.xxxxxx.sk");
> >         rewritehostport("122.33.44.200");
> >         route(5);
> >}
> >
> >When trying to sniff packets and diff them, I am still getting this from my
> >kamailio server:
> >
> >U kamailio_ip:5060 ->  client_ip:5060
> >SIP/2.0 500 I'm terribly sorry, server error occurred (6/SL).
> >From: "Ondrej Jan"<sip:xxxxxx at xxxx>;tag=59427D6F-81E63720.
> >To:<sip:xxxxx at xxxxx;user=phone>;tag=cc70c0fe52d7af0accfb78a94d592620.f69c.
> >CSeq: 1 INVITE.
> >Call-ID: 37cadcfb-f93b8e1d-431cdf6 at xxxxxxxxxxx.
> >Server: kamailio (3.0.2 (i386/linux)).
> >Content-Length: 0.
> >
> >Logs are below. Any idea, what happening and why a default opensips
> >configuration works and kamailio/openser don't?
> 
> what is your route[5]? It doesn't look at all like being default
> config for kamailio anyhow. There seem to be two problems in your
> config:
> 
> - one is that you try to re-forward without appending a new branch
> in failure case (upcoming 3.1 has a auto-detection if there is a new
> destination so append_branch() won't be needed)
> - you have a recursive calling of route blocks, like route(5)
> calling route(6) which calls again route (5)

This cyclic route typo was my problem. Thank you for help.

			SAL



More information about the sr-users mailing list