[Freeswitch-dev] OZ Question: zap_span_find()
Anthony Minessale
anthmct at yahoo.com
Fri Mar 7 09:06:45 EST 2008
correct,
Assuming the typo in the example was an accident.
(span not my_span_pointer declared on the first line)
zap_span_t *my_span_pointer = NULL;
uint32_t span_id = 1;
zap_status_t result;
result = zap_span_find(span_id, &my_span_pointer);
if it returns ZAP_SUCCESS, that indicates that the desired span exists, is in use and that the pointer will now point to it.
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400
----- Original Message ----
From: Michael Collins <mcollins at fcnetwork.com>
To: freeswitch-dev at lists.freeswitch.org
Sent: Thursday, March 6, 2008 8:27:35 PM
Subject: [Freeswitch-dev] OZ Question: zap_span_find()
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;color:windowtext;}
_filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{}
-->
Does this function do what I think it does? If I give it a
span number to look for, it returns ZAP_SUCCESS if it finds the span and it
sets the value of the pointer variable that I call it with?
Example, what happens if I do this, assuming span 1 is a
real span?
zap_span_t *span = NULL;
uint32_t span_id = 1;
result = zap_span_find(span_id, &my_span_pointer);
Does *my_span_pointer now point to span 1? Any caveats that
I should be aware of?
Thanks,
MC
-----Inline Attachment Follows-----
_______________________________________________
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
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080307/b304c5d3/attachment.html
More information about the Freeswitch-dev
mailing list