Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed. Actually, traffic is mirrored with iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 (https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@get...) iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062 (https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@get...)
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062, but no luck listen=udp:127.0.0.1:5062 Next was to use sipcapture module with following parameters loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface. What is best way to get it working? Or I'm missing something? Thanks!
Why not just receiving with kamailio and transparently proxying to the pbx after capturing? I.e.: kamailio in the middle
On Sat, 26 Oct 2019 at 14:46, Igor Olhovskiy igorolhovskiy@gmail.com wrote:
Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed.
Actually, traffic is mirrored with
iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/0?redirect=127.0.0.2&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062 https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/1?redirect=127.0.0.1%3A5062&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062, but no luck
listen=udp:127.0.0.1:5062
Next was to use sipcapture module with following parameters
loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface.
What is best way to get it working? Or I'm missing something?
Thanks! [image: Sent from Mailspring] _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
I'm trying to avoid SIP packet touching at all. Plus, I can't move third-party soft to other port/interface or so.
Idea is I don't want for Kamailio to be a proxy, but a sip packet analyzer for mirrored port, but on same machine. On Oct 26 2019, at 6:40 pm, David Villasmil david.villasmil.work@gmail.com wrote:
Why not just receiving with kamailio and transparently proxying to the pbx after capturing? I.e.: kamailio in the middle
On Sat, 26 Oct 2019 at 14:46, Igor Olhovskiy <igorolhovskiy@gmail.com (mailto:igorolhovskiy@gmail.com)> wrote:
Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed. Actually, traffic is mirrored with iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 (https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@get...) iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062 (https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@get...)
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062, but no luck listen=udp:127.0.0.1:5062 (http://127.0.0.1:5062) Next was to use sipcapture module with following parameters loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface. What is best way to get it working? Or I'm missing something? Thanks! _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org (mailto:sr-users@lists.kamailio.org) https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com (https://link.getmailspring.com/link/440604DA-8F73-4D71-9038-78658920F906@get...) phone: +34669448337
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Just use heplify or captagent for this: https://github.com/sipcapture/heplify
https://github.com/sipcapture/captagent You can run them on the same machines where you're running your sip services and send the captured traffic to a homer instance.
Cheers,
Federico
On Sat, 26 Oct 2019, 20:40 Igor Olhovskiy, igorolhovskiy@gmail.com wrote:
I'm trying to avoid SIP packet touching at all. Plus, I can't move third-party soft to other port/interface or so.
Idea is I don't want for Kamailio to be a proxy, but a sip packet analyzer for mirrored port, but on same machine.
On Oct 26 2019, at 6:40 pm, David Villasmil < david.villasmil.work@gmail.com> wrote:
Why not just receiving with kamailio and transparently proxying to the pbx after capturing? I.e.: kamailio in the middle
On Sat, 26 Oct 2019 at 14:46, Igor Olhovskiy igorolhovskiy@gmail.com wrote:
Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed.
Actually, traffic is mirrored with
iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/0?redirect=127.0.0.2&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062 https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/1?redirect=127.0.0.1%3A5062&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062, but no luck
listen=udp:127.0.0.1:5062
Next was to use sipcapture module with following parameters
loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface.
What is best way to get it working? Or I'm missing something?
Thanks! _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com https://link.getmailspring.com/link/440604DA-8F73-4D71-9038-78658920F906@getmailspring.com/0?redirect=mailto%3Adavid.villasmil.work%40gmail.com&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn phone: +34669448337 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
So, at the end it would be like Heplify captures traffic and sending it to localhost, where Kamailio listens. Thanks, will give it a try.
Regards, Igor On 26 Oct 2019, 21:21 +0200, Federico Cabiddu federico.cabiddu@gmail.com, wrote:
Just use heplify or captagent for this: https://github.com/sipcapture/heplify
https://github.com/sipcapture/captagent You can run them on the same machines where you're running your sip services and send the captured traffic to a homer instance.
Cheers,
Federico
On Sat, 26 Oct 2019, 20:40 Igor Olhovskiy, igorolhovskiy@gmail.com wrote:
I'm trying to avoid SIP packet touching at all. Plus, I can't move third-party soft to other port/interface or so.
Idea is I don't want for Kamailio to be a proxy, but a sip packet analyzer for mirrored port, but on same machine.
On Oct 26 2019, at 6:40 pm, David Villasmil david.villasmil.work@gmail.com wrote:
Why not just receiving with kamailio and transparently proxying to the pbx after capturing? I.e.: kamailio in the middle
On Sat, 26 Oct 2019 at 14:46, Igor Olhovskiy igorolhovskiy@gmail.com wrote:
Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed.
Actually, traffic is mirrored with
iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062, but no luck
listen=udp:127.0.0.1:5062
Next was to use sipcapture module with following parameters
loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface.
What is best way to get it working? Or I'm missing something?
Thanks! _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
network sniffers (such as wireshark, ngrep, tcpdump, sngrep, ...) capture the traffic at network interface layer (well, using some kernel hooks), before getting to application layer (even before the firewall) and I expect is the same for heplify. They do not "receive" the packets like an application that does "listen", just take a copy of the traffic via those kernel hooks and then the packets are sent to the application layer. In other words, heplify doesn't received the sip traffic and then resends it locally, just gets a copy of the traffic.
Cheers, Daniel
On 27.10.19 09:16, Igor Olhovskiy wrote:
So, at the end it would be like Heplify captures traffic and sending it to localhost, where Kamailio listens. Thanks, will give it a try.
Regards, Igor On 26 Oct 2019, 21:21 +0200, Federico Cabiddu federico.cabiddu@gmail.com, wrote:
Just use heplify or captagent for this: https://github.com/sipcapture/heplify
https://github.com/sipcapture/captagent You can run them on the same machines where you're running your sip services and send the captured traffic to a homer instance.
Cheers,
Federico
On Sat, 26 Oct 2019, 20:40 Igor Olhovskiy, <igorolhovskiy@gmail.com mailto:igorolhovskiy@gmail.com> wrote:
I'm trying to avoid SIP packet touching at all. Plus, I can't move third-party soft to other port/interface or so. Idea is I don't want for Kamailio to be a proxy, but a sip packet analyzer for mirrored port, but on same machine. On Oct 26 2019, at 6:40 pm, David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote: Why not just receiving with kamailio and transparently proxying to the pbx after capturing? I.e.: kamailio in the middle On Sat, 26 Oct 2019 at 14:46, Igor Olhovskiy <igorolhovskiy@gmail.com <mailto:igorolhovskiy@gmail.com>> wrote: Hi! I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed. Actually, traffic is mirrored with iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 <https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/0?redirect=127.0.0.2&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn> iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062 <https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/1?redirect=127.0.0.1%3A5062&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn> Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; } I was trying to get Kamailio just listen on interface 127.0.0.1:5062 <http://127.0.0.1:5062>, but no luck listen=udp:127.0.0.1:5062 <http://127.0.0.1:5062> Next was to use sipcapture module with following parameters loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1) Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface. What is best way to get it working? Or I'm missing something? Thanks! _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Regards, David Villasmil email: david.villasmil.work@gmail.com <https://link.getmailspring.com/link/440604DA-8F73-4D71-9038-78658920F906@getmailspring.com/0?redirect=mailto%3Adavid.villasmil.work%40gmail.com&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn> phone: +34669448337 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello!
Thanks everyone Actually setting listen=udp:127.0.0.1:5060
modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060") modparam("sipcapture", "raw_moni_capture_on", 1) modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
And setting one iptables rule iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.1 helps to get what I want exactly. So, Kamailio is just receiving mirrored traffic I can analyze with. On Oct 28 2019, at 8:20 am, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello, network sniffers (such as wireshark, ngrep, tcpdump, sngrep, ...) capture the traffic at network interface layer (well, using some kernel hooks), before getting to application layer (even before the firewall) and I expect is the same for heplify. They do not "receive" the packets like an application that does "listen", just take a copy of the traffic via those kernel hooks and then the packets are sent to the application layer. In other words, heplify doesn't received the sip traffic and then resends it locally, just gets a copy of the traffic. Cheers, Daniel
On 27.10.19 09:16, Igor Olhovskiy wrote:
So, at the end it would be like Heplify captures traffic and sending it to localhost, where Kamailio listens. Thanks, will give it a try.
Regards, Igor On 26 Oct 2019, 21:21 +0200, Federico Cabiddu federico.cabiddu@gmail.com (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...), wrote:
Just use heplify or captagent for this: https://github.com/sipcapture/heplify (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...)
https://github.com/sipcapture/captagent (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...) You can run them on the same machines where you're running your sip services and send the captured traffic to a homer instance.
Cheers,
Federico On Sat, 26 Oct 2019, 20:40 Igor Olhovskiy, <igorolhovskiy@gmail.com (mailto:igorolhovskiy@gmail.com)> wrote:
I'm trying to avoid SIP packet touching at all. Plus, I can't move third-party soft to other port/interface or so.
Idea is I don't want for Kamailio to be a proxy, but a sip packet analyzer for mirrored port, but on same machine. On Oct 26 2019, at 6:40 pm, David Villasmil <david.villasmil.work@gmail.com (mailto:david.villasmil.work@gmail.com)> wrote:
Why not just receiving with kamailio and transparently proxying to the pbx after capturing? I.e.: kamailio in the middle
On Sat, 26 Oct 2019 at 14:46, Igor Olhovskiy <igorolhovskiy@gmail.com (mailto:igorolhovskiy@gmail.com)> wrote:
Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed. Actually, traffic is mirrored with iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2 (https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@get...) iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062 (https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@get...)
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062 (http://127.0.0.1:5062), but no luck listen=udp:127.0.0.1:5062 (http://127.0.0.1:5062) Next was to use sipcapture module with following parameters loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface. What is best way to get it working? Or I'm missing something? Thanks! _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org (mailto:sr-users@lists.kamailio.org) https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com (https://link.getmailspring.com/link/440604DA-8F73-4D71-9038-78658920F906@get...) phone: +34669448337
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org (mailto:sr-users@lists.kamailio.org) https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org (mailto:sr-users@lists.kamailio.org) https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...) https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...)
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get... (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...)
-- Daniel-Constantin Mierla -- www.asipto.com (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get... (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...) -- www.linkedin.com/in/miconda (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...) Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- https://asipto.com/u/kat (https://link.getmailspring.com/link/FC58412C-7C8D-41F2-B71C-F5829686C3D8@get...)
Hello Igor,
both methods (just capturing/logging with Kamailio or using sipcapture module) should work as well.
You listen statement looks ok. Do you actually see the packets entering Kamailio when you activate debug logging?
Cheers,
Henning
Am 26.10.19 um 15:45 schrieb Igor Olhovskiy: Hi!
I'm trying to get Kamailio working as a traffic capture on a same machine with other PBX software installed.
Actually, traffic is mirrored with
iptables -A PREROUTING -t mangle -i eth0 -p udp --dport 5060 -j TEE --gateway 127.0.0.2https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/0?redirect=127.0.0.2&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn iptables -t nat -A PREROUTING -d 127.0.0.2 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5062https://link.getmailspring.com/link/AB5F9D36-533D-4A52-ADE3-FB76B813163C@getmailspring.com/1?redirect=127.0.0.1%3A5062&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn
Kamailio request route is super simple request_route { xlog("L_ALERT", "[SIP-PACKET] Got packet [F=$fu R=$ru D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci]\n"); drop; }
I was trying to get Kamailio just listen on interface 127.0.0.1:5062, but no luck
listen=udp:127.0.0.1:5062
Next was to use sipcapture module with following parameters
loadmodule "sipcapture.so" modparam("sipcapture", "db_url", "text:///tmp/") modparam("sipcapture", "raw_socket_listen", "127.0.0.1:5060-5062") modparam("sipcapture", "raw_interface", "lo") modparam("sipcapture", "promiscious_on", 1)
Also no luck. Means Kamailio can't see packets, but I see em with wireshark on lo interface.
What is best way to get it working? Or I'm missing something?
Thanks!
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Kamailio Merchandising - https://skalatan.de/merchandising/ Kamailio services - https://skalatan.de/services Henning Westerholt - https://skalatan.de/blog/