I am building a small application that make a call to the asterisk server. The call works properly, arrive to server without problem, just as soon as the server responds, it is terminated (like if anyone sends a hangup message). With Zoiper this does not happens.
You will need to provide console output and logging for someone to look at before any real information can be provided about why it might not be working.
The device is trying to publish presence state, which is not implemented in Asterisk. It is also trying to subscribe to get data about presence.winfo which is also not implemented.
ok ok thank you. Returning to WebRTC, now with PJSIP does not ends immediately the call sending a BYE message to the server. However, after about 30 seconds reads console:
== WebSocket connection from '192.168.0.105:61227' for protocol 'sip' accepted version using '13'
- Registered SIP '6001' at 192.168.0.105:61227
== Using SIP RTP CoS mark 5
- Executing [100 @ from-internal: 1] MeetMe ( "SIP / 6001-00000003," "1234, M, 0000") in new stack
> 0x7f8548002580 - Probation passed - setting RTP source address to 192.168.0.105:49256
== Parsing '/etc/asterisk/meetme.conf': Found
- Created MeetMe conference 1020 conference for '1234'
- <SIP / 6001-00000003> Playing 'conf-onlyperson.gsm' (language 'en')
- Started music on hold, class 'default', on channel 'SIP / 6001-00000003'
- Stopped music on hold on SIP / 6001-00000003
- Started music on hold, class 'default', on channel 'SIP / 6001-00000003'
- Got SIP response 500 "JsSIP Internal Error" back from 192.168.0.105:5060
- Hungup 'DAHDI / pseudo-116508172'
== Spawn extension (from-internal, 100, 1) non-zero on exited 'SIP / 6001-00000003'
- Stopped music on hold on SIP / 6001-00000003
the problem is here: Got SIP response 500 “JsSIP Internal Error” back from […]
Now I can finally connect to the asterisk server through WebRTC and Zoiper as well.
But the problem now is that I don’t hear the sound when connection established between two endpoints, until I am alone i can hear the music “music on hold” without problem.
Can you help me? is a routing problem in your opinion?