> uhm I've a problem.
maybe you're PBX only provides empty Calling/Called party numbers?
Anyway, I am having troubles to understand you're code.
You generate a LISTEN_REQ with CIPMASK = ALL_SERVICES. Allright, then
you send your message to CAPI.
After that you call CAPI_GET_CMSG and check if the return value is !=
4356. I guess with 4356 you mean "0x1104 Queue is empty"
So, if the Queue is not empty and i is TRUE (what is i?) you assume that
str contains a CAPI_CONNECT_IND message (wich also would contain the
calling party number). But how do you know that? It could be any other
message, like LISTEN_REQ_CONF or DISCONNECT_IND.
So my guess is you are expecting a message (CAPI_CONNECT_IND) but you're
not getting it but another message. And because of that you are not able
to get the calling party number :-)