Comments (3)
Forgot to mention that when dialing in the "hang up" works fine.
Original comment by [email protected]
on 22 Sep 2012 at 1:53
from sipml5.
This is conform to RFC 3261
BYE is sent if the call is connected (200 OK)
DECLINE is sent in response to INVITE
CANCEL is send to abort pending outgoing INVITE
Original comment by [email protected]
on 22 Sep 2012 at 4:14
- Changed state: Invalid
from sipml5.
Hi,
Don't get me wrong. I am not a specialist, it is just my outgoing calls to
sip trunks were not hanging up. I think the CANCEL is sent accoringly to
RFC, but the state of the call is tsip_dialog_state_e.EARLY and it should
send HANGUP, not CANCEL.
So it hangs up also the trunk peer, not only the connection between client
and asterisk.
I commented /*&& this.o_session.b_server*/ and the dialouts are going and
hanging up fine. (I am sure that the comment is wrong but i do not know how
to do it better) at the moment it just works.
Thank you,
Cristi.
tsip_dialog.prototype.hangup = function (o_action) {
if (this.e_state == tsip_dialog_state_e.ESTABLISHED || (this.o_session
/*&& this.o_session.b_server*/ && this.e_state ==
tsip_dialog_state_e.EARLY) || this.e_type != tsip_dialog_type_e.INVITE) {
return this.fsm_act(tsip_action_type_e.HANGUP, null, o_action); //
603 Decline or BYE
}
else {
return this.fsm_act(tsip_action_type_e.CANCEL, null, o_action); //
CANCEL -> only for INVITE dialog
}
}
Original comment by [email protected]
on 27 Sep 2012 at 1:17
from sipml5.
Related Issues (20)
- Called in wrong state: STATE_INPROGRESS HOT 10
- startBfcpShare not working
- Content length for SIP INFO packets is incorrect in latest release HOT 1
- Firefox ICE resolution to incorrect 0.0.0.0 address HOT 2
- Video stream doesnt add in SipML5
- Export to GitHub
- Available on main package managers
- sipml5 unable to play remote audio HOT 2
- No early audio in outgoing sipml call to an extension. HOT 2
- Parameters send to Event Listener Function HOT 2
- Outbound call hangs up after 1 minute with FreeSwitch Session-Expire
- Problem in BYE send from SIPML5 - Webrtc2sip (Version 2.6.0)
- Temporary failure in name resolution
- Call.info() result is logged to console instead of given to user HOT 1
- One way video, any browser, webrtc2sip and Asterisk to softphone HOT 2
- call disconnection in api version SIPML5 API version = 1.5.230
- Caller Hangup loud buzzing Chrome 43 and above
- Handle mediastream deprecations
- 'SIPml.Stack.newSession' or 'SIPml.Session.Configuration' does not appear to be documented correctly
- on the same computer demo works with FireFox and doesn't work with Chrome
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sipml5.