thanks :-)

Anthony Minessale a écrit :
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
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400

_______________________________________________ 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

--
   Ludovic Fouquet
R&D Engineer

Tel. : + 33 (0)1 43 34 69 20 / Ext. : 63 51
Fax : + 33 (0)1 46 91 03 71
Web : www.bewan.com