[OpenSIPS-Users] 3.1 - access Path and Via values from REGISTER
mark at allenclan.co.uk
Mon Aug 3 09:13:22 EST 2020
Would I be right in thinking that the reason I cannot immediately see the
"path" value added by the add_path_received() call is because of how the
lumps system works - i.e.
"lumps are stored in a list, and are only applied
after the OpenSIPS script is fully executed and
before the SIP message is relayed. Because of
this, changes done on a SIP message are not
immediately reflected on the SIP message upon
further inspection ( eg. Adding a new header from
the script and then checking for the header's
On Thu, 30 Jul 2020 at 16:24, Mark Allen <mark at allenclan.co.uk> wrote:
> 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)) or
> $(hdr(Via)) I get nothing, but I can access the values of all the
> other headers without any problem - e.g. $(hdr(Authorization)). 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???
> xlog("!!!!!!!!!!!! $(hdr(Path)) !!!!!!!!!!");
> $avp(attr) = $(hdr(Path));
> The code gives an "attr" value in the "location" table of "NULL"
> /var/log/syslog shows:
> Jul 30 16:13:17 /usr/sbin/opensips: !!!!!!!!!!!! <null>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users