[Home]

Summary:ASTERISK-22930: IAX constantly changing default port 4569
Reporter:Antonio Castaneda (tonycolin7)Labels:
Date Opened:2013-12-01 04:36:56.000-0600Date Closed:2013-12-01 07:14:00.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:PBX/General
Versions:1.8.23.1 1.8.24.0 Frequency of
Occurrence
Related
Issues:
Environment:Debian 6, wanpipe 7.0.5, libpri 1.4.14, asterisk 1.8.24.0, dahdi 2.7.0 .-----> PBX box 1 Debian 6, wanpipe 7.0.5, libpri 1.4.14, asterisk 1.8.23.1, dahdi 2.7.0 .-----> PBX box 2Attachments:
Description:Hello everyone,

I am running asterisk with the version / OS described above. When I have dynamic hosts in my IAX trunk definitions. I get the error bellow this paragraph. It keeps changing the default port constantly. When port is 4569 (default) I can make calls between asterisk boxes, but when switched to 1024, calls fail and circuit is busy. I have temporary solved the issue by keeping static routes to my boxes.

My bindport in both iax.conf is bound to 4569.

 -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3239
   -- Registered IAX2 'iaxlazaro' (AUTHENTICATED) at X.X.X.98:1024
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3210
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3250
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3243
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3246
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3212
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3215
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3113
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3234
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3230
   -- Registered IAX2 'iaxlazaro' (AUTHENTICATED) at X.X.X.98:4569
   -- Saved useragent "Aastra 480i/1.4.3.1001 Brcm Callctrl/1.5.1.0 MxSF/v3.2.8.45" for peer 3237
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3252
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3251
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3221
   -- Registered IAX2 'iaxbrownsville' (AUTHENTICATED) at X.X.X.18:4569
   -- Registered IAX2 'iaxbrownsville' (AUTHENTICATED) at X.X.X.18:1024
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3257
   -- Saved useragent "Aastra 9480i/3.2.2.2088" for peer 3254
   -- Saved useragent "Aastra 9480i/3.2.2.2088" for peer 3256
   -- Saved useragent "Aastra 9480i/3.2.2.2112" for peer 3225

As additional information. I provide asterisk verbose messages and some debug I did on both:

Problem, just a few lines: http://pastebin.com/FsrsHDpg
IAX Peer one: http://pastebin.com/7EBfKcxr
IAX Peer two: http://pastebin.com/ccYhvVpf

Hope this can be enough,

I would highly appreciate your help and advice about this.

Thank you in advance.
Comments:By: Joshua C. Colp (jcolp) 2013-12-01 07:14:01.019-0600

This is not a bug with Asterisk. The chan_iax2 channel driver uses the source IP address and port of the received packet. If this is displaying as 1024 then something outside of Asterisk is changing it (be it a NAT device or something else).

By: Antonio Castaneda (tonycolin7) 2013-12-02 00:13:31.681-0600

Glad to read your reply Joshua. There must be something wrong in the middle. Thank you!!