[erlang-questions] Service Change request in C node
J Bhanot
j.bhanot@REDACTED
Wed Feb 13 08:57:20 CET 2008
Hi Maxim,
I am sending following message from MGC to C node -
{'ServiceChangeRequest',[{megaco_term_id,false,[[114,111,111,116]]}],{'ServiceChangeParm',restart,asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,[[57,48,49]],asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE,asn1_NOVALUE}}
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
an atom
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.
Regards,
jb
=====-----=====-----=====
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...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080213/b54f8619/attachment.htm>
More information about the erlang-questions
mailing list