Seeking to find a workaround for the problem I'm having with WebRTC and AOR
throttling (http://lists.opensips.org/pipermail/users/2020-July/043542.html)
I want to access the values of the "Via" and "Path" headers that are being
passed to the registrar.

Using sngrep on the OpenSIPS server I can see the REGISTER includes Path
and Via headers. If I try to access them with  $(hdr(Path)[0])  or
 $(hdr(Via)[0])  I get nothing, but I can access the values of all the
other headers without any problem - e.g.  $(hdr(Authorization)[0]). What am
I missing or is there another way to get the info used in the Via
and particularly in creating the Path header values???

  add_path_received();
  xlog("!!!!!!!!!!!! $(hdr(Path)[0]) !!!!!!!!!!");
  $avp(attr) = $(hdr(Path)[0]);
  mid_registrar_save("location","p0v");

The code gives an "attr" value in the "location" table of "NULL"

/var/log/syslog shows:

  Jul 30 16:13:17  /usr/sbin/opensips[27423]: !!!!!!!!!!!! <null> !!!!!!!!!!
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to