[Freeswitch-dev] switch_frame structure question
Anthony Minessale
anthony.minessale at gmail.com
Wed Jan 21 09:54:30 PST 2009
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 at 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 at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090121/616b4e2a/attachment.html
More information about the Freeswitch-dev
mailing list