Hi,
I am working on a VoIP project, in that there is a small task of extracting Port Number from the incoming SDP which is stored in a Buffer.
Let me say it in another way, I have a text which is stored in a Buffer (lets say 'string21[]' ) and from that I need to extract a Port Number and assign it to an Integer variable (lets say 'audio_port' ).
For example the text which is coming from the Server is "m = audio 17764 RTP/AVP 0 8" [this is just a part of the Text, the whole Text is very big.......], in this case "17764" should be extracted.
One more point in "m = audio 17764 RTP/AVP 0 8" , m = audio RTP/AVP 0 8 are constant, only the port number will be changing randomly, so that each time my code the port number will be changed and therefore I need this to be extracted each time.
Any idea of how I can do it, I can only use Header Files and Functions from C not from C++(no C++ libraries).
Regards,
Joan