[Spce-user] Rtpengine perl client

John Nash john.nash778 at gmail.com
Sun Apr 24 03:03:45 EDT 2016


When testing
https://github.com/sipwise/rtpengine/blob/master/utils/ng-client I stumbled
across one issue while sending request to Rtpengine from perl client.

The issue in some cases SIP endpoint generates integer from-tag and when
"packet" is passed to bencode function, bencode formats it as integer
Before sending to bencode ==>
          'replace' => [
                         'origin',
                         'session connection'
                       ],
          'flags' => [
                       'trust address',
                       'reset'
                     ],
          'from-tag' => '111347',
          'ICE' => 'remove',
          'call-id' => '60599m192u168u1u31461479213',
          'to-tag' => '9tS4K5Qge4Z4j',
          'command' => 'answer'
        };

Packet on the wire ..
0.601927622295083
d3:ICE6:remove7:call-id29:31690m192u168u0u10014614383167:command6:answer5:flagsl13:trust
address5:resete8:from-tagi111835e7:replacel6:origin18:session
connectione3:sdp262:v=0
o=- 22469580 22469580 IN IP4 85.13.233.58
s=iTelMobileDialer-5.7.1 (iOS)
c=IN IP4 85.13.233.58
t=0 0
m=audio 30950 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=rtcp:30951
6:to-tag13:N5jQj34c164mFe

As you can see bencode formatted it as integer and Rtpengine does not like
this and results with "Error reason: "No from-tag in message""


How can I get around this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20160424/3ceaee5b/attachment.html>


More information about the Spce-user mailing list