[SR-Users] uac_req: pseudovariables, avps

Jon Bonilla (Manwe) manwe at aholab.ehu.es
Tue Aug 23 17:45:35 CEST 2011


El Tue, 23 Aug 2011 17:32:41 +0200
Alex Hermann <alex at speakup.nl> escribió:

> On Tuesday 23 August 2011, Jon Bonilla wrote:
> > Hi all
> > 
> > I'm trying to generate a request using uac_req in a failure route when the
> > call has been canceled. (Kamailio 3.1.3)
> > 
> > Here's the code:
> 
> >     $uac_req(hdrs) = "X-PUSH-Type: mytype\r\nX-PUSH-CLI:
> > $avp(s:first_caller_cli)\r\nX-PUSH-DST: $rU\r\n";
> 
> Strings aren't evaluated for PV's. Use pv_printf or concatenate the different 
> components with '+'.
> 

Thanks Alex. It has sense. Tried with '+' and worked perfectly.





More information about the sr-users mailing list