jain-sip


Jain sip return 481 for a received bye request


I am trying to use Jain Sip to create a sip user agent, which can receive INVITE/ ACK/ BYE, and send back the response with SDP if necessary.
It can receive INVITE, send OK response, receive ACK and then do RTP packet transport. But when it receives BYE from the other side, a 481 will be thrown by Jain Sip itself.
I was sending response statelessly by using SipProvider.sendResponse(response). And it turns out if I switch to stateful (getNewServerTransaction from incoming request, then use SipServerTransaction.sendResponse), everything works. So I am wondering what is the difference between them? Is there anyway I can do this statelessly?
Basically when stateful the JAIN-SIP stack allocates its own resources to run the SIP state machines for transactions and dialogs. As you can imagine if you do it only partially for a call it will get out of hand. My guess is you have automatic dialog support turned on and you are mixing stateful and stateless mode in some way. If you want to go stateless make sure there is no auto dialog. Best way to debug is to see DEBUG logs and code.

Related Links

sip stack implementatin outside the servlet container
why jain sip return 481 on received bye?
How to create a kind of SDK for JainSIP?
Jain Sip : how to send an ACK on 200 ok type CANCEL?
Jain sip return 481 for a received bye request
JAIN SIP - between requests
Downloading JAIN SIP
Jain SIP in multi-thread environment
jain-sip /jsip getListeningPoint method was removed from RequestEvent and ResponseEvent
mobicent sip servlet with jboss as 7 in cloud
jainsip processResponse not called
JAIN-SIP getting request source IP address and port

Categories

HOME
logging
netty
stanford-nlp
virtual-machine
file-upload
nagios
conceptual
esxi
localhost
annyang
suitecrm
solidity
minimum
google-calendar-api3
django-rest-auth
caldav
coccinelle
infinite-loop
pumping-lemma
visual-studio-community
angular-schema-form
jms-topic
hierarchy
ds-5
paper-trail-gem
xlib
exacttarget
kubectl
luhn
circle
webmock
leaderboard
device-driver
matrix-multiplication
stdin
directadmin
bzip2
mtm
cakephp-3.2
logan-square
android-doze-and-standby
geminabox
google-cloud-shell
jtextarea
business-catalyst
lightspeed
msiexec
turbolinks
optional-parameters
toggleclass
joystick
foreground
jira-agile
netlink
geokit
falcon
cherry-pick
phpdesigner
paypal-subscriptions
jersey-test-framework
jquery-draggable
gnu-sort
webservices-client
gulp-cdnizer
taverna
edgar
persian
dnvm
litedb
eggplant
stereotype
valdr-bean-validation
accpac
google-experiments
conkeror
esri-arc-engine
cordova-3
fedena
conditional-comments
go-gin
breeze-sharp
redmine-plugins
rails-migrations
visual-studio-setup-proje
object-oriented-database
kohana-orm
backbone-views
blotter
linqdatasource
m3u
inserthtml
jqzoom
clgeocoder
cherokee
isgl3d
backlight
marathontesting
azure-appfabric
p4.net
vista64
httpbrowsercapabilities

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App