Re: [SR-Users] var vs avp...

2013-04-30 Thread Vitaliy Aleksandrov
On 04/29/2013 03:52 PM, Victor V. Kustov wrote: В Mon, 29 Apr 2013 14:46:34 +0200 Olle E. Johansson o...@edvina.net пишет: All functions of this module load AVPs from SIP-AVP reply items received from RADIUS upon a successful request. Value of the SIP-AVP reply item must be a string of form:

Re: [SR-Users] var vs avp...

2013-04-30 Thread Victor V. Kustov
В Tue, 30 Apr 2013 12:38:11 +0300 Vitaliy Aleksandrov vitalik.v...@gmail.com пишет: Not so special .. You need to add SIP-AVP attributes to an access-accept reply from radius. As I remember this attribute must be declared somewhere in dictionary.openser. bad news for me. radius already work

Re: [SR-Users] var vs avp...

2013-04-29 Thread Victor V. Kustov
В Fri, 19 Apr 2013 14:46:00 +0200 Olle E. Johansson o...@edvina.net пишет: We will certainly look into this. There are trainings, but no books and very few guides on the web. Please feel free to contribute, after all it is Open Source and we depend on community contributions in order to get

Re: [SR-Users] var vs avp...

2013-04-29 Thread Juha Heinanen
Victor V. Kustov writes: radius_load_callee_avps(callee) I see in doc: radius_load_callee_avps($rU@$rd); # take callee from Request-URI I call this function, but where are results? How can i check errors, where i must look results? In which avps? as the name of the function

Re: [SR-Users] var vs avp...

2013-04-29 Thread Olle E. Johansson
29 apr 2013 kl. 14:29 skrev Victor V. Kustov coy...@bks.tv: В Fri, 19 Apr 2013 14:46:00 +0200 Olle E. Johansson o...@edvina.net пишет: We will certainly look into this. There are trainings, but no books and very few guides on the web. Please feel free to contribute, after all it is Open

Re: [SR-Users] var vs avp...

2013-04-29 Thread Victor V. Kustov
В Mon, 29 Apr 2013 15:34:11 +0300 Juha Heinanen j...@tutpro.com пишет: as the name of the function indicates, the result is in the avps. if the function call fails, result value will be -1 as usual and you get error message to syslog. in which avps? kk, radius answer: Session-Timeout

Re: [SR-Users] var vs avp...

2013-04-29 Thread Olle E. Johansson
29 apr 2013 kl. 14:44 skrev Victor V. Kustov coy...@bks.tv: В Mon, 29 Apr 2013 15:34:11 +0300 Juha Heinanen j...@tutpro.com пишет: as the name of the function indicates, the result is in the avps. if the function call fails, result value will be -1 as usual and you get error message to

Re: [SR-Users] var vs avp...

2013-04-29 Thread Victor V. Kustov
В Mon, 29 Apr 2013 14:46:34 +0200 Olle E. Johansson o...@edvina.net пишет: All functions of this module load AVPs from SIP-AVP reply items received from RADIUS upon a successful request. Value of the SIP-AVP reply item must be a string of form: • value = SIP_AVP_NAME SIP_AVP_VALUE

Re: [SR-Users] var vs avp...

2013-04-22 Thread Yufei Tao
-router.org wrote: Date: Fri, 19 Apr 2013 11:00:25 -0400 From: Carlos Ruiz D?az carlos.ruizd...@gmail.com Subject: Re: [SR-Users] var vs avp... To: Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Message-ID: CA+3gBcmmZyBCCRCyCY=vomziykgzu2upsmccd3y6530jnre

[SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
Hi! whats difference $var() and $avp()? -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

[SR-Users] var vs avp...

2013-04-19 Thread Juha Heinanen
Victor V. Kustov writes: whats difference $var() and $avp()? see http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] var vs avp...

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 10:43 skrev Victor V. Kustov coy...@bks.tv: Hi! whats difference $var() and $avp()? There's a whole set of differences. - $var is stored in process memory. - $avp is stored in transactions (in shared memory), so if you set them while processing a request you have them

Re: [SR-Users] var vs avp...

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 10:54 skrev Vitaliy Aleksandrov vitalik.v...@gmail.com: On 04/19/2013 11:43 AM, Victor V. Kustov wrote: Hi! whats difference $var() and $avp()? $var() - is bound to a kamailio process. If you set $var(xxx) for a one request/reply, it will be available during processing

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 11:54:18 +0300 Juha Heinanen j...@tutpro.com пишет: http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables I think info from all comments in this thread must be included in cookbook. Without such layer, without conceptual things it not 'book', just remarks on fields.

Re: [SR-Users] var vs avp...

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 13:52 skrev Victor V. Kustov coy...@bks.tv: В Fri, 19 Apr 2013 11:54:18 +0300 Juha Heinanen j...@tutpro.com пишет: http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables I think info from all comments in this thread must be included in cookbook. Without such layer,

Re: [SR-Users] var vs avp...

2013-04-19 Thread Alex Balashov
That is a general - and highly valid - objection to the state of Kamailio documentation. By and large, it's a reference, with no conceptual glue, in narrative form, or methodological instruction. There is only information on how to do X, not what X is or why you would want to do it. We are

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 13:55:37 +0200 Olle E. Johansson o...@edvina.net пишет: Please tell me what's missing from that page and I'll update. I don't see anything missing myself, but I could be documentation-blind, having spent so much time with it. What is $avp? What is $var? Whats the

Re: [SR-Users] var vs avp...

2013-04-19 Thread Alex Balashov
On 04/19/2013 08:26 AM, Victor V. Kustov wrote: What is $avp? What is $var? Whats the difference between that things? When I need use $avp? When I need use $var? Blackhole: concept model. Look, I spent more than month and make too little, 'cause two things: no concept model + megatons of

Re: [SR-Users] var vs avp...

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 14:26 skrev Victor V. Kustov coy...@bks.tv: В Fri, 19 Apr 2013 13:55:37 +0200 Olle E. Johansson o...@edvina.net пишет: Please tell me what's missing from that page and I'll update. I don't see anything missing myself, but I could be documentation-blind, having spent so

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 14:46:00 +0200 Olle E. Johansson o...@edvina.net пишет: We will certainly look into this. There are trainings, but no books and very few guides on the web. Please feel free to contribute, after all it is Open Source and we depend on community contributions in order to get

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 10:56:26 +0200 Olle E. Johansson o...@edvina.net пишет: - $avp is stored in transactions (in shared memory), so if you set them while processing a request you have them when processing responses and failures. is memory freeing automatically or i need to do it myself? --

Re: [SR-Users] var vs avp...

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 16:50 skrev Victor V. Kustov coy...@bks.tv: В Fri, 19 Apr 2013 10:56:26 +0200 Olle E. Johansson o...@edvina.net пишет: - $avp is stored in transactions (in shared memory), so if you set them while processing a request you have them when processing responses and failures.

Re: [SR-Users] var vs avp...

2013-04-19 Thread Carlos Ruiz Díaz
Use $var when you want to manipulate values inside a route block, for example, when you want to store a value that will live only in the scope of that route block. When the route block exits, it will be automatically deallocated. Use $avp when you want to store a value that you want to read