Hi Michel,
actually you cannot find out what is the used codec based on signalling
- each party sends a list of supported codecs (in INVITE and 200 OK),
letting the other party the actual codec to be used for sending media.
AFAIK, the only way is to look into the RTP stream.
Of course, if there is only one advertised codec, there is no mystery ;)/
regards,
bogdan
Michel Bensoussan wrote:
Klaus Darilion wrote:
Parsing the SDP does not give you the used codec
as there may be
several codecs in the SDP and you do not know which codec is used by
the clients.
This is true for INVITE message but as I understand (but I'm not
familiar with SIP), in the OK message, we can determine which codec is
used. No?
But for example you can use mediaproxy. Mediaproxy allows you to
retrieve the status of all current calls (codecs, bandwidth, ...)
Well, the
mediaproxy module needs an external proxy server. So it
seems to be too heavy for my needs.
The real time session statistics (from MediaProxy Server) will be very
useful but I'm not sure it's a good idea to use the server it if I
don't need the NAT traversal features.
regards
klaus
Michel Bensoussan wrote:
Hello
For each voice session I need to know the used codec (for bandwith
calculation). For that I need to parse the SIP message body.
I didn't find in OpenSER such a functionality.
Is there a module that doing that?
Or maybe someone is working on it?
A suggestion for an open source?
Thanks.
Regards,
Michel.
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users