Cannot register to Asterisk from pjsip.

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

 



Hello,

Did you run a trace on the asterisk side?

On Thu 21 May 2015 at 01:59 AJ NOURI <ajn.bin at gmail.com> wrote:

> Hi everyone,
>
> I have a hard time registering to trixbox using pjsua from Linux machines
> (192.168.22.1 and 192.168.33.1)
> topology:
>
> https://drive.google.com/file/d/0BzYXUSsUVFR_UkUtMkk4b18xNzQ/view?usp=sharing
>
> I have configured 3 extensions on the Asterisk call manager
> (192.168.0.125), here is an example of Asterisk configuration:
>
> https://drive.google.com/file/d/0BzYXUSsUVFR_ZnpkMjFWbURwWnM/view?usp=sharing
>
> I can register with any extension using Linphone (GUI SIP Phone) , located
> in 192.168.0.121
>
> Here is how I try to register from pjsua:
>
> >>> +a
> Your SIP URL: (empty to cancel): sip:101 at 192.168.0.125
> URL of the registrar: (empty to cancel): sip:192.168.0.125
> Auth Realm: (empty to cancel): *
> Auth Username: (empty to cancel): 101
> Auth Password: (empty to cancel): user101
> 07:54:42.539    pjsua_acc.c  Adding account: id=sip:101 at 192.168.0.125
> 07:54:42.539    pjsua_acc.c  .Account sip:101 at 192.168.0.125 added with id
> 0
> 07:54:42.540    pjsua_acc.c  .Acc 0: setting registration..
> 07:54:42.540   pjsua_core.c  ...TX 538 bytes Request msg REGISTER/cseq=317
> (tdta0x2130d20) to UDP 192.168.0.125:5060:
> REGISTER sip:192.168.0.125 SIP/2.0
> Via: SIP/2.0/UDP 192.168.33.1:5060
> ;rport;branch=z9hG4bKPj.yCkzLqEWHrpvyKuN4P35HKwfpfWcgz8
> Max-Forwards: 70
> From: <sip:101@192.168.0.125>;tag=01KRw5An8aWhj7N3tQLsxVdSNR-rxTOS
> To: <sip:101 at 192.168.0.125>
> Call-ID: A9IR4N9vlT5KiqNc.bNVf2XTWq8OyOsu
> CSeq: 317 REGISTER
> User-Agent: PJSUA v2.3 Linux-3.13.0.52/x86_64/glibc-2.19
> Contact: <sip:101 at 192.168.33.1:5060;ob>
> Expires: 300
> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
> REFER, MESSAGE, OPTIONS
> Content-Length:  0
>
>
> --end msg--
>
> *<...> After multiple tries*
>
> --end msg--
> 07:55:51.544    pjsua_acc.c  ...SIP registration failed, status=408
> (Request Timeout)
> 07:55:51.544    pjsua_acc.c  ...Scheduling re-registration retry for acc 0
> in 294 seconds..
>
> And here is the tcpdump showing pjsua registering without response from
> the server:
>
> https://drive.google.com/file/d/0BzYXUSsUVFR_eE1NRjRRS3psOUE/view?usp=sharing
>
>
> Note that point-to-point SIP test between 2 pjsua works perfectly.
>
> _______________________________________________
> 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/20150521/7327bcea/attachment.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