Jan Janak writes:
route[DOMAIN]
{
# Check whether the caller is from a local domain.
lookup_domain("$fd", "(a)from.uri.host")ost");
> # Check whether the callee is at a local domain
lookup_domain("$td", "(a)ruri.host")ost");
}
> The first call will store the did of the domain in $fd.did if
it finds a
match. The second call will store the did in
$td.did.
jan,
i start to get it, although i'm not familiar with ser's avp naming
system. can each avp name be followed by .something? what does @ sign
mean in front of ruri.host in above? can the same call be written as:
lookup_domain("$td", "$rd") ?
Identifiers starting with $ denote AVPs. Identifiers starting with @ denote
selects. Selects are similar to pseudo-variables in Kamailio.