Hello,

  I'm having a lot of fun with SEMS but I'm now looking for a way to
conditionally change/add/remove specified SDP parameters (for now just
attributes). So, for example if my A leg SDP is such:

   v=0
   o=- 1436372667 1436372668 IN IP4 192.168.113.17
   s=-
   c=IN IP4 192.168.113.17
   t=0 0
   m=audio 22002 RTP/AVP 0 8 101
   a=rtpmap:0 PCMU/8000
   a=rtpmap:8 PCMA/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=sendrecv
   a=silenceSupp:off - - - -
   a=ptime:20

  I'd like to be able to conditionally (based on direction, offer vs
answer, etc) modify it to something like the following for the B leg:

   v=0
   o=- 1436372667 1436372668 IN IP4 192.168.113.17
   s=-
   c=IN IP4 192.168.113.17
   t=0 0
   m=audio 22002 RTP/AVP 0 8 101
   a=rtpmap:0 PCMU/8000
   a=rtpmap:8 PCMA/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=sendrecv
   a=silenceSupp:off - - - -
   a=ptime:20
   a=semsmedia:yes

  Of course in real life the IP and connection information would
change as well, I'm just trying to show the additional attribute.

  Specific use case (for now) is in conjunction with the Kamailio
nathelper module and the nortpproxy_str parameter to prevent redundant
SDP mangling.

  Any ideas on how this can be done with the SEMS SBC application?

Thanks!

-- 
Kristian Kielhofner
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to