There is a general misconception that IP addresses were allocated per audio source ID. For example:
Audio Source | Codec | Increment Multicast on IP Address | Increment Multicast on Port Number |
Destination IP Address | Destination Port | Destination IP Address | Destination Port |
1 | G.711 mu-law | 239.1.1.1 | 16384 | 239.1.1.1 | 16384 |
1 | G.711 a-law | 239.1.1.2 | 16384 | 239.1.1.1 | 16386 |
1 | G.729 | 239.1.1.3 | 16384 | 239.1.1.1 | 16388 |
1 | Wideband | 239.1.1.4 | 16384 | 239.1.1.1 | 16390 |
2 | G.711 mu-law | 239.1.1.5 | 16384 | 239.1.1.1 | 16392 |
2 | G.711 a-law | 239.1.1.6 | 16384 | 239.1.1.1 | 16394 |
2 | G.729 | 239.1.1.7 | 16384 | 239.1.1.1 | 16396 |
2 | Wideband | 239.1.1.8 | 16384 | 239.1.1.1 | 16398 |
However, the fact is, IP address allocated based on the order the audio source was configured. For example, if you configure audio source 2 before audio source 1, the table would be like this:
Audio Source | Codec | Increment Multicast on IP Address | Increment Multicast on Port Number |
Destination IP Address | Destination Port | Destination IP Address | Destination Port |
1 | G.711 mu-law | 239.1.1.5 | 16384 | 239.1.1.1 | 16392 |
1 | G.711 a-law | 239.1.1.6 | 16384 | 239.1.1.1 | 16394 |
1 | G.729 | 239.1.1.7 | 16384 | 239.1.1.1 | 16396 |
1 | Wideband | 239.1.1.8 | 16384 | 239.1.1.1 | 16398 |
2 | G.711 mu-law | 239.1.1.1 | 16384 | 239.1.1.1 | 16384 |
2 | G.711 a-law | 239.1.1.2 | 16384 | 239.1.1.1 | 16386 |
2 | G.729 | 239.1.1.3 | 16384 | 239.1.1.1 | 16388 |
2 | Wideband | 239.1.1.4 | 16384 | 239.1.1.1 | 16390 |
You may use SQL command to check this in DB:
admin:run sql select mohaudiosourceid, multicastaddress, multicastport from mohservermulticastinfo where mohaudiosourceid='4'
mohaudiosourceid multicastaddress multicastport
================ ================ =============
4 239.1.1.1 16384
4 239.1.1.2 16384
4 239.1.1.3 16384
4 239.1.1.4 16384
If you wish to get a list of all MOH audio sources with multicast IP address, port, and codec you can use this query.
run sql select m.mohaudiosourceid,m.multicastaddress,m.multicastport,c.name from mohservermulticastinfo as m,typemohcodec as c where m.tkmohcodec = c.enum
mohaudiosourceid multicastaddress multicastport name
================ ================ ============= ========
1 239.1.1.25 16384 711 ulaw
1 239.1.1.25 16386 711 alaw
1 239.1.1.25 16388 729
1 239.1.1.25 16390 wideband