datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
273 stars 229 forks source link

[Android] regContactParams Not Sending In Registartion #192

Closed ryanmcclure4 closed 4 years ago

ryanmcclure4 commented 4 years ago

@datso I'm passing regContactParams to endpoint.createAccount. This gets successfully sent to the sip server when running on ios, but when running on android it doesn't get sent. When logging the created account, it does show the params, but when looking at the registration in my pbx it isn't showing up. Is it possible this needs to be passed differently for Android?

ryanmcclure4 commented 4 years ago

Turns out for android, this parameter needs to be contactParams. Wasn't able to catch this until I looked through the device logs. Also, if you are sending an FCM token in this field, it needs to be url encoded, otherwise something goes wrong and the device doesn't register - I haven't looked into the reason behind this.