El Mon, 21 Jun 2010 19:16:05 -0400 Jeff Pyle <jp...@fidelityvoice.com> escribió:
> Mehdi, > > From a functioning Opensips 1.5 config file: > > route[22] { # Suppresses 100rel announcement > if (is_present_hf("Supported")) { > if (subst('/^(Supported:.*)100rel\s*,(.*)$/\1\2/i')) { > #xlog("L_INFO", "Removed 100rel support (1)\n"); > } else if (subst('/^(Supported:.*),\s*100rel(.*)$/\1\2/i')) { > #xlog("L_INFO", "Removed 100rel support (2)\n"); > } else if (search('^Supported:.*100rel.*$')) { > remove_hf("Supported"); > #xlog("L_INFO", "Removed 100rel support (3)\n"); > } > } > } > > I cannot take credit for this. There is a link somewhere on the opensips > website where someone had contributed this to it. I also cannot find that > link at the moment... > Thanks for the code even if you don't take credit for it. It's better than some code I made time ago :) There is aditional code to add in my case. I've been using this kind of code to disable 100rel negotiation between some Audiocodes and Nortel gw and a firmware buggy Motorola mta model. I've realized that: - Nortel uses "Allow" instead of "Supported", so the 100rel string must be erased in that header also. - Audiocodes adds "Required" when you set the 100rel support as optional, so I have to remove that header too. - Some vendors use "PRACK" instead of "100rel", so I had to find that string also to completely disable this beahaviour. _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users