diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-23 12:14:27 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-23 12:14:27 +0100 |
commit | beab67b2e38808f91ecd390190d527fc7db5499d (patch) | |
tree | f74071b32c0971a7f3354901e164ce7b47c95f88 /sip/examples | |
parent | d07dcedf8f9601fda14f79ebfbcf858d3794c16c (diff) | |
download | sip-rs-beab67b2e38808f91ecd390190d527fc7db5499d.tar sip-rs-beab67b2e38808f91ecd390190d527fc7db5499d.tar.bz2 sip-rs-beab67b2e38808f91ecd390190d527fc7db5499d.tar.zst |
call receive tool
Diffstat (limited to 'sip/examples')
-rw-r--r-- | sip/examples/server.rs | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sip/examples/server.rs b/sip/examples/server.rs index 02c06b4..859c35e 100644 --- a/sip/examples/server.rs +++ b/sip/examples/server.rs @@ -47,7 +47,10 @@ async fn handle_client(stream: TcpStream, addr: SocketAddr) -> Result<()> { let to: To = req.headers.get_res()?; let via: Via = req.headers.get_res()?; let contact: Contact = req.headers.get_res()?; - info!("Registered {}", contact.uri.localpart.as_ref().unwrap()); + info!( + "({addr}) Registered {}", + contact.uri.localpart.as_ref().unwrap() + ); tu.respond( &req, @@ -67,17 +70,3 @@ async fn handle_client(stream: TcpStream, addr: SocketAddr) -> Result<()> { if req.method == Method::Invite {} } } - -/* -[2024-07-05T22:22:40Z DEBUG sip::transport::udp] SIP/2.0 200 OK - Via: SIP/2.0/UDP 198.18.1.135:52125;branch=Uz7r7ysvrS91q9j9;rport=52125 - Contact: <sip:metatest-0x5e11f89f7900@198.18.1.135:40708>;expires=379;+sip.instance="<urn:uuid:9b2421ef-43ed-3b3b-9181-607ba5c13fb9>" - Contact: <sip:metatest-0x5e11f89f7900@198.18.1.135:47412>;expires=411 - Contact: <sip:metatest-0x5e11f89f7900@198.18.1.135:52125>;expires=600 - To: <sip:metatest@198.18.0.220>;tag=81756f4e - From: <sip:metatest@198.18.0.220>;tag=-AK4OkphTFVZv50h - Call-ID: U3Fyb6vT1BhWxiKG - CSeq: 1 REGISTER - User-Agent: AGFEO SIP V3.00.15 n (MAC=00094070069C) - Content-Length: 0 -*/ |