adhearsion/adhearsion — Issue #96: After running for a long period of time, stops routing
Author: jsgoecke
Created: 2012-02-16 01:05:46+00:00
State: open

I have had an Adhearsion instance up on Rayo/PRISM for a few days and went to make a call. It gets the offer but then declines, event though the code is fine. If I restart the Adhearsion app, it works again. Here is the bad call:

```ruby

[2012-02-16 00:53:01] INFO Punchblock::Connection::XMPP: Receiving event for call ID xejfqve-lx7-2jek1uzab9kxb
[2012-02-16 00:53:01] DEBUG Punchblock::Connection::XMPP:

[2012-02-16 00:53:01] DEBUG Punchblock::Client: Handling event #"", :content_length=>"327", :to=>"", :contact=>"", :max_forwards=>"50", :allow=>"INVITE", :content_disposition=>"session; handling=required", :cseq=>"19094 INVITE", :via=>"SIP/2.0/UDP 67.231.8.195;branch=z9hG4bK7b24.db0f8f47.0", :call_id=>"1745698884_121773625@192.168.47.68", :content_type=>"application/sdp", :accept=>"application/sdp", :remote_party_id=>";privacy=off;screen=no", :from=>";tag=gK0d337e3e"}, call_id="xejfqve-lx7-2jek1uzab9kxb", component_id=nil> with source .
[2012-02-16 00:53:01] DEBUG Punchblock::Client: Executing command: # with options {:call_id=>"xejfqve-lx7-2jek1uzab9kxb"}
[2012-02-16 00:53:01] DEBUG Punchblock::Connection::XMPP: Sending IQ ID blather4842 # to adhearsion@voxeolabs.p1.im/29227685401329269627752190
[2012-02-16 00:53:02] DEBUG Punchblock::Connection::XMPP: Command blather4842 completed successfully
[2012-02-16 00:53:02] DEBUG Adhearsion::PunchblockPlugin::Initializer: Event received for call xejfqve-lx7-2jek1uzab9kxb: #"", :content_length=>"327", :to=>"", :contact=>"", :max_forwards=>"50", :allow=>"INVITE", :content_disposition=>"session; handling=required", :cseq=>"19094 INVITE", :via=>"SIP/2.0/UDP 67.231.8.195;branch=z9hG4bK7b24.db0f8f47.0", :call_id=>"1745698884_121773625@192.168.47.68", :content_type=>"application/sdp", :accept=>"application/sdp", :remote_party_id=>";privacy=off;screen=no", :from=>";tag=gK0d337e3e"}, call_id="xejfqve-lx7-2jek1uzab9kxb", component_id=nil>
[2012-02-16 00:53:02] INFO Punchblock::Connection::XMPP: Receiving event for call ID xejfqve-lx7-2jek1uzab9kxb
[2012-02-16 00:53:02] DEBUG Punchblock::Connection::XMPP:

```