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
asterisk
autohotkey
pyspark
cluster-analysis
spotfire
x509certificate
okhttp3
squeak
xss
mingw
docker-compose
point-of-sale
email-attachments
mbed
popup
web-testing
web-worker
ringcentral
geography
ampscript
ajaxcontroltoolkit
datazen-server
fastboot
email-client
policy
priority-queue
scalatest
rancher
visual-studio-community
ipython-parallel
textview
fastadapter
android-geofence
multi-user
colorbox
taiga
gridgain
logan-square
android-doze-and-standby
opos
evaluation
django-tables2
node-java
androiddesignsupport
chain
recursive-query
firebase-job-dispatcher
mongodb-3.3
altova
mate-desktop
magick.net
git-cherry-pick
jcalendar
hana-sql-script
newlib
cyberduck
vensim
playn
vspackage
fileinputstream
valdr-bean-validation
mathics
touch-typing
shunting-yard
caption
xmlserializer
breeze-sharp
nest-initiative
mvcgrid
yandex-api
iwork
dynamic-expresso
setcookie
teamsystem
hypertable
scriptmanager
sipdroid
designated-initializer
subdirectories
nstoolbar
google-local-search
j++
weak-typing
ironpython-studio

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