[asterisk-bugs] [JIRA] (ASTERISK-27357) PJSip endpoints lose AoRs when enabling ODBC

Guilherme Bizzani (JIRA) noreply at issues.asterisk.org
Thu Oct 19 12:21:20 CDT 2017


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

Guilherme Bizzani commented on ASTERISK-27357:
----------------------------------------------

Had to change asterisk's source code, files res/res_pjsip/location.c lines 1145 and 1160 value of "qualify_timeout" was changed to "3" and type to OPT_UINT_T
and file res/res_pjsip.c lines 1154 and 1320 changed "qualify_timeout" default value to "3" 
Also changed "qualify_timeout" column type in table ps_aors in my database to type integer.

With these changes it's working, I don't know if the variable qualify_timeout is working as intended thou, but the endpoint get aors, can be registered and make calls just fine.

> PJSip endpoints lose AoRs when enabling ODBC
> --------------------------------------------
>
>                 Key: ASTERISK-27357
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27357
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip, Resources/res_odbc
>    Affects Versions: 15.0.0
>         Environment: Debian GNU/Linux 8.9 (jessie). Firstly got the error on a Asterisk version 13.11.2.
>            Reporter: Guilherme Bizzani
>
> This issue was basically found by following the tutorial on https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime using PostgreSQL for the database. My first approach to the error was on version 13.11.2 of Asterisk, then I tried with version 15 and get the same error.
> After all the installation, configuration and population, when starting asterisk the "pjsip show endpoints" objects don't contain AoR, and "pjsip show aors" return "No objects found."
> The only error i'm receiving back after these two commands is:
> ERROR 3875: config_options.c:883 aco_set_defaults: Unable to set default for 101, qualify_timeout=3.0
> Note: When I disable "res_odbc.conf" and configure any endpoint statically on "pjsip.conf" it does get the informations, register and make calls.
> More info and config files used can be seen in my thread on Asterisk's forum: https://community.asterisk.org/t/possible-incompatibility-between-odbc-and-pjsip/72340



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



More information about the asterisk-bugs mailing list