[asterisk-bugs] [JIRA] (ASTERISK-21867) IAX Trunk Realtime

Michael L. Young (JIRA) noreply at issues.asterisk.org
Mon Jun 17 11:43:01 CDT 2013


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

Michael L. Young commented on ASTERISK-21867:
---------------------------------------------

Silvio,

I wonder if we have a cache problem.

It is okay for the registration to expire and then re-register.  What we don't want is for the ipaddr to be set to null.

Please try clearing out the cache.

Try the following:  "module unload chan_iax2.so"

Set the ipaddr and port to be empty ("") for napoli in your MySQL iax_trunk table.  

Also, check the cache in the asterisk database to see if there is an entry: "database show".  If there is an entry, remove it "database del IAX/Registry napoli".

Once that is cleared out, "module load chan_iax2.so"

Hopefully that helps to get things going again.  My patch, v2, is supposed to avoid having "(null)" written to the realtime database table.  That is what I am looking for in the logs.  There is only one function in chan_iax2 that does sends updates to the iax_trunk table.  So, I am a bit at a loss to see that with the patch applied asterisk is sending an update to the table setting the ipaddr to (null) which it should not be doing with the v2 patch.
                
> IAX Trunk Realtime
> ------------------
>
>                 Key: ASTERISK-21867
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21867
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/res_config_mysql, Channels/chan_iax2
>    Affects Versions: 1.8.14.1
>            Reporter: Silvio Pianese
>            Assignee: Silvio Pianese
>         Attachments: DebugLog_ServerKo, DebugLog_ServerKo, DebugLog_ServerMaster, DebugLog_ServerMaster, Debug_ServerKo_1, iaxServerKo.conf, IaxServerKo.conf, iaxServerMaster.conf, iaxServerOk.conf, Log_13_06_2013_17_30_Afeter_Patch, Log_17_06_2013_Applied_v2_Patch, MyDebugLog_ServerOk, NewLogDebugServerKo, NewLogDebugServerKo, rt_iax2_peer_update_fix.diff, rt_iax2_peer_update_fix_v2.diff, TableIAX_ServerKo.sql, TableIAX_ServerOK.sql
>
>
> I have three systems connected via trunk in Asterisk iax, the configuration is the same in real time, the first two esegure register on Server A Server B and Server C.
> On Server B, the operation appears to be correct and the command 'iax show peers' me correctly returns the value of the registration of Server A.
> the problem is on Server C, although on Server A properly see through 'iax show registry' recording on Server C, the latter instead of using the command 'iax show peers' does not return a value, in the DB for a second field ipadd is filled with the ip of the Street Name Server A, and also the field regseconds has a value, but soon both fields back to zero.
> the message I get from the console of the Server C, without enable debugging, is as follows:
> WARNING [9572]: chan_iax2.c: 4409 realtime_peer: Failed to parse sockaddr '(null)' for ipaddr of realtime peer 'ipaddr'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list