i made a typo in script and wrote $domain instead of $var(domain). then i started sip router and didn't get any error messages.
what does $name stand for when $name is not any of the ones listed in SIP Router Pseudo-Variables document?
-- juha
On 3/24/10 3:52 PM, Juha Heinanen wrote:
i made a typo in script and wrote $domain instead of $var(domain). then i started sip router and didn't get any error messages.
what does $name stand for when $name is not any of the ones listed in SIP Router Pseudo-Variables document?
if $name is not found as PV, then it is same as $avp(name) -- $name is the SER way of using AVPs in cfg. I don't remember right now if you can force error reporting: if PV is not found then throw error (full kamailio 1.5 compatibility behaviour).
Cheers, Daniel
Daniel-Constantin Mierla writes:
if $name is not found as PV, then it is same as $avp(name) -- $name is the SER way of using AVPs in cfg. I don't remember right now if you can force error reporting: if PV is not found then throw error (full kamailio 1.5 compatibility behaviour).
daniel,
thanks for the explanation. i could not find this information in "SIP Router Pseudo-Variables" document.
in my case, i was assigning $domain a value, so no errors would have been produced anyway.
perhaps it would be a good idea if script writer could choose the used avp mode ($avp(name) or $name) and then errors would be reported if the mode is not followed.
-- juha