+----+------+------------------+--------+-----------+------+-------+---------------------+ | id | uuid | username | domain | attribute | type | value | last_modified | +----+------+------------------+--------+-----------+------+-------+---------------------+ | 1 | | 003912345678 | | fork | 0 | 1001 | | | 2 | | 003912345678 | | fork | 0 | 1002 | | +----+------+------------------+--------+-----------+------+-------+---------------------+
if (is_method("INVITE")) { xlog("L_INFO", "REQUEST Invite - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); if(avp_db_load("$ru/username","$avp(s:fork)")) { avp_pushto("$ru/username","$avp(s:fork)/g"); } if(!lookup("location")) { xlog("L_INFO", "Local user offline - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); sl_send_reply("404", "User Offline"); exit; } else { xlog("L_INFO", "Local user online - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); t_relay(); } }