Question regarding using pjsua

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am taking over development on a project for a colleague who has been 
transferred. I am unsure if he posted this item.

Any assistance will be much appreciated.

I am trying to build a workable SIP stack on a Windows development machine.

I compiled pjproject-1.6 and its python wrapper. My ultimate goal is to 
have my python application use the python wrapper to control the SIP 
stack on a Linux workstation.

My immediate goal is to simply make a test call to a PSTN number via a 
SIP provider using the pjsua-i686-pc-mingw32 program.

The provider's service address I was given is not in symbolic notation 
but a numeric IP address. For illustration purposes I'll use 
aaa.bbb.ccc.ddd.

The account username is string in the form of 11111_222222. The password 
is an alphameric string: mypassword.

The program, pjsua-i686-pc-mingw32.exe, using the parameters:

      --registrar sip:aaa.bbb.ccc.ddd  --username 11111_222222 
--password mypassword

starts and displays the menu. The messages listed during initialization 
are:

  23:48:58.453 os_core_win32.  pjlib 1.6 for win32 initialized
  23:48:58.468 sip_endpoint.c  Creating endpoint instance...
  23:48:58.468          pjlib  select() I/O Queue created (003dd268)
  23:48:58.468 sip_endpoint.c  Module "mod-msg-print" registered
  23:48:58.468 sip_transport.  Transport manager created.
  23:48:58.468 sip_endpoint.c  Module "mod-pjsua-log" registered
  23:48:58.468 sip_endpoint.c  Module "mod-tsx-layer" registered
  23:48:58.468 sip_endpoint.c  Module "mod-stateful-util" registered
  23:48:58.468 sip_endpoint.c  Module "mod-ua" registered
  23:48:58.468 sip_endpoint.c  Module "mod-100rel" registered
  23:48:58.468 sip_endpoint.c  Module "mod-pjsua" registered
  23:48:58.468 sip_endpoint.c  Module "mod-invite" registered
  23:48:58.593       pa_dev.c  PortAudio sound library initialized, 
status=0
  23:48:58.593       pa_dev.c  PortAudio host api count=2
  23:48:58.593       pa_dev.c  Sound device count=4
  23:48:58.593     wmme_dev.c  WMME initialized, found 3 devices:
  23:48:58.593     wmme_dev.c   dev_id 0: Wave mapper  (in=2, out=2)
  23:48:58.593     wmme_dev.c   dev_id 1: Conexant AMC Audio  (in=2, out=0)
  23:48:58.593     wmme_dev.c   dev_id 2: Conexant AMC Audio  (in=0, out=2)
  23:48:58.593          pjlib  select() I/O Queue created (00b7477c)
  23:48:58.593        libsrtp  Ugh: /dev/urandom not present, using 
rand() instead
  23:48:58.593        libsrtp  Ugh: /dev/urandom not present, using 
rand() instead
  23:48:58.593        libsrtp  Ugh: /dev/urandom not present, using 
rand() instead
  23:48:58.593        libsrtp  Ugh: /dev/urandom not present, using 
rand() instead
  23:48:58.593 sip_endpoint.c  Module "mod-evsub" registered
  23:48:58.609 sip_endpoint.c  Module "mod-presence" registered
  23:48:58.609 sip_endpoint.c  Module "mod-mwi" registered
  23:48:58.609 sip_endpoint.c  Module "mod-refer" registered
  23:48:58.609 sip_endpoint.c  Module "mod-pjsua-pres" registered
  23:48:58.609 sip_endpoint.c  Module "mod-pjsua-im" registered
  23:48:58.609 sip_endpoint.c  Module "mod-pjsua-options" registered
  23:48:58.609   pjsua_core.c  1 SIP worker threads created
  23:48:58.609   pjsua_core.c  pjsua version 1.6 for i686-pc-mingw32 
initialized
  23:48:58.609 sip_endpoint.c  Module "mod-default-handler" registered
  23:48:58.609   pjsua_core.c  SIP UDP socket reachable at 
192.168.5.101:5060
  23:48:58.625    udp00b85948  SIP UDP transport started, published 
address is 192.168.5.101:5060
  23:48:58.625    pjsua_acc.c  Account <sip:192.168.5.101:5060> added 
with id 0
  23:48:58.625    tcplis:5060  SIP TCP listener ready for incoming 
connections at 192.168.5.101:5060
  23:48:58.625    pjsua_acc.c  Account 
<sip:192.168.5.101:5060;transport=TCP> added with id 1
  23:48:58.640  pjsua_media.c  RTP socket reachable at 192.168.5.101:4000
  23:48:58.640  pjsua_media.c  RTCP socket reachable at 192.168.5.101:4001
  23:48:58.656  pjsua_media.c  RTP socket reachable at 192.168.5.101:4002
  23:48:58.656  pjsua_media.c  RTCP socket reachable at 192.168.5.101:4003
  23:48:58.671  pjsua_media.c  RTP socket reachable at 192.168.5.101:4004
  23:48:58.671  pjsua_media.c  RTCP socket reachable at 192.168.5.101:4005
  23:48:58.687  pjsua_media.c  RTP socket reachable at 192.168.5.101:4006
  23:48:58.687  pjsua_media.c  RTCP socket reachable at 192.168.5.101:4007
  23:48:58.687 sip_endpoint.c  Module "mod-unsolicited-mwi" registered
 >>>>
Account list:
   [ 0] <sip:192.168.5.101:5060>: does not register
        Online status: Online
  *[ 1] <sip:192.168.5.101:5060;transport=TCP>: does not register
        Online status: Online
Buddy list:
  -none-


I note that the Account is given as: Account <sip:192.168.5.101:5060> 
added with id 0;

that is, it described in terns of my machine's private IP address which 
is behind a firewall with NAT enabled.

I am unsure as to why I cannot register. My guess is that the ID should 
be in form:

IDSTRING at mymachine.mydomain.com or, alternatively, 
IDSTRING at rrr.sss.ttt.uuu where the latter is my static IP address.

In talking with the SIP provider's support staff, they informed me that 
the registration process they use is dependent only on the username and 
password. They suggested putting our PSTN number as the ID but they did 
not tell me the format that the ID should take. I have tried a variety 
of formats but none are valid.

Can anyone help me with the proper input parameters needed to 
successfully register with my provider and then use the 'm' command to 
call a PSTN number in the form: NPA-NNX-NNNN?

Also, can anyone suggest where to find documentation for the format of 
the parameters for each of this program's  commands?

Thanks in advance





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux