MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / smAddViaBranch

Method smAddViaBranch

SIP/SIPMessage.cpp:249–253  ·  view source on GitHub ↗

Add a new Via with a new unique branch.

Source from the content-addressed store, hash-verified

247
248// Add a new Via with a new unique branch.
249void SipMessage::smAddViaBranch(string transport, string branch)
250{
251 string newvia = format("SIP/2.0/%s %s;branch=%s\r\n",transport,localIPAndPort(),branch);
252 commaListPushFront(&msmVias,newvia);
253}
254void SipMessage::smAddViaBranch(SipBase *dialog, string branch)
255{
256 // Add a visible hint to the tag for debugging. Use the Request Method, if any.

Callers 2

makeRequestMethod · 0.80

Calls 4

localIPAndPortFunction · 0.85
commaListPushFrontFunction · 0.85
transportNameMethod · 0.80
localIPAndPortMethod · 0.80

Tested by

no test coverage detected