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

2013-04-30 Thread Victor V. Kustov
В Tue, 30 Apr 2013 12:38:11 +0300 Vitaliy Aleksandrov пишет: > 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 with other system

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" пишет: 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: • valu

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

2013-04-29 Thread Victor V. Kustov
В Mon, 29 Apr 2013 14:46:34 +0200 "Olle E. Johansson" пишет: > 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-29 Thread Olle E. Johansson
29 apr 2013 kl. 14:44 skrev "Victor V. Kustov" : > В Mon, 29 Apr 2013 15:34:11 +0300 > Juha Heinanen пишет: > > >> 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

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

2013-04-29 Thread Victor V. Kustov
В Mon, 29 Apr 2013 15:34:11 +0300 Juha Heinanen пишет: > 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:29 skrev "Victor V. Kustov" : > В Fri, 19 Apr 2013 14:46:00 +0200 > "Olle E. Johansson" пишет: > >> 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 dep

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 Victor V. Kustov
В Fri, 19 Apr 2013 14:46:00 +0200 "Olle E. Johansson" пишет: > 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 documentati

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

2013-04-22 Thread Yufei Tao
nts. Yufei On 19/04/13 16:00, sr-users-requ...@lists.sip-router.org wrote: > Date: Fri, 19 Apr 2013 11:00:25 -0400 > From: Carlos Ruiz D?az > Subject: Re: [SR-Users] var vs avp... > To: "Kamailio (SER) - Users Mailing List" > > Message-ID: > > Content-Ty

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 anywhe

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

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 16:50 skrev "Victor V. Kustov" : > В Fri, 19 Apr 2013 10:56:26 +0200 > "Olle E. Johansson" пишет: > >> - $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 fr

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

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 10:56:26 +0200 "Olle E. Johansson" пишет: > - $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? -- SY,

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

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 14:46:00 +0200 "Olle E. Johansson" пишет: > 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 documentat

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

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 14:26 skrev "Victor V. Kustov" : > В Fri, 19 Apr 2013 13:55:37 +0200 > "Olle E. Johansson" пишет: > >> 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.

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 outdat

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

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 13:55:37 +0200 "Olle E. Johansson" пишет: > 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 difference between t

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 tryi

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

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 13:52 skrev "Victor V. Kustov" : > В Fri, 19 Apr 2013 11:54:18 +0300 > Juha Heinanen пишет: > >> 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

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

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 11:54:18 +0300 Juha Heinanen пишет: > 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. -- SY,

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

2013-04-19 Thread Alex Balashov
You can have arrays of $vars too, though that is probably not what you meant by "stacks". "Olle E. Johansson" wrote: > >19 apr 2013 kl. 10:43 skrev "Victor V. Kustov" : > >> Hi! >> >> whats difference $var() and $avp()? > >There's a whole set of differences. > >- $var is stored in process memo

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

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 10:54 skrev Vitaliy Aleksandrov : > 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 other messa

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

2013-04-19 Thread Olle E. Johansson
19 apr 2013 kl. 10:43 skrev "Victor V. Kustov" : > 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 when process

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

2013-04-19 Thread Vitaliy Aleksandrov
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 other messages. $avp() - is bound to a transaction. If you set $avp(xxx) for an

[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 http://l

[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-use