Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6658517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:55:22+00:00 2026-05-26T01:55:22+00:00

I am trying to understand how my softphone issues BYEs to hangup so I

  • 0

I am trying to understand how my softphone issues BYEs to hangup so I can recreate it elsewhere. Below is a the packet that ZoIPer sends to the server that runs SIP signaling software.

I am trying to build this string and successfully hangup on someone, but I invariably get 400, 403, 407, 481 and 503 errors. The problem is that I cannot determine where the value of “did” in the Route header comes from, and also do not know where the “branch” value comes from in the Via header. Every other parameter is exposed by Asterisk for my consumption, just not these two.

How do I determine “did” and “branch”?

Also, this example uses Proxy-Authorization, but for short calls, this line is omitted by ZoIPer.

BYE sip:user1@astHost SIP/2.0
Via: SIP/2.0/UDP 192.168.1.183:5060;branch=z9hGda4bK-d8754z-678f2d4d1e5-1---d8754z-
Max-Forwards: 70
Route: <sip:sipHost;lr;ftag=733a98721;did=c0f.22438545>
Contact: <sip:user2@192.168.1.183:5060;transport=UDP>
To: <sip:user1@mydomain;transport=UDP>;tag=as4f57c9b8a
From: <sip:user2@mydomain;transport=UDP>;tag=733a98721
Call-ID: Nzg1ZTEyYTg4NasdlkSZLK3j10.
CSeq: 3 BYE
Proxy-Authorization: Digest username="bobby",realm="TomTest.voip.snohio.net",nonce="4e8a1b1700005997e6b1d8732be4b4c01f56d27a6d2dd80b",uri="sip:103@74.115.42.220:5060",response="3dbb0f4cbb0000c7786975cf043e6898",algorithm=MD5
User-Agent: Zoiper rev.11137
Content-Length: 0

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:55:22+00:00Added an answer on May 26, 2026 at 1:55 am

    branch is the identifier of the BYE transaction. It MUST start with z9hG4bK and be globally unique, but otherwise its precise format is left up to the implementor’s discretion. In a request, whatever user agent sends the request adds the branch parameter. In your case, Zoiper will calculate it.

    Most SIP headers may carry arbitrary parameters and here ftag and did are examples of such parameters. They’re not part of any SIP RFC, according to the IANA registry, so might mean anything. It looks to be something internal to Asterisk. Your best bet is to leave the Route headers alone.

    For a BYE the important parts are the Call-ID and the tag parameters in the From and To headers. Get these wrong and you will get a 481 Call/Transaction Does Not Exist response.

    You’ll get 403 and 407 responses if your Authorization (403) or Proxy-Authorization (407) credentials aren’t correct.

    A 503 response indicates that your proxy’s too busy to process your request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to understand something. I created a d:\svn\repository on my server. I committed folders
Just trying to understand that - I have never used it before. How is
I'm trying to understand if it's possible to create a set of variables that
Trying to understand something that I don't know how to describe because I don't
While trying to understand how a web server worked, I came accross this: //myfile.js
Trying to understand how to link a function that is defined in a struct,
Trying to understand what is going on, maybe someone can explain. Upon :HOVER I
I am trying understand how multi queries work in mysqli. But I confess that
In trying to understand javascript best practices, I'm attempting to recreate a piece of
Trying to understand how the code below always brings up a number between 0-6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.