sobomax     2008/05/29 04:43:37 CEST

  SER CVS Repository

  Modified files:
    modules/nathelper    nathelper.c nhelpr_funcs.c 
  Log:
  Change the way we append parameter to the end of SDP: instead of
  appending before the terminating CRLF, append it before any number of
  trailing CRs and LFs and prepend CFLF before appending. This should
  prevent nathelper from generating broken SDPs when brain-damaged UA
  sends us a request that has arbitrary number of CRs/LFs at the end of
  SDP (such as Fring 3.30 for example).
  
  Before:
  
  ----
  v=0
  o=- 1212022997 1212022997 IN IP4 xx.xxx.xxx.xx
  s=OSS RTP Session
  c=IN IP4 xx.xxx.xxx.xx
  t=0 0
  m=audio 9 RTP/AVP 96 3 107 8 0 101
  a=rtpmap:96 AMR/8000
  a=fmtp:96 mode-set=0
  a=rtpmap:3 GSM/8000
  a=rtpmap:107 iLBC/8000
  a=rtpmap:8 PCMA/8000
  a=rtpmap:0 PCMU/8000
  a=rtpmap:101 telephone-event/8000
  a=fmtp:101 0-15
  
  a=direction:active
  ----
  
  After:
  
  ----
  v=0
  o=- 1212026907 1212026907 IN IP4 xx.xxx.xxx.xx
  s=OSS RTP Session
  c=IN IP4 xx.xxx.xxx.xx
  t=0 0
  m=audio 9 RTP/AVP 96 3 107 8 0 101
  a=rtpmap:96 AMR/8000
  a=fmtp:96 mode-set=0
  a=rtpmap:3 GSM/8000
  a=rtpmap:107 iLBC/8000
  a=rtpmap:8 PCMA/8000
  a=rtpmap:0 PCMU/8000
  a=rtpmap:101 telephone-event/8000
  a=fmtp:101 0-15
  a=direction:active
  
  ----
  
  Revision  Changes    Path
  1.126     +26 -22    sip_router/modules/nathelper/nathelper.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/nathelper/nathelper.c.diff?r1=1.125&r2=1.126
  1.9       +16 -3     sip_router/modules/nathelper/nhelpr_funcs.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/nathelper/nhelpr_funcs.c.diff?r1=1.8&r2=1.9
_______________________________________________
Serdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/serdev

Reply via email to