|
|
|
|
@ -167,7 +167,7 @@ SDP
|
|
|
|
|
rcv_no($sock_sig);
|
|
|
|
|
|
|
|
|
|
$NGCP::Rtpengine::req_cb = sub {
|
|
|
|
|
($port_sig, $addr_sig, $cookie, $port_tc) = rcv($sock_sig, -1, qr/^(.{16}) d7:command9:transform5:mediald4:type5:audio5:codecld5:inputd5:codec4:PCMA12:payload typei8e10:clock ratei8000e8:channelsi1e6:format0:7:options0:e6:outputd5:codec4:PCMU12:payload typei0e10:clock ratei8000e8:channelsi1e6:format0:7:options0:eee11:destinationd6:family3:IP47:address11:203.0.113.14:porti(\d{5})eeee8:instance12:.{12}e$/);
|
|
|
|
|
($port_sig, $addr_sig, $cookie, $port_tc) = rcv($sock_sig, -1, qr/^(.{16}) d7:command9:transform5:mediald4:type5:audio5:codecld5:inputd5:codec4:PCMA12:payload typei8e10:clock ratei8000e8:channelsi1e6:format0:7:options0:e6:outputd5:codec4:PCMU12:payload typei0e10:clock ratei8000e8:channelsi1e6:format0:7:options0:eee11:destinationd6:family3:IP47:address11:203.0.113.14:porti(\d{5})eeee9:interface7:default8:instance12:.{12}e$/);
|
|
|
|
|
snd($sock_sig, $port_sig, $cookie . ' ' . Bencode::bencode( {
|
|
|
|
|
result => 'ok',
|
|
|
|
|
'call-id' => 'foobar',
|
|
|
|
|
@ -249,7 +249,7 @@ $NGCP::Rtpengine::req_cb = undef;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$NGCP::Rtpengine::req_cb = sub {
|
|
|
|
|
($port_sig, $addr_sig, $cookie, $port_tc) = rcv($sock_sig, -1, qr/^(.{16}) d7:command9:transform5:mediald4:type5:audio5:codecld5:inputd5:codec4:PCMA12:payload typei8e10:clock ratei8000e8:channelsi1e6:format0:7:options0:e6:outputd5:codec4:PCMU12:payload typei0e10:clock ratei8000e8:channelsi1e6:format0:7:options0:eee11:destinationd6:family3:IP47:address11:203.0.113.14:porti(\d{5})eeee8:instance12:.{12}e$/);
|
|
|
|
|
($port_sig, $addr_sig, $cookie, $port_tc) = rcv($sock_sig, -1, qr/^(.{16}) d7:command9:transform5:mediald4:type5:audio5:codecld5:inputd5:codec4:PCMA12:payload typei8e10:clock ratei8000e8:channelsi1e6:format0:7:options0:e6:outputd5:codec4:PCMU12:payload typei0e10:clock ratei8000e8:channelsi1e6:format0:7:options0:eee11:destinationd6:family3:IP47:address11:203.0.113.14:porti(\d{5})eeee9:interface7:default8:instance12:.{12}e$/);
|
|
|
|
|
snd($sock_sig, $port_sig, $cookie . ' ' . Bencode::bencode( {
|
|
|
|
|
result => 'ok',
|
|
|
|
|
'call-id' => 'foobar',
|
|
|
|
|
|