in reply to Re: Config file default options?
in thread Config file default options?


Hi Davorg

I am facing little problem. By using your program i got the header values which is either default values or user defined values.But the problem is that from the same program suppose i got the values for a INVITE request, during the running of the program i suppose use your program for getting the header values of a ACK request, then the values of the hash (%cnf) are not changed. It takes the previous value which is stored during the procesing of the INVITE request. How it can take different values for different requests?

Replies are listed 'Best First'.
Re^3: Config file default options?
by davorg (Chancellor) on Oct 05, 2006 at 08:54 UTC

    Sounds like a scoping issue to me. You need to ensure that each time you process an new message that you also create a new %cnf variable. I'd guess that you need to add my %cnf; near the start of your processing loop.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg