Hi,
Sorry!!! You already mentioned to me that I should use
km_append_branch("uri") in order to send multiple contacts.
I tried it now as follow:
Km_append_branch($ru) or Km_append_branch()
sl_send_reply("302","Moved Temporary")
Am getting in the contacts the first lcr_gw twice;
Contact: sip:961377888@192.168.111.195, sip:961377888@192.168.111.195.
What variable should I use to list all contacts of lcr_gw?
Kind regards,
F Chahrour
From: sr-users-bounces(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Fatima
Chahrour~Vanrise Support
Sent: Monday, September 10, 2012 11:50 PM
To: 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List'; miconda(a)gmail.com
Subject: [SR-Users] Kamailio-Redirect based LCR routing
Dear Daniel\List,
Following up to a previous post where I was able in my testing lab to
redirect call with 1st destination of lcr_gw table to another
Kamailio(acting as any SBC) with Daniels assist, I need a hand in
redirecting the call with multiple contacts , basically based on the lcr
routing rule configured in kamailio LCR module for the rerouted call.
Is this possible using code 300 with multiple choices message? Or you advise
me with another method?
If 300 redirect message works, what should be the variable set as $ru to get
all lcr_gw destinations?
Example for clarification:
My current redirect script used after lcr functions is :
..
$ru= $ru;
sl_send_reply("302","Moved Temporary");
..
This script is successfully sending the 302 message with Contact:
sip:1119613454646@192.168.111.195. (1119613454646 is the dialed number with
prefix, 192.168.111.195 is first lcr_gw ip). Now if the call to
192.168.111.195 is failed and I need to redirect the second destination,
second lcr_gw ip, how can I achieve this?
Thank you for your usual response.
Kind Regards,
F Chahrour