question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GetVarAction Timeout

See original GitHub issue

Hello.

I successfully used this lib (but earlier version maybe 2 years old version) with Asterisk 1.2, 1.6. But after updating asterisk.net lib now (master branch) - i get timeout for GetVarAction for all version of Asterisk (1.6, 13, 15) and ami (1.3, 2.10, 4.0).

This code:

method(DialEvent e)
ManagerResponse responseSrc;
String valueSrc = " ";
try {
    GetVarAction getVarActioneSrc = new GetVarAction(e.Channel, "CALLERID(num)");
    responseSrc = asteriskManagerConnection.SendAction(getVarActioneSrc, 8000);
    if (responseSrc.IsSuccess())
        valueSrc = responseSrc.GetAttribute("Value");
} catch (Exception ex){
     valueSrc = e.CallerIdName;
} 

After executing command SendAction I got ex = {“Timeout waiting for response to GetVar”}" (System.Collections.ListListDictionaryInternal type)

I checked GetVarAction with “CALLERID(all)”, “UNIQUEID” and another Variable, which work fine in telnet - same result.

RedirectAction, HangupAction, OriginateAction - work fine.

This is debug. I got exception and check the same command in telnet - success: 2017-11-28 13 53 54

2017-11-28 16 27 12

What can it may?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
BuilovAlexeycommented, Jul 17, 2018

I do not know, you tell me 😃 The bug was reproduced in November 2017. Did you fix it in new commits? Did you check it?

0reactions
Deantwocommented, Aug 6, 2018

@BuilovAlexey, did you want to help solve this issue? At least tell us which version you downgraded to so we know when it broke?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GetVarAction always timeout · Issue #25 · AsterNET ...
hello. I want to get the value of the channel variable after event Dial. i set channel value [from-pstn-custom] exten => _X.,1 ...
Read more >
Uses of Interface org.asteriskjava.manager.action ... - javadoc.io
The AbsoluteTimeoutAction sets the absolute maximum amount of time permitted for a call on a given channel, it hangs up the channel after...
Read more >
AsterNET.Manager.Action Namespace
The AbsoluteTimeoutAction sets the absolute maximum amount of time permitted for a call on a given channel. Note that the timeout is set...
Read more >
mod_httapi | FreeSWITCH Documentation
: Begin recording the call audio. The file will be posted when the call ends. ATTRS: limit : Timeout in seconds
Read more >
PAMI Message Action OriginateAction - Read the Docs
Sets Timeout key. Visibility: public. Arguments. $timeout integer - <p>How long to wait for call to be answered (in ms) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found