[SR-Users] rtpengine destroys voice branch on multiple branch call

2016-12-26 Thread Yuriy Gorlichenko
Hi. I have 2 endpoints 1001 and 1002 1001 registered from 1 device 1002 registered from 2 devices at the same time When I called to 1002 kamailio makes 2 branches rtpengine_manage command called from branch rout for handling every branch directly (it can be different endoint types (ws/tls/udp) f

Re: [SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Diego Nadares
I made it work but I have to set multipart always in request route (as the manual says) to apply the changes. Just a comment. If I don't apply changes after append_body_part, kamailio crashes. if (is_method("INVITE") && !has_totag()) { set_body_multipart(); msg_app

[SR-Users] location

2016-12-26 Thread Slava Bendersky
Hello Everyone, Why save location will ignore on pv var when trying save on reply 200 OK. if(is_method("REGISTER") && fnmatch("$rs", "200")) { xlog("L_INFO", "OnReply: Registration is $rs OK saving --> $avp(rcvcontact) in db\n"); $var(oar) = "sip:" + $tU + "@" + $(avp(rcvcontact){uri.host}) +

Re: [SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Diego Nadares
Hi Sergey, Thanks for your reply. You are right. I added a test with results in the second email calling only set_body_multipart. Do you have any idea what is happening? Thanks again! Diego El El lun, 26 de dic. de 2016 a las 13:10, Sergey Basov < sergey.v.ba...@gmail.com> escribió: > Hi. >

Re: [SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Sergey Basov
Hi. As from textopsx module doc: "This function can be used from REQUEST_ROUTE or ONREPLY_ROUTE." And you have error in your log: "Dec 26 11:36:22 dwrfsd01 ./kamailio[8847]: ERROR: textopsx [textopsx.c:159]: msg_apply_changes_f(): invalid usage - not in request route" -- Sergey Basov 26 дек. 2

Re: [SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Diego Nadares
Sorry, I forgot to paste two log lines. . Dec 26 11:36:22 dwrfsd01 ./kamailio[8847]: ERROR: textopsx [textopsx.c:159]: msg_apply_changes_f(): invalid usage - not in request route Dec 26 11:36:22 dwrfsd01 ./kamailio[8847]: ERROR: textops [textops.c:1879]: append_multibody_helper(): Cannot get b

[SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Diego Nadares
Hi guys, I'm trying to append a content type to a message that has only one content type. I tried using just set_body_multipart and now I'm using set_body multipart and append_body_part with no success too. The result is a message with multipart but has "two" sdp and no gtd. It has the old sdp wi

[SR-Users] Fwd: help configure dispatcher in Amazon ec2

2016-12-26 Thread huan nguyen duy
Sorry i forgot to include config files for load balancer and sip server. Here it is: Config for Load balancer: http://pastebin.com/dnanQa1e Config for Sip server: http://pastebin.com/iYbTHsCC Steve Nguyen,

[SR-Users] help configure dispatcher in Amazon ec2

2016-12-26 Thread huan nguyen duy
Hi, I’m very appreciated if someone can figure out this problem for me. My aim is to setup HA Kamailio using Dispatcher module in Amazon EC2, system like this: soft phone 1(Linphone) —> | Load balancer—> | Sip Server huancomputer