Comments (4)
FYI, pj-nat64 was added to pjsua-lib as part of my modified PJSIP build process. When I detect IPv6, I do the following:
+(BOOL)createIPv6Transport
{
BOOL nat64 = pj_nat64_enable_rewrite_module(NAT64_REWRITE_OUTGOING_SDP|NAT64_REWRITE_INCOMING_SDP|NAT64_REWRITE_ROUTE_AND_CONTACT) == PJ_SUCCESS;
NSLog(@"%s Enabled NAT64 module", __PRETTY_FUNCTION__);
BOOL tls_transport = pjsua_transport_create(PJSIP_TRANSPORT_TLS6,
&_transportConfig,
&_transportId) == PJ_SUCCESS;
return nat64 && tls_transport;
}
+(BOOL)registerAccount
{
TRACE
BOOL acc = pjsua_acc_add(&_accountConfig, PJ_TRUE, &_accountId) == PJ_SUCCESS;
if( ![self isIPv4] && acc)
{
NSLog(@"%s Setting Active Account ID for NAT64 rewrite", __PRETTY_FUNCTION__);
pj_nat64_set_active_account(_accountId);
}
return acc;
}
from pj-nat64.
FYI, issue still present after applying PR #2
from pj-nat64.
Hi Dave
I am currently on vacation and will be traveling until mid August.
Our app works and has passed Apple review with this code but it is quite
probable you have to do tweaks to make it work for your specific setup.
I have not checked the PR yet, will do so when I am back at work. Meanwhile
I suggest you simply go through the code and see what is failing. It is
pretty well documented.
Best Regards.
Johan
On Wednesday, 3 August 2016, Dave Poirier [email protected] wrote:
FYI, issue still present after applying PR #2
#2—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHHbFz50x_9rvK_5hGybytqYvq4kXh80ks5qcPsdgaJpZM4JcDPo
.
from pj-nat64.
I had a quick look at your log and it seems to contain an IPv4 address in the sdp so you do not appear to be behind a nat64 at all.
Also, just fyi. The pjsip functions such as pjsua_transport_create and pjsua_acc_add returns a pj_status_t. The success value is PJ_SUCCESS that is defined as 0. When you cast that into a BOOL it will evaluate to false which is probably not what you want.
from pj-nat64.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pj-nat64.