Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kalta committed Jul 8, 2013
1 parent 6db0820 commit e45538c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/nksip_tutorial/src/nksip_tutorial.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ launch() ->
{transport, {udp, {0,0,0,0}, 5060}},
{transport, {tls, {0,0,0,0}, 5061}}
]),

nksip:start(client1, nksip_tutorial_sipapp_client, [client1],
[
{from, "sip:client1@nksip"},
Expand All @@ -47,6 +48,7 @@ launch() ->

{ok, 200} = nksip_uac:options(client2, "sip:127.0.0.1:5070", []),
{ok, 407} = nksip_uac:options(client1, "sip:127.0.0.1", []),

{ok, 200} = nksip_uac:options(client1, "sip:127.0.0.1",
[{pass, "1234"}]),
{ok, 200} = nksip_uac:options(client2, "sip:127.0.0.1;transport=tls",
Expand All @@ -56,13 +58,15 @@ launch() ->
[{pass, "1234"}, make_contact]),
{ok, 200} = nksip_uac:register(client2, "sip:127.0.0.1;transport=tls",
[{pass, "1234"}, make_contact]),

{reply, Resp1} = nksip_uac:register(client2, "sip:127.0.0.1;transport=tls",
[{pass, "1234"}, full_response]),
200 = nksip_response:code(Resp1),
[<<"<sips:client2@", _/binary>>] = nksip_response:headers(<<"Contact">>, Resp1),

{ok, 200} = nksip_uac:options(client1, "sip:127.0.0.1", []),
{ok, 200} = nksip_uac:options(client2, "sip:127.0.0.1;transport=tls", []),

{ok, 407} = nksip_uac:options(client1, "sips:client2@nksip",
[{route, "sip:127.0.0.1;lr"}]),
{reply, Resp2} = nksip_uac:options(client1, "sips:client2@nksip",
Expand Down

0 comments on commit e45538c

Please sign in to comment.