[Spce-user] Prosody not listening the dummy iface

Jon Bonilla (Manwe) manwe at sipdoc.net
Mon Aug 29 10:18:48 EDT 2016


El Mon, 29 Aug 2016 12:51:20 +0200
Alex Lutay <alutay at sipwise.com> escribió:

> Hi Jon,
> 
> Tnx for reporting it here.
> Can you please check your configuration once again, as I can see
> prosody template should properly use sip_int value from network.yml:
> 
> > [% argv.host=hostname; argv.type='sip_int';
> >    PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
> >    sip_proxy_ips = out
> > -%]
> > [% IF !sip_proxy_ips.size -%]
> > [% argv.host=hostname; argv.type='sip_int';
> >    PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
> >    sip_proxy_ips = out;
> > -%]  
> ...
> -- used by [sipwise_]admin_telnet
> console_port = 5582
> console_interface = "[% sip_proxy_ips.0  ? sip_proxy_ips.0 : "127.0.0.1"
> -%]"
> 
> So, maybe sip_proxy_ips is empty for some reason in your case?
> Did you add 'dummy' interface to the list of 'interfaces'?
> Maybe prosody was not restarted by some reason, please check
> console_interface value in generated prosody config?
> ç



Hi Alex. The problem is that the template does not even try to use sip_int
ips in my case. 

This is the listening ips right now:

root at spce:~# netstat -tulnp | grep lua | ...
127.0.0.1:5280
127.0.0.1:5281
10.10.10.170:5222
127.0.0.1:5582
10.10.10.170:5269


This is the configuration file:


-- used by [sipwise_]admin_telnet
console_port = 5582
console_interface = "127.0.0.1"



This is how the template looks like:

-- used by [sipwise_]admin_telnet
console_port = 5582
console_interface = "[% sip_proxy_ips.0  ? sip_proxy_ips.0 : "127.0.0.1" -%]"



The template does not have the sip_int iface discovery, only the external
sip_ext ones:

-- Autogenerated by ngcpcfg
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
[% argv.host=hostname; argv.role='lb';
   PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
   is_lb = out
-%]

[% argv.host=hostname; argv.type='sip_ext';
   PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
   sip_ext_ips = out
-%]



The network.ym file looks ok to me:

hosts:
  self:
    dbnode: '1'
    dummy0:
      ip: 192.168.2.2
      netmask: 255.255.255.0
      type:
        - sip_int
    eth0:
      advertised_ip:
        - 2.3.4.5
      ip: 10.10.10.170
      netmask: 255.255.255.0
      type:
        - web_int
        - web_ext
        - web_int
        - sip_ext
        - rtp_ext
        - ssh_ext
    interfaces:
      - lo
      - eth0
      - dummy0
    lo:
      cluster_sets:
        - default
      ip: 127.0.0.1
      netmask: 255.255.255.0
      shared_ip: []
      shared_v6ip: []
      type:
        - ha_int
        - aux_ext
        - ssh_ext
        - api_int
      v6ip: '::1'
    role:
      - proxy
      - lb
      - mgmt
      - rtp
      - db


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Firma digital OpenPGP
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20160829/19a50520/attachment-0001.sig>


More information about the Spce-user mailing list