[OpenSIPS-Users] Modify SRS reply for SIPREC
KD
kdunlap at gmail.com
Mon Dec 6 13:51:12 EST 2021
Hi I have a bit of a problem.
I'm using the SIPREC module to record calls on a third party SRS. OpenSIPS
sends the INVITE to the SRS and the SRS responds back with a 200 OK
message. The problem is the SIPREC module relies on the label attributes to
be sent back from the INVITE message. According to RFC4574 there should be
no expectation that the SRS will reply with the labels the SRC sent in
their INVITE.
My thought was to use TEXTOPS to insert immediately after m=XXXX the
a:label:1 and a:label:2 .
In my onreply_route I have the following:
$var(mline1) = $(rb{sdp.line,m,0});
$var(mline2) = $(rb{sdp.line,m,1});
$var(found1) = search_append_body($var(mline1),"\na=label:1");
$var(found2) = search_append_body($var(mline2),"\na=label:2");
The found1 and found2 return a 1 however it seems like the SIPREC module
doesn't see the labels added.
SDP Body
v=0
o=4855 137607 0 IN IP4 192.168.50.123
s=xxxxx
c=IN IP4 192.168.50.123
t=0 0
m=audio 5064 RTP/AVP 0 8 101 <--- insert a=label:1 after this line
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 TELEPHONE-EVENT/8000
a=fmtp:101 0-15
a=recvonly
a=ptime:20
a=maxptime:1000
m=audio 5066 RTP/AVP 0 8 101 <---- insert a=label:2 after this line
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 TELEPHONE-EVENT/8000
a=fmtp:101 0-15
a=recvonly
a=ptime:20
a=maxptime:1000
Can I get some guidance? Is this even possible to do?
Thanks
KD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211206/8a3bb310/attachment.html>
More information about the Users
mailing list