[pjsip] PJSIP & LAN

Ayman Farouk aymanfm at gmail.com
Mon May 5 13:16:01 EDT 2008


Hey Alan,
Thanks for your reply. I am using the SIP Registrar/Proxy Server which is
built on LumiSoft.NET SDK. I am trying to compile the pjsua_wince and run
it. I dont know why the machine that runs the proxy server has got this IP
address, both are on the same network though. And hence, that other
SIP-Softphones "x-lite" can connect and register using the same
configuration.

Thanks,
a.


Why have you got proxy configured on what looks like a different subnet?
Where is the client?  Don't quite follow what you're trying to do, draw us a
picture :-)

Regards,
Alan.

From: pjsip-bounces at lists.pjsip.org [mailto:pjsip-bounces at lists.pjsip.org]
On Behalf Of Ayman Farouk
Sent: 05 May 2008 16:24
To: pjsip at lists.pjsip.org
Subject: Re: [pjsip] PJSIP & LAN

Well, I have disabled the STUN and tried to connect.. I see nothing on my
local proxy server! and the registration times out..

My settings were:

#define SIP_DST_URI "sip:192.168.0.7:5061<http://192.168.0.7:5061>"
//
// Account
//
#define HAS_SIP_ACCOUNT 1
#define SIP_DOMAIN "192.168.1.6X"
#define SIP_REALM "*"
#define SIP_USER "muser"
#define SIP_PASSWD "pwd"
//
// Outbound proxy for all accounts
//
#define SIP_PROXY "sip:192.168.1.1XX;lr"//NULL
//#define SIP_PROXY
"sip:192.168.0.2<http://192.168.0.2>;lr<http://192.168.0.2%3e;lr/>
"

//
// Configure nameserver if DNS SRV is to be used with both SIP
// or STUN (for STUN see other settings below)
//
#define NAMESERVER NULL
#define NAMESERVER NULL
//
// STUN server
#if 0
 // Use this to have the STUN server resolved normally
#   define STUN_DOMAIN NULL
#   define STUN_SERVER "stun.fwdnet.net<http://stun.fwdnet.net>"
#elif 0
 // Use this to have the STUN server resolved with DNS SRV
#   define STUN_DOMAIN "iptel.org<http://iptel.org>"
#   define STUN_SERVER NULL
#else
 // Use this to disable STUN
#   define STUN_DOMAIN NULL
#   define STUN_SERVER NULL
#endif
//
// Use ICE?
//
#define USE_ICE  1

Thanks in advance.

On Sun, May 4, 2008 at 7:59 PM, Ayman Farouk <
aymanfm at gmail.com<mailto:aymanfm at gmail.com<aymanfm at gmail.com%3Cmailto:aymanfm at gmail.com>>>
wrote:
> Dear All,
> I am really impressed by the amazing support you're giving. I am pretty
new
> to the whole thing! I want to know how would I configure my application if
I
> want to use " Local IP Addresses ONLY" -  cause from what I have seen
pjsip
> tends to use the global IP addresses? In other words, my configuration is
> just a registrar/proxy sip server and clients in a local area network..
no
> STUN nor DNS. What's the best way to configure such a thing?
>

I think just don't use STUN (and this is the default setting), and
that will be all?

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080505/2562b163/attachment.html>


More information about the pjsip mailing list