jefflinwood / twilio_client_phonegap

Phonegap plugins for the Twilio Client iOS and Android SDKs
MIT License
59 stars 53 forks source link

Unable to Retrieve Call SID When Begin Calling #69

Open billygoh opened 8 years ago

billygoh commented 8 years ago

Good morning,

I have installed this plugin and it's working fine so far. However, i am having a problem to retrieve Call SID in device.connect. It returned "undefined".

My code is shown below

Twilio.Device.connect(function (conn) { var callSid = conn.parameters.CallSid; //callSid returns undefined });

Is there anything I missed out? Could you provide example to retrieve call SID?

Thanks a lot!

jefflinwood commented 8 years ago

Hi,

Do you have anything in your parameters? I haven't had a chance to look at this yet. Also, are you using iOS or Android?

Thanks! Jeff

billygoh commented 8 years ago

Hi Jeff, I have solved the undefined call SID problem.

Now I have another problem in Android. Lets say after I killed/ force close the app. The next time open the app and I initialize call again, i will not be able to call Twilio.Connection.sendDigits("3") for example.

The method Twilio.Device.connect will not be called as well.

Is this a common bug for this plugin?

Thanks!

nitinprimo commented 7 years ago

hi billygoh.. can you explain how did you get it resolved i am still having issues finding call sid Thanks