[OpenSIPS-Users] Pass calls to another realm via gateway

Alexander goal81 at gmail.com
Mon Nov 2 13:32:20 CET 2009


  Thank you very much, Thomas! It seems to work :) I did something like
this:

  if (is_present_hf("User-Agent"))
  {
      remove_hf("User-Agent");
      remove_hf("P-Asserted-Identity");
      subst("/^From: \".+\" (<sip: *[a-zA-Z0-9_\.-]+ at .*>)/From: \1/ig");
      subst("/^To: \".+\" (<sip: *[a-zA-Z0-9_\.-]+ at .*>)/To: \1/ig");
   }

   if (has_body("application/sdp"))
   {
       replace_body("^a=rtpmap:0 PCMU/8000\r\n", "");
       replace_body("^a=rtpmap:8 PCMA/8000\r\n", "");
       replace_body("^s=[ A-Za-z0-9\._/-]+\r\n",  "s=-\r\n");
   }

   This cuts enough bytes to make our dumb gateway accept requests.

2009/11/2 Thomas Gelf <thomas at gelf.net>

> Iñaki Baz Castillo wrote:
> > El Viernes, 30 de Octubre de 2009, Alexander escribió:
> >> BTW, what do you think about possible performance loss because of TCP?
> Or
> >>  it's neglible?
> >
> > The problem of SIP TCP in OpenSIPS is not the performance, but the fact
> that
> > each running OpenSIPS process blocks until its TCP transaction in
> processed.
>
> Alexander: I faced issues with stupid devices unable to handle fragmen-
> ted UDP packets several times. TCP would help, however as Iñaki wrote it
> also has some drawbacks. I tried to write down some suggestions on how
> to solve this issue:
>
>
> http://thomas.gelf.net/blog/archives/Smaller-SIP-packets-to-avoid-fragmentation,27.html
>
> This is not what a proxy should usually do - but, honestly: who cares if
> it helps? I'm doing so on my productional systems (OpenSIPS 1.6), and I
> didn't meet any issues so far.
>
> Iñaki, others: I'm pretty curious about your valued opinion on this - as
> you definitively have deeper SIP knowledge than I do.
>
> Cheers,
> Thomas
>
> --
>  mail: thomas at gelf.net
>  web: http://thomas.gelf.net/
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091102/f2168c6a/attachment.htm 


More information about the Users mailing list