<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Anders,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">No, I am not setting the stream identifier explicitly. The SID in the request is 10 and the diameter module seems to put that in the response as well?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">regards,</div><div style="font-family:arial,sans-serif;font-size:13px">Sharmila.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 12:15 PM, Anders Svensson <span dir="ltr"><<a href="mailto:anders.otp@gmail.com" target="_blank">anders.otp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sharmilla.<br>
<div class="im"><br>
On Tue, Jan 21, 2014 at 10:21 AM, Sharmila Pillai<br>
<<a href="mailto:pillai.sharmila@gmail.com">pillai.sharmila@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm encountering an error when using DIAMETER over SCTP.<br>
><br>
> I turned on dbg tracing, and this is what I see.<br>
><br>
> (<0.527.0>) call<br>
> diameter_sctp:send(10,Bin,{transport,<0.526.0>,accept,#Port<0.10834>,96747,undefined,{16,10},2})<br>
<br>
</div>The stream identifier here (first argument) looks to be equal to the<br>
number of outbound streams, which is 1 more than the maximal stream<br>
identifier. Are you setting the stream identifier explicitly when<br>
sending?<br>
<br>
/Anders, Erlang/OTP<br>
<div><div class="h5"><br>
<br>
> (<0.527.0>) call diameter_sctp:send(#Port<0.10834>,96747,10,Bin)<br>
> (<0.527.0>) call diameter_sctp:x({send,einval})<br>
> (<0.527.0>) exception_from {diameter_sctp,x,1}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) exception_from {diameter_sctp,send,4}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) exception_from {diameter_sctp,send,3}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) exception_from {diameter_sctp,send,2}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) exception_from {diameter_sctp,transition,2}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) exception_from {diameter_sctp,t,2}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) exception_from {diameter_sctp,handle_info,2}<br>
> {exit,{shutdown,{send,einval}}}<br>
> (<0.527.0>) call<br>
> diameter_sctp:terminate({shutdown,{send,einval}},{transport,<0.526.0>,accept,#Port<0.10834>,96747,undefined,{16,10},2})<br>
> (<0.527.0>) call diameter_sctp:close(#Port<0.10834>,96747)<br>
> (<0.527.0>) returned from diameter_sctp:close/2 -> ok<br>
> (<0.527.0>) returned from diameter_sctp:terminate/2 -> ok<br>
> (<0.315.0>) call<br>
> diameter_sctp:handle_info({'DOWN',#Ref<0.0.0.47966>,process,<0.527.0>,{shutdown,{send,einval}}},{listener,#Ref<0.0.0.1361>,#Port<0.4307>,2,786532,<br>
><br>
> I'm not sure why {error, einval} is being returned when a response is being<br>
> sent on the SCTP connection. If I look at the packet capture, it looks like<br>
> an SCTP SHUTDOWN is being sent back. Any pointers please?<br>
><br>
> Thanks,<br>
> Sharmila<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
</blockquote></div><br></div>