Re: [OpenSIPS-Users] Users Digest, Vol 133, Issue 45

2019-08-26 Thread Steve Kumar
Re: OpenSIPS2.4 Cluster Module Dialog Sync (Liviu Chircu)

*Thanks, It's working now.  *


On Sun, Aug 25, 2019 at 11:00 AM  wrote:

> Send Users mailing list submissions to
> users@lists.opensips.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-requ...@lists.opensips.org
>
> You can reach the person managing the list at
> users-ow...@lists.opensips.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>1. Re: OpenSIPS2.4 Cluster Module Dialog Sync (Liviu Chircu)
>
>
> --
>
> Message: 1
> Date: Sun, 25 Aug 2019 10:22:45 +0300
> From: Liviu Chircu 
> To: OpenSIPS users mailling list , Steve
> Kumar 
> Subject: Re: [OpenSIPS-Users] OpenSIPS2.4 Cluster Module Dialog Sync
> Message-ID: <3da26832-4d94-3ae8-8aeb-db5497f50...@opensips.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 24.08.2019 01:50, Steve Kumar wrote:
> > clusterer:send_sync_req: Sent sync request for capability
> > 'dialog-dlg-repl' to node 1, cluster 1
> > Aug 23 17:45:10 openSIPS-1 /usr/local/sbin/opensips[20714]:
> > INFO:clusterer:handle_sync_packet: discarding sync packet version 1,
> > need version 2
> > Aug 23 17:45:10 openSIPS-1 /usr/local/sbin/opensips[20714]:
> > INFO:clusterer:handle_sync_packet: discarding sync packet version 1,
> > need version 2
> >
> Hey Steve,
>
> Your opensips instances have different package versions, and the sync
> protocol is incompatible between them.
> Make sure to also upgrade the primary (seed) node's opensips packages,
> then the sync will work again.
>
> Best regards,
>
> --
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
>
>
>
> --
>
> Subject: Digest Footer
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> --
>
> End of Users Digest, Vol 133, Issue 45
> **
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] sipmsgops.so / codec_delete_except_re

2019-08-26 Thread Alexey Kazantsev via Users
Hi list

Trying to delete all codecs except one.
No success.


route[relay] {
if (is_method("INVITE")) {
t_on_branch("per_branch_ops");
t_on_reply("handle_nat");
t_on_failure("1");
}

script_trace( 1, "$rb(application/sdp)", "trace_codecs");
codec_delete_except_re("pcm"); #will delete all codecs except PCMA and 
PCMU
script_trace();

if (!t_relay()) {
send_reply(500,"Internal Error");
}
exit;
}


Tried several variants: pcm, pcma, PCMA, PCMA|PCMU,
started from an example in the documentation.

What I see in trace:

   [Script Trace][/etc/opensips/opensips.cfg:314][trace_codecs][module 
codec_delete_except_re] -> ()
   [Script Trace][/etc/opensips/opensips.cfg:315][trace_codecs][core 
script_trace] -> ()
   [Script Trace][/etc/opensips/opensips.cfg:314][trace_codecs][module 
codec_delete_except_re] -> ()
   [Script Trace][/etc/opensips/opensips.cfg:315][trace_codecs][core 
script_trace] -> ()

What I'm doing wrong?

---
BR, Alexey
http://alexeyka.zantsev.com/
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users