This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
configuration:telephone-on-serial [2017/10/23 16:02] – fachet | configuration:telephone-on-serial [2017/10/23 16:14] – fachet | ||
---|---|---|---|
Line 106: | Line 106: | ||
while (true) { | while (true) { | ||
- | msg = nb_voice_event(1).call.calling; | + | msg = nb_voice_event(1).call.calling; |
if (!is_void(msg)) { | if (!is_void(msg)) { | ||
msg = left(msg, strlen(msg) - 5); // trim phone number | msg = left(msg, strlen(msg) - 5); // trim phone number | ||
Line 123: | Line 123: | ||
The SDK command „nb_voice_event“ makes it possible to query the status of the voice call. For more information about the SDK-API, see please to the Weblink http:// | The SDK command „nb_voice_event“ makes it possible to query the status of the voice call. For more information about the SDK-API, see please to the Weblink http:// | ||
- | With a loop and the SDK command, you get when a voice call comes in. | + | You can use the test window to see when a voice call comes in. |
- | + | ||
- | <code - voice_evenet.are > | + | |
- | + | ||
- | while(true) | + | |
- | { | + | |
- | dump(nb_voice_event(10)); | + | |
- | } | + | |
+ | < | ||
+ | dump(nb_voice_event(10)); | ||
</ | </ | ||
Line 137: | Line 132: | ||
< | < | ||
- | |||
- | void | ||
- | |||
struct(2): { | struct(2): { | ||
.call = struct(4): { | .call = struct(4): { | ||
Line 156: | Line 148: | ||
.state = string[6]: " | .state = string[6]: " | ||
} | } | ||
- | .type = string[6]: " | ||
} | } | ||