[Freeswitch-dev] switch_frame structure question
Hi, what is the difference in the structure switch_frame between the following members : packet data payload The routine channel_write_frame of my endpoind is called, but it seems that I do not use the correct data as my payload_type of the data is not 8 (PCMA) which I should have. I call from a SIP phone, registered in freeswitch to an analog phone. I have to pass the RTP packet to my phone device. Thanks, Ludovic
packet is the raw packet pointer if the frame flag SFF_RAW_RTP is set it can be cast into a rtp header to view the contents. data is the media (audio data) payload is sometimes used to describe the payload type of the packet. if you are looking to see what the audio type is try frame->codec->implementation->ianacode and frame->codec->implementation->iananame On Wed, Jan 21, 2009 at 11:44 AM, ludovic <ludovic.fouquet@bewan.com> wrote:
Hi,
what is the difference in the structure switch_frame between the following members : packet data payload
The routine channel_write_frame of my endpoind is called, but it seems that I do not use the correct data as my payload_type of the data is not 8 (PCMA) which I should have. I call from a SIP phone, registered in freeswitch to an analog phone. I have to pass the RTP packet to my phone device.
Thanks,
Ludovic
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
ludovic