Hi Daniel,
it works.
Thanks
/dubravko
----- Original Message ---- From: Daniel-Constantin Mierla miconda@gmail.com To: Dubravko Caric dubravko_caric@yahoo.com Cc: kamailio users users@lists.kamailio.org Sent: Thursday, July 30, 2009 11:42:26 AM Subject: Re: [Kamailio-Users] Parallel forking problem
Hello,
On 30.07.2009 10:27 Uhr, Dubravko Caric wrote:
Hi all,
could you please give me suggestions how to simultaneously send call to PSTN destination for UAC that is logged in. So, when call comes for sip:bob@example.com it must also go to its PSTN destination 1234@10.0.0.2 (avp in mysql) and ring both destinations simultaneously.
Example below doesn't work and I keep ending up with two INVITEs to PSTN GW and proxy doesn't fork call to UAC. in this case, if I understand correctly, this is proper behavior because append_branch() has its function only if UAC isn't logged in or on 480,486... And how to handle this when user is logged in?
if (!lookup("location")) { ... }
if(...) { avp_pushto("$ru", "$avp(s:PSTN_fwd)"); append_branch(); }
you can push directly to branch:
$br = $avp(s:PSTN_fwd);
or
avp_pushto("$br", "$avp(s:PSTN_fwd)");
Cheers, Daniel