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
Posted on 2009-07-28 11:46:05-07 by noxxi in response to 11223
Re: Regarding a subroutine
just look into the documentation
perldoc Net::SIP::Simple::Call describes, what arguments the cb_preliminary callback gets.
I hope, this answered your question, otherwise try asking a bit different, so that I can understand your problem.
Regards,
Steffen (Author of Net::SIP)
Direct Responses: 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.