[erlang-questions] Service Change request in C node
Wed Feb 13 08:57:20 CET 2008
I am sending following message from MGC to C node -
I am using this in C node :
tuplep = erl_element(3, emsg.msg); // above msg is the 3rd element that I
pass from Erlang
fnp1 = erl_element(1, tuplep); // I try to get the first element
from that i.e. ServiceChangeRequest\
tuplesize = ERL_TUPLE_SIZE(tuplep); // gives me 3
mymessage1= ERL_ATOM_PTR(fnp1); // corerctly get ServiceChangeRequest when
I print mymessage1
mymessage2 = ERL_ATOM_PTR(fnp2); // this gives junk as 2 element is not
Unfortunately, I have not been able to find any API that converts the
whole list or tuple in String.
Is there any API that can do so.
Many thanks for your help.
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions