sipcapture: added sip_capture_forward(uri)
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 2 May 2018 10:10:45 +0000 (12:10 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 2 May 2018 10:10:45 +0000 (12:10 +0200)
commit9853d9b4d3e7ee863170aa22acccfe8de810b435
tree7c0f461f7e4f6645414304a648fb73095a127d1a
parent943724e62c2b3bb98a37d9f496cc6c76ecb976cb
sipcapture: added sip_capture_forward(uri)

- forward the hep packet to another address
- the address has to bbe provided as parameter in sip uri format
- the function should be used inside event_route[sipcapture:request]
event_route[sipcapture:request] {
    if(src_ip==1.2.3.4) {
        sip_capture_forward("sip:2.3.4.5:5090");
        return 0;
    }
}
src/modules/sipcapture/sipcapture.c