[Kamailio-Users] Parallel forking problem

Dubravko Caric dubravko_caric at yahoo.com
Thu Jul 30 12:15:10 CEST 2009


Hi Daniel,

it works.


Thanks

/dubravko




----- Original Message ----
From: Daniel-Constantin Mierla <miconda at gmail.com>
To: Dubravko Caric <dubravko_caric at yahoo.com>
Cc: kamailio users <users at 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 at example.com it must also go to its PSTN destination
> 1234 at 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

-- 
Daniel-Constantin Mierla
* SIP Router Bootcamp
* Kamailio (OpenSER) and Asterisk Training
* Berlin, Germany, Sep 1-4, 2009
* http://www.asipto.com/index.php/sip-router-bootcamp/


      




More information about the sr-users mailing list