Re: [SR-Users] uac_req: pseudovariables, avps

2011-08-23 Thread Alex Hermann
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 '+'.

-- 
Greetings,

Alex Hermann


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] uac_req: pseudovariables, avps

2011-08-23 Thread Manwe
El Tue, 23 Aug 2011 17:32:41 +0200
Alex Hermann a...@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.



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users