[Serusers] Pass variables to log command

Chris Mason (Lists) lists at masonc.com
Sun Jul 10 17:28:46 CEST 2005


In learning to configure ser, it would seem very useful to log info such 
as the URI and other variables, but I can't see how to do it. Is there a 
way to include data in the log statements? Something like:

        # Is the call for the PSTN gateway?
        if (uri=~"^sip:1") {
                log(1,"Call for PSTN Gateway. Number called: $uri");
                forward(66.250.54.132, 5065);
                break;
        }


-- 
Chris Mason
NetConcepts
(264) 497-5670 Fax: (264) 497-8463
Int:  (305) 704-7249 Fax: (815)301-9759 
Cell: 264-235-5670
Yahoo IM: netconcepts_anguilla at yahoo.com 




More information about the sr-users mailing list