[SR-Users] multihomed Kamailio and enable_double_rr
Daniel-Constantin Mierla
miconda at gmail.com
Tue Aug 20 23:37:44 CEST 2013
On 8/20/13 9:08 PM, Steve Davies wrote:
>
>
>
> On 20 August 2013 18:49, Daniel-Constantin Mierla <miconda at gmail.com
> <mailto:miconda at gmail.com>> wrote:
>
> If you cannot control 41.221.230.60 <tel:41.221.230.60> or ask for
> a change there, the solution is to use htable in your config to
> store the contact uri from invite and replace it in bye before
> loose_route().
>
>
> Let me have a go at doing it this way. For the learning as much as
> anything.
>
> What is an appropriate htable "key" to use to remember the contact?
> the $ci (callid) is what I can think of.
I would use also the tags - something like:
- save for invite:
$sht(x=>$ci::$ft) = $sel(contact.uri);
- save for 200ok of invite
$sht(x=>$ci::$tt) = $sel(contact.uri);
For bye, if uri==myself, then if $sht(x=>$ci::$tt)!=$null then $ru =
$sht(x=>$ci::$tt)
You should define hash table x with db persistence if you want to have
the items saved on restarts.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130820/568cd6b7/attachment.html>
More information about the sr-users
mailing list