I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
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