[SR-Users] Os on virtual machine

2017-02-01 Thread Diego Nadares
Hi guys, We are using vmware to run kamailio. The thing is that they give us support only if we install Red Hat. Did you test kamailio on RH? Any issues or things to have in mind? What linux dist do you recommend? Thanks! Diego. ___ SIP Express

Re: [SR-Users] Os on virtual machine

2017-02-04 Thread Diego Nadares
Thank you all, guys! Diego. El El jue, 2 de feb. de 2017 a las 06:42, Daniel-Constantin Mierla < mico...@gmail.com> escribió: > Hello, > > > On 01/02/2017 23:05, Diego Nadares wrote: > > Hi guys, > > > > We are using vmware to run kamailio. The thing is that

Re: [SR-Users] mhomed opened sockets

2017-01-29 Thread Diego Nadares
et) -- maybe it track that there was some traffic and > remembers that for a while. Perhaps reading the manual of netstat will help > to understand better. > > Cheers, > Daniel > > On 26/01/2017 22:03, Diego Nadares wrote: > > Hi list, > > Any help on this? > > Cheers. > &

Re: [SR-Users] mhomed opened sockets

2017-01-26 Thread Diego Nadares
Hi list, Any help on this? Cheers. Diego. 2017-01-25 16:29 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi Guys, > > We have two network interfaces. One public and one private. We had enabled > mhomed and works great BUT if we do a netstat -naup | grep 5060 we see t

[SR-Users] mhomed opened sockets

2017-01-25 Thread Diego Nadares
Hi Guys, We have two network interfaces. One public and one private. We had enabled mhomed and works great BUT if we do a netstat -naup | grep 5060 we see that some sockets keeps opened also when the call is finished. The source port in netstat it's not 5060 so I suppose that kamailio use another

Re: [SR-Users] Remove/Append headers in 200 canceling and 200 ok to BYE

2017-01-16 Thread Diego Nadares
esn't get inside the > onreply_route -- this block is only for SIP replies received by kamailio. > > However, the 200ok for CANCEL should have limited (minimal) number of > headers. Which ones besides the Server do you want to remove? > > Cheers, > Daniel > On 13/01/2017 19:00

[SR-Users] Get ip from contact on redirect

2017-01-20 Thread Diego Nadares
Hi Guys, Anybody knows how to get the ip of the new contact of the redirect? I need it to update one xavp variable that contains the INVITE destination. 6 2017-01-20 12:44:55.138473 172.16.213.38 *172.16.208.121* SIP/SDP 85 Request: INVITE sip:01152780776@172.16.208.121:5060 | 9 2017-01-20

[SR-Users] rtjson + uac + event - OK, ACK and BYE display name not updated

2016-12-06 Thread Diego Nadares
Hi Guys, We are modifying "from" and "to" headers with rtjson module via a json struct. It works fine in INVITE, TRYING, RINGING and OK but not in the following messages. Kamailio It's changing ONLY "from" and "to" URI BUT NOT the DISPLAY NAME. I think it's the tm module but I can't figure out

Re: [SR-Users] rtjson + uac + event - OK, ACK and BYE display name not updated

2016-12-07 Thread Diego Nadares
to be changed from RFC point of view. > > You can try with uac configured to use dialog for storing From/To values > instead of relying on record route parameters -- I haven't tried myself. > Cheers, > Daniel > > > On 06/12/2016 19:24, Diego Nadares wrote: > > Hi Guy

Re: [SR-Users] sipp dead calls

2016-12-14 Thread Diego Nadares
t;: > Hey Diego, > > This smells like a sipP scenario file issue. Did you customize the the > scenario file being used by sipP B? > > -Mack > > On Dec 14, 2016, at 3:23 PM, Diego Nadares <dnada...@gmail.com> wrote: > > Hi guys, > > We are testing kamailio with sipp. We a

[SR-Users] sipp dead calls

2016-12-14 Thread Diego Nadares
Hi guys, We are testing kamailio with sipp. We are running it with 20cps and some calls do the following. When Kamailio is processing the 'ringing' a '200ok' arrives in the middle. First, kamailio forwards the 200 ok and then the ringing. 'ACK' arrives and, I suppose, the call is established. The

Re: [SR-Users] ACK not routed to destination

