[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

[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

[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, _

[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

[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