[SR-Users] dispatcher probe

volga629 at networklab.ca volga629 at networklab.ca
Tue Sep 4 13:55:37 CEST 2018


Hello Federico,
Thank you for reply that exactly what I was looking for local route.

The following worked as expected

event_route[tm:local-request] {
        if(is_method("OPTIONS") && $hdr(User-Agent)=~"kamailio") {
                xlog("L_INFO", "Adding X-Node-ID header.\n");
                append_hf("X-Node-ID: $avp(node_id)\r\n");
        }
}


volga629

On Tue, Sep 4, 2018 at 4:00 AM, volga629 at networklab.ca wrote:
> Hello Mojtaba,
> Probe packet is generated by kamailio him self and it not visible in 
> REQINIT, at least xlog not showing.
> 
> volga629
> 
> On Tue, Sep 4, 2018 at 3:23 AM, Mojtaba <mespio at gmail.com> wrote:
>> Hi,
>> Sure, You could add in REQINIT route block in Kamailio.
>> With Regads.Mojtaba
>> On Tue, Sep 4, 2018 at 5:11 AM <volga629 at networklab.ca> wrote:
>>> 
>>>  Hello Everyone,
>>>  Is possible access OPTIONS packet generated by dispatcher probe ?
>>>  I am trying insert something like this.
>>> 
>>>          if(is_method("OPTIONS") && $hdr(User-Agent)=~"kamailio") {
>>>                  append_hf("X-Node-ID: $avp(node_id)\r\n");
>>>          }
>>> 
>>> 
>>>  volga629
>>> 
>>> 
>>>  _______________________________________________
>>>  Kamailio (SER) - Users Mailing List
>>>  sr-users at lists.kamailio.org
>>>  https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> 
>> 
>> 
>> --
>> --Mojtaba Esfandiari.S
>> 
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list