Re: [SR-Users] How to get Destination port UDP

2016-11-15 Thread Carsten Bock
Please note: "$rp" is not the same as "$Rp", PV's are case-sensitive Thanks, Carsten 2016-11-15 14:34 GMT+01:00 Daniel-Constantin Mierla : > Hello, > > do you receive the packets over UDP on local port 6060 and $Rp is not 6060? > > Cheers, > Daniel > > > On 15/11/16 13:13, andrzej.ciupek-aste

Re: [SR-Users] How to get Destination port UDP

2016-11-15 Thread Daniel-Constantin Mierla
Hello, do you receive the packets over UDP on local port 6060 and $Rp is not 6060? Cheers, Daniel On 15/11/16 13:13, andrzej.ciupek-asterisk.edu.pl wrote: > Hello > > I have tried $Rp before sending this to mailing list, but with $Rp I > have different values for example 188, 6847, 3163, 9175 f

[SR-Users] How to get Destination port UDP

2016-11-15 Thread andrzej.ciupek-asterisk.edu.pl
Hello I have tried $Rp before sending this to mailing list, but with $Rp I have different values for example 188, 6847, 3163, 9175 for every call ?! Don't know where are they come from, because in URI I see :6060, and using $rp give my 6060 for examples with $Rp. Only have problem with UAC P

Re: [SR-Users] How to get Destination port UDP

2016-11-15 Thread Carsten Bock
Hi, how about checking $Rp (http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#rp_-_received_port)? That would show, on which port the packet was received Thanks, Carsten 2016-11-15 8:43 GMT+01:00 andrzej.ciupek-asterisk.edu.pl : > Hello > > My point is to log INVITEs in my Network

[SR-Users] How to get Destination port UDP

2016-11-15 Thread andrzej.ciupek-asterisk.edu.pl
Hello My point is to log INVITEs in my Network. My SIP Network work on port 6060. Im am using HEP to do that, and hep clients that are listening on port range 5060-6066 to detect some SIP attack to port 5060 and others. But when I have attack to port 5060 I don't want to insert that INVITE to

Re: [SR-Users] How to get Destination port UDP

2016-11-11 Thread Daniel-Constantin Mierla
On 11/11/16 13:38, Daniel Tryba wrote: > On Thu, Nov 10, 2016 at 04:41:36PM +0100, andrzej.ciupek-asterisk.edu.pl > wrote: >> I have some UAC like Panasonic PBX, that send traffic to port 6060 that I am >> listening on, >> but that port isn't included to R-URI. >> I can see that only at tcpdump,

Re: [SR-Users] How to get Destination port UDP

2016-11-11 Thread Daniel Tryba
On Thu, Nov 10, 2016 at 04:41:36PM +0100, andrzej.ciupek-asterisk.edu.pl wrote: > I have some UAC like Panasonic PBX, that send traffic to port 6060 that I am > listening on, > but that port isn't included to R-URI. > I can see that only at tcpdump, or sip_trace from sip_capture module. > Kamailio

[SR-Users] How to get Destination port UDP

2016-11-10 Thread andrzej.ciupek-asterisk.edu.pl
Hello I have some UAC like Panasonic PBX, that send traffic to port 6060 that I am listening on, but that port isn't included to R-URI. I can see that only at tcpdump, or sip_trace from sip_capture module. Kamailio variables like $dp or $rp have default value of 5060. Thank You, _

Re: [SR-Users] How to get Destination port UDP

2016-11-10 Thread Daniel-Constantin Mierla
Hello, I guess you refer to sip_trace() -- iirc, sip_capture() only saves locally what sip_trace() is sending over hep. If yes, then sip_trace() is using some callbacks internally to get data at various levels of transaction processing. Also, if there is no port in a URI, then it is considered to

[SR-Users] How to get Destination port UDP

2016-11-09 Thread andrzej.ciupek-asterisk.edu.pl
Hello Thank You. In using Kamailio only as: route { if (is_method("INVITE")) { sql_query("cb", "insert into invites (from_user,to_user,callid,src_ip,dst_ip,src_port,dst_port) values ('$fU','$rU','$ci','$si','$rd','$sp','$rp')"); } } I know that sip_capture(); In some way get real DST por

Re: [SR-Users] How to get Destination port UDP

2016-11-08 Thread Daniel-Constantin Mierla
Hello, one way is to add an onsend_route and there use the $sndto(port) to update the record inserted before. Even better, set the dst addr/port when receiving the 200ok for initial invite, this copes better when the INVITE is forked to many destinations -- in this way you store only the one that

[SR-Users] How to get Destination port UDP

2016-11-08 Thread andrzej.ciupek-asterisk.edu.pl
Hello I am using Kamailio to collect data about active calls. I write INVITEs to database, and delete it on BYE or any REL. I would like to write source and destination port too, but don't know how to get destination port. I have tried variables: $dp, $rp, $Rp, $op But when I don't have port