Hello,

 

Not working, I have attached the syslogOnKamailio2-.139.txt generated after a test call from 106 dialing 107.

It shows: No Route headers found and '107' Not found in usrloc; what does this means? And is it related?

 

Waiting your feedback.

 

Kind regards,

F Chahrour

From: Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Sent: Friday, September 07, 2012 10:33 AM
To: Fatima Chahrour~Vanrise Support
Cc: 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List'
Subject: Re: [SR-Users] FW: Kamailio as sipRedirect

 

Hello,

On 9/6/12 6:47 PM, Fatima Chahrour~Vanrise Support wrote:

Hi again,

 

I really need your help in my testing lab here!!

I have simplified the scenario and changed configs to make it easy pinpoint the redirect issue and then apply on my real scenario:

 

Two Phones(username: 106 and 107) registered on Kamailio1 (192.168.111.138).

-          Phone   106: dial 107  àOK

-          Kamailio routing forward call to Kamailio2(192.168.111.139) àOK

-          Then Kamailio should only receive the call from Kamailio1 and redirect it back to Kamailio1 àNOT OK

Note: In my real scenario Kamailio 2 will be responsible for taking the routing decision based on its defined LCR rules and redirect the call with rewritten uri to Kamailio1.

 

Setting in Kamailio2 routing script the following is not working till now:

 

$ru = "sip:107@192.168.111.138";
send_reply("302", "Redirected");

the two lines above should be enough for the redirect. I wrote in another email, to preserve the incoming username, use:

$ru = "sip:" + $rU + "@192.168.111.138";

If it is not working, set debug=3 and watch the log messages (in /var/log/syslog or /var/log/messages) to understand what is not configured properly.


Km_append_branch(“uri”);


This is not necessary and the parameter has to be a valid SIP URI -- you copied the prototype as it is in docs, defining the format of the function.

Cheers,
Daniel


 

Kamailio2 is not sending the 302 message and this is my problem.

How can I send the 302 message redirect? And where do I have to place or put the related function in the script?

 

Thank you.

 

Kind regards,

F.Chahrour