[SR-Users] is $td.did avp a normal avp?

Jan Janak jan at ryngle.com
Tue Apr 26 21:26:22 CEST 2011


On Tue, Apr 26, 2011 at 9:19 PM, Klaus Darilion
<klaus.mailinglists at pernau.at> wrote:
> Jan Janak wrote:
>>
>> On Tue, Apr 26, 2011 at 8:42 PM, Klaus Darilion
>> <klaus.mailinglists at pernau.at> wrote:
>>>
>>> Jan Janak wrote:
>>>>
>>>> On Tue, Apr 26, 2011 at 7:41 PM, Klaus Darilion
>>>> <klaus.mailinglists at pernau.at> wrote:
>>>>>
>>>>> Not helping with this issue - but having another question: what is
>>>>> $td.did?
>>>>> Is it a pseudo variable (as it starts with $)? Is it somehow
>>>>> related/derived
>>>>> to/from $td or is the '.' just a character like a-z?
>>>>
>>>> This is the SER syntax for AVP names, see
>>>> http://sip-router.org/wiki/devel/avps-ser
>>>
>>> Aha. But how does sip-router decide if $td is a ser AVP or a Kamailio
>>> pseudo
>>> variable?
>>
>> If it starts with ${fu,tu,fd,td,g}. then it is taken as a SER AVPs,
>> otherwise it is a Kamailio pseudo variable.
>
> Not sure if I got it right. I guess if I use $fu it will be Kamailio's
> from-URI pseudo variable as there is no ser $fu AVP as $fu is only the
> prefix and not the full AVP name, a full ser AVP name would be for example
> $fu.foo.
>
> Is this correct?

Correct, there is a special case for a small number of well-known SER
AVP name prefixes, everything else is considered Kamailio
pseudo-variable. This is a temporary measure to make both syntaxes
work.

-Jan



More information about the sr-users mailing list