I'm trying to figure out how to log RTP addresses from the SDP. I'd like to use db_extra to save the RTP endpoints from the INVITE and 200 messages.
How can I get the addresses out of the SDP body and into AVP's?
Also, if I'm using the TM module, can I still catch the 200 response and extract the response RTP IP address?
Thanks,
---Nathan
Hi Nathan,
there are two issues here: 1) how to locate and load the wanted info 2) how to log it.
right now you can extract only the SDP IP via AVPs: load the entire body into an SDP and perform a avp_subst() to get only the needed part. But the problem is that you cannot use AVPs from reply route (to get SDP info from 200 OK).
What you can do is to log entire SDP via pseudo variables: http://openser.org/docs/pseudo-variables.html#pv_rb
In the future we will have support for AVPs in reply routes so you can log via AVPs only the IP.
regards, bogdan
Nathan Hawkins wrote:
I'm trying to figure out how to log RTP addresses from the SDP. I'd like to use db_extra to save the RTP endpoints from the INVITE and 200 messages.
How can I get the addresses out of the SDP body and into AVP's?
Also, if I'm using the TM module, can I still catch the 200 response and extract the response RTP IP address?
Thanks,
---Nathan
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users