mojolingo / sippy_cup

Create SIP load test scenarios the easy way
http://mojolingo.github.io/sippy_cup
MIT License
219 stars 78 forks source link

illegal <exec> in the scenario #66

Closed fwoeck closed 10 years ago

fwoeck commented 10 years ago

Under OsX 10.8, sipp via homebrew, I see these errors:

2014-06-04 19:53:08.435802 1401904388.435802: illegal in the scenario

when I try to

> sudo $(which sipp) -i 192.168.178.33 -p 8836 -sf ./sippy_cup.xml -l 1 -m 1 -r 1 -s 1 91.250.81.254
2014-06-04      19:46:19.172519 1401903979.172519: illegal <exec> in the scenario

with a sippy_cup.pcap file and

...
<![CDATA[
ACK [next_url] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: "sipp" <sip:sipp@[local_ip]>;tag=[call_number]
To: <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: [cseq] ACK
Contact: <sip:sipp@[local_ip]:[local_port];transport=[transport]>
Max-Forwards: 100
User-Agent: SIPp/sippy_cup
Content-Length: 0
[routes]
]]>
</send>
  <nop>
    <action>
      <exec/>
    </action>
  </nop>
  <pause milliseconds="3000"/>
  <pause milliseconds="500"/>
  <pause milliseconds="3000"/>
  <pause milliseconds="2000"/>
  <pause milliseconds="3000"/>
  <send>
<![CDATA[
...

coming from

#!/usr/bin/env ruby
require 'sippy_cup'

scenario = SippyCup::Scenario.new 'Sippy Cup', source: '192.168.178.33', destination: '91.250.81.254' do |s|
 s.register '123@dokmatic.com', 'xxx'
 s.invite
 s.wait_for_answer
 s.ack_answer
 s.sleep 3
 s.send_digits '2'
 s.sleep 3
 s.send_digits '1234'
 s.sleep 3
 s.send_bye
 s.wait_for_hangup
end

scenario.compile!

I'd be grateful for any hint on this.

bklang commented 10 years ago

Can you post your full compiled sipp XML? I've never seen this error, I'm curious where it's coming from.

bklang commented 10 years ago

Ah disregard, I'll just compile it from your example sippy_cup code, thanks.

bklang commented 10 years ago

Ok, I've reproduced this, working on a fix.

bklang commented 10 years ago

This fix will be included in 0.4.0, released later today.