[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Aug 25 12:25:08 CDT 2010
branch "master" has been updated
via 0ba14a1c8285806f12a77de00bb40c95d71294aa (commit)
from 9388404b91a4b71e6c162bdf9929aa46ad210fbf (commit)
Summary of changes:
src/PJSipSessionModule.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 0ba14a1c8285806f12a77de00bb40c95d71294aa
Author: Joshua Colp <jcolp at digium.com>
Date: Wed Aug 25 14:36:27 2010 -0300
Copy only the user portion of the request URI into the destination string. If we copy pj_strbuf itself we get the rest of the packet as well.
diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 99ee7da..5c0295e 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -116,7 +116,7 @@ static void handle_new_invite(pjsip_rx_data *rdata)
pjsip_sip_uri *sipRuri = (pjsip_sip_uri *)ruri;
//For now, we only know about destination "100" so we'll
//grab that from the URI to pass to the locator.
- destination = pj_strbuf(&sipRuri->user);
+ destination = std::string(pj_strbuf(&sipRuri->user), pj_strlen(&sipRuri->user));
}
LocatorRegistryPrx locator = dataModel.getRoutingService();
EndpointSeq endpoints;
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list