<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 8/20/13 9:08 PM, Steve Davies wrote:<br>
</div>
<blockquote
cite="mid:CABFTEGWC9oe89dxisBXs11bzp1Sk_yhS4tWBdtjXgr_5oq6Qkg@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 20 August 2013 18:49,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">If you cannot
control <a moz-do-not-send="true"
href="tel:41.221.230.60" value="+14122123060"
target="_blank">41.221.230.60</a> 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().<br>
</div>
</blockquote>
<div><br>
</div>
<div>Let me have a go at doing it this way. For the
learning as much as anything.</div>
<div><br>
</div>
<div>What is an appropriate htable "key" to use to remember
the contact? the $ci (callid) is what I can think of.</div>
</div>
</div>
</div>
</blockquote>
I would use also the tags - something like:<br>
- save for invite:<br>
$sht(x=>$ci::$ft) = $sel(contact.uri);<br>
- save for 200ok of invite<br>
$sht(x=>$ci::$tt) = $sel(contact.uri);<br>
<br>
For bye, if uri==myself, then if $sht(x=>$ci::$tt)!=$null then
$ru = $sht(x=>$ci::$tt)<br>
<br>
You should define hash table x with db persistence if you want to
have the items saved on restarts.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
</pre>
</body>
</html>