Outbound proxy + TCP transport

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

 



hi,

>From the messages, it can be determined that, SUA has not been able to
register with the location server.
Try the configuration settings in the location server so as to accept
registrations from network in which PJSUA is present.

On Fri, Sep 14, 2012 at 5:26 PM, Vinayaka . surya <vinu.viking at gmail.com>wrote:

> Hello all,
> I'm trying to register PJSUA using the following command:
>
> ./pjsua-i686-pc-linux-gnu --id="sip:409 at 192.168.3.7;transport=tcp"
> --registrar="sip:192.168.3.7;transport=tcp"
> --proxy="sip:192.168.3.7;transport=tcp" --outbound="sip:192.168.4.147:5060
> ;transport=tcp;lr"
>
>
> I would want to draw you attention to my requirement here :
> I want to register using the
> 1. Outbound proxy @ 192.168.4.147
> 2. I want to use transport=tcp.
>
> Is the command line arguments correct?
> If not where am I going wrong, as the message I get for the registration
> is :
>
> 17:16:58.813 os_core_unix.c !pjlib 2.0.1 for POSIX initialized
> 17:16:58.815 sip_endpoint.c  .Creating endpoint instance...
> 17:16:58.815          pjlib  .select() I/O Queue created (0x924bca0)
> 17:16:58.815 sip_endpoint.c  .Module "mod-msg-print" registered
> 17:16:58.815 sip_transport.  .Transport manager created.
> 17:16:58.815   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
> 17:16:58.815 sip_endpoint.c  .Module "mod-pjsua-log" registered
> 17:16:58.815 sip_endpoint.c  .Module "mod-tsx-layer" registered
> 17:16:58.815 sip_endpoint.c  .Module "mod-stateful-util" registered
> 17:16:58.815 sip_endpoint.c  .Module "mod-ua" registered
> 17:16:58.816 sip_endpoint.c  .Module "mod-100rel" registered
> 17:16:58.816 sip_endpoint.c  .Module "mod-pjsua" registered
> 17:16:58.817 sip_endpoint.c  .Module "mod-invite" registered
> 17:16:58.818       pa_dev.c  ..PortAudio sound library initialized,
> status=0
> 17:16:58.818       pa_dev.c  ..PortAudio host api count=1
> 17:16:58.818       pa_dev.c  ..Sound device count=0
> 17:16:58.818          pjlib  ..select() I/O Queue created (0x9252d1c)
> 17:16:58.838 sip_endpoint.c  .Module "mod-evsub" registered
> 17:16:58.838 sip_endpoint.c  .Module "mod-presence" registered
> 17:16:58.838 sip_endpoint.c  .Module "mod-mwi" registered
> 17:16:58.838 sip_endpoint.c  .Module "mod-refer" registered
> 17:16:58.838 sip_endpoint.c  .Module "mod-pjsua-pres" registered
> 17:16:58.839 sip_endpoint.c  .Module "mod-pjsua-im" registered
> 17:16:58.839 sip_endpoint.c  .Module "mod-pjsua-options" registered
> 17:16:58.839   pjsua_core.c  .1 SIP worker threads created
> 17:16:58.839   pjsua_core.c  .pjsua version 2.0.1 for
> Linux-2.6.38.8/i686/glibc-2.13 initialized
> 17:16:58.839   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
> 17:16:58.839 sip_endpoint.c  Module "mod-default-handler" registered
> 17:16:58.840   pjsua_core.c  SIP UDP socket reachable at
> 192.168.4.149:5060
> 17:16:58.840   udp0x9263430  SIP UDP transport started, published address
> is 192.168.4.149:5060
> 17:16:58.840    pjsua_acc.c  Adding account: id=<sip:192.168.4.149:5060>
> 17:16:58.840    pjsua_acc.c  .Account <sip:192.168.4.149:5060> added with
> id 0
> 17:16:58.840    pjsua_acc.c  Acc 0: setting online status to 1..
> 17:16:58.840    tcplis:5060  SIP TCP listener ready for incoming
> connections at 192.168.4.149:5060
> 17:16:58.840    pjsua_acc.c  Adding account: id=<sip:192.168.4.149:5060
> ;transport=TCP>
> 17:16:58.840    pjsua_acc.c  .Account <sip:192.168.4.149:5060;transport=TCP>
> added with id 1
> 17:16:58.840    pjsua_acc.c  Acc 1: setting online status to 1..
> 17:16:58.840    pjsua_acc.c  Adding account: id=sip:409 at 192.168.3.7
> ;transport=tcp
> 17:16:58.840    pjsua_acc.c  .Account sip:409 at 192.168.3.7;transport=tcp
> added with id 2
> 17:16:58.840    pjsua_acc.c  .Acc 2: setting registration..
> 17:16:58.840    pjsua_acc.c  ..Contact for acc 2 updated for SIP outbound:
> <sip:409 at 192.168.4.149:5060
> ;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-0000a3fe1a18>"
> 17:16:58.841  tcpc0x9269d1c  ...TCP client transport created
> 17:16:58.842  tcpc0x9269d1c  ...TCP transport 192.168.4.149:48684 is
> connecting to 192.168.4.147:5060...
> 17:16:58.842   pjsua_core.c  ...TX 751 bytes Request msg
> REGISTER/cseq=40457 (tdta0x92684f8) to tcp 192.168.4.147:5060:
> REGISTER sip:192.168.3.7;transport=tcp SIP/2.0
> Via: SIP/2.0/TCP 192.168.4.149:48684
> ;rport;branch=z9hG4bKPjayaL9tMlOVH4aiWWYoH9dYhDdAQUPSRg
> Route: <sip:192.168.4.147:5060;transport=tcp;lr>
> Route: <sip:192.168.3.7;transport=tcp;lr>
> Max-Forwards: 70
> From: <sip:409@192.168.3.7>;tag=EzBd4Rmu6eeY7YULANOBCwVnsql8d4aN
> To: <sip:409 at 192.168.3.7>
> Call-ID: T8hpxeUoCfvgc6f-pmotOG.zbkkftLbK
> CSeq: 40457 REGISTER
> User-Agent: PJSUA v2.0.1 Linux-2.6.38.8/i686/glibc-2.13
> Supported: outbound, path
> Contact: <sip:409 at 192.168.4.149:5060
> ;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-0000a3fe1a18>"
> Expires: 300
> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER,
> MESSAGE, OPTIONS
> Content-Length:  0
>
>
> --end msg--
> 17:16:58.842    pjsua_acc.c  ..Acc 2: Registration sent
> 17:16:58.842    pjsua_acc.c  Acc 2: setting online status to 1..
> 17:16:58.842   pjsua_core.c  PJSUA state changed: INIT --> STARTING
> 17:16:58.842  pjsua_media.c  ..NAT type detection failed: Invalid STUN
> server or server not configured (PJNATH_ESTUNINSERVER)
> 17:16:58.842 sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
> 17:16:58.842   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
> >>>>
> Account list:
>   [ 0] <sip:192.168.4.149:5060>: does not register
>        Online status: Online
>   [ 1] <sip:192.168.4.149:5060;transport=TCP>: does not register
>        Online status: Online
>  *[ 2] sip:409 at 192.168.3.7;transport=tcp: 100/In Progress (expires=0)
>        Online status: Online
> Buddy list:
>  -none-
>
>
> +=============================================================================+
> |       Call Commands:         |   Buddy, IM & Presence:  |
> Account:      |
> |                              |
> |                   |
> |  m  Make new call            | +b  Add new buddy       .| +a  Add new
> accnt |
> |  M  Make multiple calls      | -b  Delete buddy         | -a  Delete
> accnt. |
> |  a  Answer call              |  i  Send IM              | !a  Modify
> accnt. |
> |  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr
> (Re-)register |
> |  H  Hold call                |  u  Unsubscribe presence | ru
> Unregister    |
> |  v  re-inVite (release hold) |  t  ToGgle Online status |  >  Cycle next
> ac.|
> |  U  send UPDATE              |  T  Set online status    |  <  Cycle prev
> ac.|
> | ],[ Select next/prev call
> +--------------------------+-------------------+
> |  x  Xfer call                |      Media Commands:     |  Status &
> Config: |
> |  X  Xfer with Replaces       |
> |                   |
> |  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump
> status   |
> |  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump
> detailed |
> | dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump
> config   |
> |                              |  V  Adjust audio Volume  |  f  Save
> config   |
> |  S  Send arbitrary REQUEST   | Cp  Codec priorities
> |                   |
>
> +-----------------------------------------------------------------------------+
> |  q  QUIT   L  ReLoad   sleep MS   echo [0|1|txt]     n: detect NAT
> type     |
>
> +=============================================================================+
> You have 0 active call
> >>> 17:16:59.500  tcpc0x9269d1c !TCP connect() error: Connection refused
> [code=120111]
> 17:16:59.501   tsx0x9269564  Failed to send Request msg
> REGISTER/cseq=40457 (tdta0x92684f8)! err=120111 (Connection refused)
> 17:16:59.501    pjsua_acc.c  ..SIP registration failed, status=503
> (Connection refused)
> 17:16:59.501    pjsua_acc.c  ..Scheduling re-registration retry for acc 2
> in 58 seconds..
> 17:16:59.501    pjsua_app.c  SIP tcp transport is disconnected from [
> 192.168.4.147:5060]: Connection refused [status=120111]
> 17:16:59.501    pjsua_acc.c  Disconnected notification for transport
> tcpc0x9269d1c
> 17:16:59.501    pjsua_acc.c  .Scheduling re-registration retry for acc 2
> in 53 seconds..
> 17:16:59.501  tcpc0x9269d1c  TCP transport dest
>
>
> Also, when I notice on wireshark @ 192.168.4.147, I see that the SIP
> register is a UDP packet. Why is this so??
>
> All help is appreciated.
>
>
> Regards.
> B. S. Vinayaka
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120914/07e3532d/attachment-0001.html>


[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