2016-12-15 Thread Diego Nadares
Hi Wim, Check this: Dec 15 15:12:02 DNS-enum-8Gb-3 kamailio[6864]: 1(6883) DEBUG: tm [t_lookup.c:485]: matching_3261(): DEBUG: *RFC3261 transaction matching failed* Maybe is related rrs. Add it to your sipp scenarios. Diego 2016-12-15 11:13 GMT-03:00 Wim Van Cauwenbergh

Re: [SR-Users] sipp dead calls

2016-12-16 Thread Diego Nadares
the call wasn't established? Any help we'll be appreciated. Thanks in advance. Diego! El El mié, 14 de dic. de 2016 a las 18:22, Diego Nadares <dnada...@gmail.com> escribió: > Hi Mack, > > The only thing I added to the basic scenarios is rrs="true" > > In

Re: [SR-Users] Remove/Append headers in 200 canceling and 200 ok to BYE

2017-01-13 Thread Diego Nadares
("onreply_route")) > t_on_reply("MANAGE_REPLY_ON_BYE"); > } > ... > } > > and adding route > onreply_route[MANAGE_REPLY_ON_BYE] { > route(RemoveHeader); > xlog("L_INFO","route MANAGE_REPLY_ON_BYE entered \n&

[SR-Users] Remove/Append headers in 200 canceling and 200 ok to BYE

2017-01-12 Thread Diego Nadares
Hi List, I'm trying to add and remove some headers in 200 canceling and 200 ok to BYEs with no success. I don't know in which route to add my remove_hf and append_hf. It seems that I can't catch it on reply either on request route. I tried adding it in event_route[tm:local-response] {

Re: [SR-Users] Remove/Append headers in 200 canceling and 200 ok to BYE

2017-01-13 Thread Diego Nadares
If you need any additional data please let me know. Cheers, Diego 2017-01-12 15:04 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi Daniel! > > Thanks for your answer. The idea is to show only a few headers. In BYE > works great. I'm removing and adding the following hdr

Re: [SR-Users] Remove/Append headers in 200 canceling and 200 ok to BYE

2017-01-12 Thread Diego Nadares
, that may be added by > Kamailio in local generate request. There is a global parameter to control > it as well. > If you want more than that, can you add a bit more details, because CANCEL > and BYE are processed differently. With which one you get issues? > > Cheers, >

Re: [SR-Users] CDR - acc_cdrs

2017-01-05 Thread Diego Nadares
Hi Annus, Did you set the flags for those calls you want to account? I have something like this in my request route if (is_method("INVITE") && !has_totag()) { setflag(FLT_ACC); # do accounting dlg_manage(); setflag(FLT_ACCMISSED);

Re: [SR-Users] CDR - acc_cdrs

2017-01-05 Thread Diego Nadares
... even if the > transaction fails > } > > Regards > > El 05/01/2017 a las 09:54, Diego Nadares escribió: > > Hi Annus, > > Did you set the flags for those calls you want to account? > > I have something like this in my request route >

Re: [SR-Users] [Error] Install Kamailio 4.4 in Mac 10.12

2017-01-09 Thread Diego Nadares
Hi Luis, Do you have mysql installed? Because it's not finding those headers. El El lun, 9 de ene. de 2017 a las 05:21, Luis De Marchi < l...@snowmanlabs.com> escribió: > Hi, > > Sorry, my english, I'm using the translator. > I'm having trouble installing Kamailio for Mac 10.12 > > Terminal: >

Re: [SR-Users] [Error] Install Kamailio 4.4 in Mac 10.12

2017-01-09 Thread Diego Nadares
In my mac: I think that mysql dmg installed comes with dev headers too. dnadaress-MacBook-Air:~ dnadares$ locate mysql.h /usr/local/mysql-5.6.19-osx10.7-x86_64/include/mysql.h cheers. Diego. 2017-01-09 9:27 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi Luis, > > Do

Re: [SR-Users] rtjson + mhomed and record route (corrected)

2016-12-23 Thread Diego Nadares
: <sip:127.0.0.8;line=sr-N6IAzBFsMGZLM>. So, it;s working now! Cheers, Diego 2016-12-22 12:20 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi list, > > We have two eth, one with a private ip and the other with a public ip. We > have MHOMED configured. The call comes fro

Re: [SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Diego Nadares
- not in request route" > > -- > Sergey Basov > > > 26 дек. 2016 г. 5:05 PM пользователь "Diego Nadares" <dnada...@gmail.com> > написал: > > Sorry, I forgot to paste two log lines. > > . > Dec 26 11:36:22 dwrfsd01 ./kamailio[8847]: ERROR:

[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

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

Re: [SR-Users] set_body_multipart and append_body_part

2016-12-26 Thread Diego Nadares
this would be a new request) Cheers. Diego. 2016-12-26 13:21 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > 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 yo

Re: [SR-Users] rtjson + uac + event - OK, ACK and BYE display name not updated

2016-12-07 Thread Diego Nadares
Hi Daniel, thanks again. I modified the code and now it's working as I need. Do you think this could be useful for anybody else? If so I can show/send you the code to verify it's ok and then ask for a pull request. Thanks again! Diego ___ SIP Express

Re: [SR-Users] Socket in rtjson module

2016-12-22 Thread Diego Nadares
Daniel, It works like a charm! Thanks again! Diego. 2016-12-22 10:17 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Thanks Daniel, I will try it today! > > Cheers, > > Diego > > 2016-12-22 5:17 GMT-03:00 Daniel-Constantin Mierla <mico...@gmail.com>: &g

Re: [SR-Users] Socket in rtjson module

2016-12-22 Thread Diego Nadares
s, > Daniel > > On 21/12/2016 15:50, Diego Nadares wrote: > > Hi Guys, > > Anybody knows if each 'socket' specified in routes struct should be use to > send the messages? > > The socket is configured in kamailio. > > In kamailio.cfg > listen=udp:172.16.213.38:5

[SR-Users] Socket in rtjson module

2016-12-21 Thread Diego Nadares
Hi Guys, Anybody knows if each 'socket' specified in routes struct should be use to send the messages? The socket is configured in kamailio. In kamailio.cfg listen=udp:172.16.213.38:5060 json struct "routes": [ { "uri": "sip:127.0.0.1:5080", "dst_uri": "sip:127.0.0.1:5082", "path": ", ",

[SR-Users] rtjson + mhomed and record route

2016-12-22 Thread Diego Nadares
Hi list, We have two eth, one with a private ip and the other with a public ip. We have MHOMED configured. The call comes from private network and then is routed to a public network via rtjson routing. The is routed but the thing is that the record route is being set with the private one (It's

Re: [SR-Users] rtjson + mhomed and record route (corrected)

2016-12-22 Thread Diego Nadares
remove preloaded route headers remove_hf("Route"); if (is_method("INVITE|SUBSCRIBE")) { record_route(); } Thanks in advance. Diego 2016-12-22 12:08 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi list, > > We ha

Re: [SR-Users] Cdr on shutdown

2017-03-16 Thread Diego Nadares
Thanks guys. I'm using db_mode = 1 now. It works great with mysql with myisam tables. Cheers. Diego 2017-03-08 6:30 GMT-03:00 Daniel Tryba <d.tr...@pocos.nl>: > On Tue, Mar 07, 2017 at 11:06:20AM -0300, Diego Nadares wrote: > > Today I started testing dialog with db_mod

Re: [SR-Users] f_malloc WARNINGS in syslog

2017-03-17 Thread Diego Nadares
Thanks Daniel! 2017-03-17 4:22 GMT-03:00 Daniel-Constantin Mierla <mico...@gmail.com>: > Hello, > > set memdbg and memlog parameters to a higher value than debug parameter. > The messages are useful only if you troubleshoot memory operations. > > Cheers, > Daniel >

Re: [SR-Users] Generate extra cdr per dialog

2017-03-18 Thread Diego Nadares
Sorry, Im reading that acc supports Multi Call-Legs accounting. That's exactly what I need. I'll try with this first. Thanks! Diego. 2017-03-17 16:21 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi Guys, > > I'm using acc module for accounting with the following conf: >

Re: [SR-Users] No cdr after Kamailio 5.0 restart

2017-03-20 Thread Diego Nadares
I didn't mention that I did this on kamailio 4.4. Cheers, Diego 2017-03-20 16:38 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi Lucian, > > I made a few changes like you and I think it's working. Loads dialogs and > generate cdr. It needs more testing. The function cdr

Re: [SR-Users] No cdr after Kamailio 5.0 restart

2017-03-20 Thread Diego Nadares
Hi Lucian, I made a few changes like you and I think it's working. Loads dialogs and generate cdr. It needs more testing. The function cdr_on_load it's copy and paste to avoid touching those params in on_create. A lot of improve is needed. diff --git a/modules/dialog/dialog.c

Re: [SR-Users] No cdr after Kamailio 5.0 restart

2017-03-21 Thread Diego Nadares
request via github.com/kamailio/kamailio -- it makes it easier to review > as well as have the patch compiled by Travic CI before merging, so we can > spot the basic conflicts if any. The patch has to be for master branch, to > be merged directly. > > On Mon, Mar 20, 2017 at 8:40 PM, Diego

[SR-Users] Generate extra cdr per dialog

2017-03-17 Thread Diego Nadares
Hi Guys, I'm using acc module for accounting with the following conf: modparam("acc", "cdr_enable", 1) modparam("acc", "cdr_expired_dlg_enable", 1) modparam("acc", "cdr_start_on_confirmed", 1) modparam("acc", "cdr_facility", "LOG_LOCAL1") modparam("acc", "cdr_end_id", "end_time_dt")

[SR-Users] ACC - Cdr enabled

2017-03-20 Thread Diego Nadares
Hi guys, I have configured to use cdr with extra fields modparam("acc", "cdr_extra", *"sip_code=$rs;sip_reason=$rr;"* "hangup_src=$dlg_var(hangup_disposition);" "prefix=$dlg_var(prefix);gos=$dlg_var(gos);endpoint_type=$ dlg_var(endpoint_type);"

Re: [SR-Users] ACC - Cdr enabled

2017-03-20 Thread Diego Nadares
I figured out that I can get start_time and end_time from dlg_vars. The only thing left is hangup cause. Any help with this? Thanks! 2017-03-20 9:46 GMT-03:00 Diego Nadares <dnada...@gmail.com>: > Hi guys, > > I have configured to use cdr with extra fields > > modpa

Re: [SR-Users] ACC - Cdr enabled

2017-03-20 Thread Diego Nadares
> Regards, > Szabolcs > > 2017-03-20 14:45 GMT+01:00 Diego Nadares <dnada...@gmail.com>: > >> Hi, >> >> Sorry, . I meant the sip_code/sip_reason of the message that hangup the >> call. >> >> For example: >> >>

Re: [SR-Users] ACC - Cdr enabled

2017-03-20 Thread Diego Nadares
ory. I think you have to > know the name of the header which contains the cause code and you can read > it. > > if (is_present_hf("X-Asterisk-HangupCauseCode")) xlogl("LOG_LOCAL0", > "L_ALERT", $hdr(X-Asterisk-HangupCauseCode)); > > Regards, > Szabolc

Re: [SR-Users] Disable DNS

2017-04-10 Thread Diego Nadares
Route"); if (is_method("INVITE|SUBSCRIBE")) { *$rd = $Ri; * record_route(); } Cheers, Diego 2017-04-10 5:28 GMT-03:00 Daniel Tryba <d.tr...@pocos.nl>: > On Sat, Apr 08, 2017 at 09:24:29PM -0300, Diego Nadares wrote: > > ERROR:

Re: [SR-Users] Disable DNS

2017-04-10 Thread Diego Nadares
Thanks again Daniel. Cheers, Diego 2017-04-10 13:14 GMT-03:00 Daniel Tryba <d.tr...@pocos.nl>: > On Mon, Apr 10, 2017 at 12:34:51PM -0300, Diego Nadares wrote: > > Thanks for your response. Your suggestion helped me a lot. We don't use > > domains so instead a domain I se

[SR-Users] Disable DNS

2017-04-08 Thread Diego Nadares
Hi Guys, Is it possible to disable using of dns in kamailio? The thing is that not all INVITES that arrives to the proxy comes with ip 172.16.205.25/PUB_IP in the ruri. Some gateways sends a string in ruri -> @myproxysip and others sends @other.domain.com Request-Line: INVITE

[SR-Users] Cdr on shutdown

2017-03-07 Thread Diego Nadares
Hi Guys, Is it possible to generate cdrs or to save dialogs to db when kamailio receives a kill signal from terminal? Thanks in advance. Diego ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] Cdr on shutdown

2017-03-07 Thread Diego Nadares
from terminal, the dialog module does not save any data. It only works when I execute kamctl stop. Cheers, Diego. 2017-03-07 10:49 GMT-03:00 Daniel Tryba <d.tr...@pocos.nl>: > On Tue, Mar 07, 2017 at 10:34:05AM -0300, Diego Nadares wrote: > > Is it possible to generate