Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting individual results for each individual Simringer branch #12

Open
elbow opened this issue Apr 25, 2020 · 1 comment
Open

Getting individual results for each individual Simringer branch #12

elbow opened this issue Apr 25, 2020 · 1 comment

Comments

@elbow
Copy link

elbow commented Apr 25, 2020

Hi,

If I call addUri on a Simringer, is there a way to get back the result of that particular branch/call?

IE in our code we have req._simringer.addUri(remoteUri, additionalCallOpts);

(we've stashed the simringer on the original req).

In the case I'm looking at, I see:

[2020-04-25 15:25:00.166 +0000] DEBUG (83163 on maximus.daviesfam.org): CallManager#_attemptOne: launched call to sip:[email protected]; 2 calls in progress
[2020-04-25 15:25:00.170 +0000] INFO  (83163 on maximus.daviesfam.org): CallManager#attemptOne: call to sip:[email protected] failed with 503

Another branch goes on to connect so the whole simringer succeeds.
But this particular branch gets a 503 - can I get my hands on that result?

Thanks,
Steve

@elbow
Copy link
Author

elbow commented Apr 25, 2020

I did try to .then the addUri - didn't look like addUri returned anything and indeed:

[2020-04-25 17:07:04.322 +0000] ERROR (83370 on maximus.daviesfam.org): Error setting up call
    err: {
      "stack":
          TypeError: Cannot read property 'then' of undefined
              at CallProcessor._connectLegs (/Users/steve/rtcproxy/lib/call-processor.js:601:7)
              at /Users/steve/rtcproxy/lib/call-processor.js:548:24
              at Array.forEach (<anonymous>)
              at /Users/steve/rtcproxy/lib/call-processor.js:370:21
      "message": "Cannot read property 'then' of undefined"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant