Posted on 2009-07-28 11:39:34-07 by canguy001
Regarding a subroutine
Hi all, Can anyone explain me the flow of the following code. I am a newbie to perl,but i am working on a SIP Module. here in this below programe i want to know how they are getting the values for $code. Please help me on this.
sub uac { my ($peer_addr,$pipe) = @_; my $call = $uac->invite( 'you.uas@example.com', cb_preliminary => sub { my ($self,$code,$packet) = @_; if ( $code == 180 ) { diag( 'got ringing' ); $ringing ++ } } ); }
Direct Responses: 11224 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.