On 8/20/13 9:08 PM, Steve Davies wrote:



On 20 August 2013 18:49, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
 
If you cannot control 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