<div dir="ltr">Hi Anders,<br>
<br>
On 10/18/2013 05:45 PM, Anders Svensson wrote:
<blockquote cite="mid:CADho9odW8JXQmZq07RYQcJ5VhRpkxkw=kmCz9zLjOcrvN832dg@mail.gmail.com" type="cite">
One thing that's not quite right in your configuration is that both
the relay and server identify themselves with
Origin-Host=<a href="http://service.example.com">service.example.com</a>. The server is another Diameter node
that should have its own identity. Not sure if that could be a problem
(don't know seagull for one) but it's not impossible. Similarly, the
client should also have its own identity.

The relay closing the connection upon reception of CEA means that
there's something it doesn't like. If you trace on
diameter_peer_fsm:terminate/2 then we should be able to see why.

</blockquote>
<br>
I fixed the Origin-Host (on all three peers), and you're right about the
 relay rejecting the CEA. It looks to me like the upstream (server) is 
rejecting the CER with a 3xxx error code:<br>
<br>
(<0.248.0>) call diameter_peer_fsm:terminate({shutdown,{'CEA',{'Wait-CEA',1192247597,1192247597}}},{state,<br>
    {'Wait-CEA',1192247597,1192247597},<br>
    {connect,{{127,0,0,1},3868}},<br>
    <0.247.0>,<0.256.0>,diameter_gen_base_rfc3588,<br>
    {diameter_service,<0.245.0>,<br>
        {diameter_caps,"<a href="http://relay.example.com">relay.example.com</a>","<a href="http://example.com">example.com</a>",<br>
            [{127,0,0,1}],<br>
            193,"Server",[],[],<br>
            [4294967295],<br>
            [],[],[],[],[]},<br>
        [{diameter_app,m_diameter_service,diameter_gen_relay,<br>
             [m_diameter_relay],<br>
             m_diameter_service,4294967295,false,<br>
             [{answer_errors,report},{request_errors,answer_3xxx}]}]},<br>
    false,exit})<br>
(<0.248.0>) returned from diameter_peer_fsm:terminate/2 -> ok<br>
<br>
(<0.278.0>) call diameter_peer_fsm:terminate({shutdown,{'CEA',timeout}},{state,<br>
    {'Wait-CEA',1192247598,1192247598},<br>
    {connect,{{127,0,0,1},3868}},<br>
    <0.247.0>,<0.279.0>,diameter_gen_base_rfc3588,<br>
    {diameter_service,<0.245.0>,<br>
        {diameter_caps,"<a href="http://relay.example.com">relay.example.com</a>","<a href="http://example.com">example.com</a>",<br>
            [{127,0,0,1}],<br>
            193,"Server",[],[],<br>
            [4294967295],<br>
            [],[],[],[],[]},<br>
        [{diameter_app,m_diameter_service,diameter_gen_relay,<br>
             [m_diameter_relay],<br>
             m_diameter_service,4294967295,false,<br>
             [{answer_errors,report},{request_errors,answer_3xxx}]}]},<br>
    false,exit})<br>
(<0.278.0>) returned from diameter_peer_fsm:terminate/2 -> ok<br>
<br>
(<0.285.0>) call diameter_peer_fsm:terminate({shutdown,{'CEA',timeout}},{state,<br>
    {'Wait-CEA',1192247599,1192247599},<br>
    {connect,{{127,0,0,1},3868}},<br>
    <0.247.0>,<0.286.0>,diameter_gen_base_rfc3588,<br>
    {diameter_service,<0.245.0>,<br>
        {diameter_caps,"<a href="http://relay.example.com">relay.example.com</a>","<a href="http://example.com">example.com</a>",<br>
            [{127,0,0,1}],<br>
            193,"Server",[],[],<br>
            [4294967295],<br>
            [],[],[],[],[]},<br>
        [{diameter_app,m_diameter_service,diameter_gen_relay,<br>
             [m_diameter_relay],<br>
             m_diameter_service,4294967295,false,<br>
             [{answer_errors,report},{request_errors,answer_3xxx}]}]},<br>
    false,exit})<br>
(<0.285.0>) returned from diameter_peer_fsm:terminate/2 -> ok<br>
<br>
I'll take a look at the test server configuration and see if I can figure out why.<br>
<br>
Thanks for the assist here - I'll try and remember to let the list know how I resolve this, for the benefit of future readers.<br>
<br>
Cheers,<br>
Tim<br>
</div>