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 233 forks source link

Not able to register - If change Port number #34

Closed murugancmi closed 7 years ago

murugancmi commented 7 years ago

When i try to register different port like 7060 getting register failure error

datso commented 7 years ago

Hello, please provide a SIP network trace (.pcap) or SIP logs from device.

murugancmi commented 7 years ago

i can't able to register , Means not able to connect sip server then how i can get trace may i send you my connect configuration

murugancmi commented 7 years ago
        let configuration = {
            "name": 'AYOO',
            "username": agent,
            "domain": "139.59.92.65:7060",
            "password": password,
            "proxy": '139.59.92.65:7060;transport=udp',
            "transport": "TCP"
        };

self.chub.user = await endpoint.createAccount(configuration)

murugancmi commented 7 years ago

we are using opensip as a proxy server

datso commented 7 years ago

Hello, domain should not contain a port. I will try to investigate the problem on this weekend.

murugancmi commented 7 years ago

Ok let me try without port in domain

murugancmi commented 7 years ago

This issue is fixed ?

datso commented 7 years ago

This is not an issue with the library. Your configuration is invalid, use proxy configuration for custom port and remove transport TCP because you already set it in proxy configuration.

If you found a bug in the library, please report an issue with logs attached.

murugancmi commented 6 years ago

Registration failed but i can able to make call ,Bellow is my configuration

let configuration = { "name": 'AYOO', "username": agent, "domain": "139.59.9.112", "password": password, "proxy":"sip:139.59.9.112:7060;transport=udp" };

datso commented 6 years ago

It would be better to ask an administrator of our SIP server where is the problem. I think that it could be in Realm validation (e.g. domain).

murugancmi commented 6 years ago

Yes now i change domain name now it works