[asterisk-bugs] [JIRA] (ASTERISK-25553) endpoints created via pjsip_wizard does not have registrations

Rusty Newton (JIRA) noreply at issues.asterisk.org
Sat Nov 21 10:36:33 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228406#comment-228406 ] 

Rusty Newton edited comment on ASTERISK-25553 at 11/21/15 10:34 AM:
--------------------------------------------------------------------

{quote}
[trunk1]                  
type = wizard             
sends_auth = yes          
sends_registration = yes  
remote_hosts = tel.t-online.de
outbound_auth/username = mylogin at t-online.de
outbound_auth/password = mypassword
endpoint/context = inco
aor/max_contacts = 1  
{quote}

"sends_registration" is missing the final 's'. It should be "sends_registrations". I imagine that option would be ignored and no registration would be created for it.

{quote}
[fri]
type = wizard
accepts_registrations = yes
sends_registrations = no
accepts_auth = yes
sends_auth = no
endpoint/context = telefon
endpoint/allow = !all,ulaw,alaw,gsm,g722
endpoint/direct_media = no
endpoint/force_rport = yes
endpoint/disable_direct_media_on_nat = yes
endpoint/rewrite_contact = yes
aor/max_contacts = 1
aor/remove_existing = yes
inbound_auth/username = fri
inbound_auth/password = fripassword
{quote}

Here you apparently expecting inbound registrations. Are the problems only with inbound registrations, outbound registrations or both?

This might be simply a configuration issue. Did you already run this past others on the forums or mailing lists? It is a good idea to do that before assuming that an issue is a bug...

Fix your configuration  (you might compare it to https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Wizard ) and try again. If you still run into the invalid state issue that will be a separate problem. Since the invalid state is so close to ASTERISK-25466 you will probably want to simply comment on that issue and attach debug (assuming you still have the issue after fixing your configuration).


was (Author: rnewton):
{quote}
[trunk1]                  
type = wizard             
sends_auth = yes          
sends_registration = yes  
remote_hosts = tel.t-online.de
outbound_auth/username = mylogin at t-online.de
outbound_auth/password = mypassword
endpoint/context = inco
aor/max_contacts = 1  
{quote}

"sends_registration" is missing the final 's'. It should be "sends_registrations". I imagine that option would be ignored and no registration would be created for it.

{quote}
[fri]
type = wizard
accepts_registrations = yes
sends_registrations = no
accepts_auth = yes
sends_auth = no
endpoint/context = telefon
endpoint/allow = !all,ulaw,alaw,gsm,g722
endpoint/direct_media = no
endpoint/force_rport = yes
endpoint/disable_direct_media_on_nat = yes
endpoint/rewrite_contact = yes
aor/max_contacts = 1
aor/remove_existing = yes
inbound_auth/username = fri
inbound_auth/password = fripassword
{quote}

The documentation for "sends_registrations" says:

{quote}
Will create an outbound registration object for each
host in remote_hosts.
{quote}

I do not see a remote_hosts option defined in your "fri" configuration, so I don't think any registrations would get created for fri.

This might be simply a configuration issue. Did you already run this past others on the forums or mailing lists? It is a good idea to do that before assuming that an issue is a bug...

Fix your configuration  (you might compare it to https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Wizard ) and try again. If you still run into the invalid state issue that will be a separate problem. Since the invalid state is so close to ASTERISK-25466 you will probably want to simply comment on that issue and attach debug (assuming you still have the issue after fixing your configuration).

> endpoints created via pjsip_wizard does not have registrations
> --------------------------------------------------------------
>
>                 Key: ASTERISK-25553
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25553
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>            Reporter: Max
>            Assignee: Unassigned
>         Attachments: ast25553
>
>
> I've created trunk and user endpoints in pjsip_wizard.conf as follows:
> {noformat}
> [trunk1]                  
> type = wizard             
> sends_auth = yes          
> sends_registration = yes  
> remote_hosts = tel.t-online.de
> outbound_auth/username = mylogin at t-online.de
> outbound_auth/password = mypassword
> endpoint/context = inco
> aor/max_contacts = 1  
> [fri]
> type = wizard
> accepts_registrations = yes
> sends_registrations = no
> accepts_auth = yes
> sends_auth = no
> endpoint/context = telefon
> endpoint/allow = !all,ulaw,alaw,gsm,g722
> endpoint/direct_media = no
> endpoint/force_rport = yes
> endpoint/disable_direct_media_on_nat = yes
> endpoint/rewrite_contact = yes
> aor/max_contacts = 1
> aor/remove_existing = yes
> inbound_auth/username = fri
> inbound_auth/password = fripassword
> {noformat}
> The endpoints are clearly visible via CLI:
>  Endpoint:  fri                                              Invalid       0 of inf
>      InAuth:  fri-iauth/fri
>         Aor:  fri                                            1
>       Contact:  fri/sip:fri at 1.2.3.4;uniq=5FAFCAFB8  Unknown               nan
>  
>  Endpoint:  trunk1                                               Invalid       0 of inf
>     OutAuth:  trunk1-oauth/mylogin at t-online.de
>         Aor:  trunk1                                             1
>       Contact:  trunk1/sip:tel.t-online.de                       Unknown               nan
>    Identify:  trunk1-identify/trunk1
>         Match: 217.0.23.4/32
> The surprising thing is "Invalid" state though - how can I figure out what's causing it?
> Could it be related to missing registrations?
> pjsip show registrations
> No objects found.
> Also, when I'm trying to place a call via fri endpoint it first sends invite, asterisk expectedly reply with 401 Unauthorized with www-auth digest, fri ACK it and send another invite, this time with digest auth response. So far so good but the reply from asterisk is 501 Not Implemented!
> What is not implemented? What could be causing it? How can I find out?
> Note: I'm using asterisk 13.6.0 on ubuntu.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list