18 |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
19 |
|
|
20 |
string |
string |
21 |
show_station_ids() |
default_log_prefix(string reqtype, string nas, integer id) |
22 |
{ |
{ |
23 |
string clid, csid; |
string result; |
24 |
|
|
25 |
|
result = "(" + reqtype + " " + nas + " " + (string)id + " " + |
26 |
|
%[User-Name]; |
27 |
if (*%[Calling-Station-Id]) |
if (*%[Calling-Station-Id]) |
28 |
clid = %[Calling-Station-Id]; |
result = result + " CLID=" + %[Calling-Station-Id]; |
|
else |
|
|
clid = "Unknown"; |
|
29 |
if (*%[Called-Station-Id]) |
if (*%[Called-Station-Id]) |
30 |
csid = %[Called-Station-Id]; |
result = result + " CSID=" + %[Called-Station-Id]; |
31 |
else |
return result + "): "; |
|
csid = "Unknown"; |
|
|
return "CLID " + clid + ", CSID " + csid; |
|
32 |
} |
} |
33 |
|
|