[Spce-user] New with Sipwise, problem with peering registration.

Daniel Grotti dgrotti at sipwise.com
Thu Jan 12 08:22:48 EST 2017


Have you apply the changes ?
Have you configure the same credentials in the peering's preferences and 
set the flag "peer_auth_register" ?


If it still not register, what do you get back ?
To check that, please do:

# grep "Outbound Register request from b2bua" /var/log/ngcp/kamailio-lb.log

then take the Callid from the param "ID=".
Then grep callid:

# grep "<CALLID>" /var/log/ngcp/kamailio-lb.log


and see what is the response to the REGISTER.



-- 
Daniel Grotti


On 01/12/2017 01:59 PM, Anthony Sanchez wrote:
> [% argv.role='lb'; argv.type='sip_ext'; PROCESS
> '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips'; sip_ext_ips = out -%]
> [% IF !sip_ext_ips.size -%]
> [% argv.role='lb'; argv.type='sip_ext'; PROCESS
> '/usr/lib/ngcp-ngcpcfg/get_all_ips'; sip_ext_ips = out -%]
> [% END -%]
> [% argv.role='lb'; argv.type='sip_int'; PROCESS
> '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips'; sip_lb_ips = out -%]
> [% IF !sip_lb_ips.size -%]
> [% argv.role='lb'; argv.type='sip_int'; PROCESS
> '/usr/lib/ngcp-ngcpcfg/get_all_ips'; sip_lb_ips = out -%]
> [% END -%]
> [% argv.role='lb'; argv.type='sip_ext'; PROCESS
> '/usr/lib/ngcp-ngcpcfg/get_all_adv_ips'; sip_adv_ips = out -%]
> # IMPORTANT:
> # Only set "domain", "user" and "pwd", and leave "proxy" and "contact"
> EXACTLY
> # as is to make outbound registrations to work.
> #
> # Note that the "contact" parameter is specific to the Sipwise SPCE and does
> # not yet exist in the official sems.
>
> domain=172.20.0.9
> user=1010
> pwd=69afe0d0c68958a5a0409cd3fe0e408a
> #proxy=sip:[% sip_lb_ips.0 %]:[% kamailio.lb.port %]
> [% IF sip_adv_ips.size -%]
> #contact=sip:[% sip_adv_ips.0 %]:[% kamailio.lb.port %]
> [% ELSE -%]
> #contact=sip:[% sip_ext_ips.0 %]:[% kamailio.lb.port %]
> [% END -%]
>
> domain1=184.161.139.48
> user1=2210
> pwd1=46e63849ff7c18beca7b3695ac6de785
> #proxy1=sip:[% sip_lb_ips.0 %]:[% kamailio.lb.port %]
> [% IF sip_adv_ips.size -%]
> #contact1=sip:[% sip_adv_ips.0 %]:[% kamailio.lb.port %]
> [% ELSE -%]
> #contact1=sip:[% sip_ext_ips.0 %]:[% kamailio.lb.port %]
> [% END %]
>
> #domain2=<your peer realm>
> #user2=<your peer user>
> #pwd2=<your peer password>
> #proxy2=sip:[% sip_lb_ips.0 %]:[% kamailio.lb.port %]
> [% IF sip_adv_ips.size -%]
> #contact2=sip:[% sip_adv_ips.0 %]:[% kamailio.lb.port %]
> [% ELSE -%]
> #contact2=sip:[% sip_ext_ips.0 %]:[% kamailio.lb.port %]
> [% END %]
>
> # Up to 50 registrations are possible.
>
> Daniel thanks for repply
>
> On Thu, Jan 12, 2017 at 3:35 AM, Daniel Grotti <dgrotti at sipwise.com
> <mailto:dgrotti at sipwise.com>> wrote:
>
>     Please share your configuration in reg_agent.conf
>
>     Daniel
>
>
>     On Jan 12, 2017 1:58 AM, Anthony Sanchez <agswinpr at gmail.com
>     <mailto:agswinpr at gmail.com>> wrote:
>
>         Hi everybody,
>
>
>         I’m new to Sipwise so please excuse me if I’m doing some obvious mistake.
>
>         I’m already playing with Latest Supported Release – mr5.0 build
>         1, in my lab environment.
>
>
>
>         I followed the Documentation, VoIP Service Configuration:
>
>         Network settings, changed some passwords, Created Customer,
>         Subscriber, Domain, Peerings, Peering Groups, and Peering Servers
>
>
>
>         I applied the settings in Peerings, via the Web interface (user,
>         domain, pwd) and manually to the template file.
>         (/etc/ngcp-config/templates/etc/ngcp-sems/etc/reg_agent.conf.tt2)
>
>
>
>         And finalized the setup by running ngcpcfg apply.
>
>
>
>         Peering registration did not establish.
>
>
>
>         I’m having these errors in -cat /var/log/ngcp/sems.log-
>
>
>
>         Jan 11 20:02:31 spce ngcp-sems[9034]: [#7fa09a6db700] [sendto,
>         udp_trsp.cpp:179] ERROR:  sendto(15;xx.xx.xx.xx:5060): Invalid
>         argument
>
>         Jan 11 20:02:31 spce ngcp-sems[9034]: [#7fa09a6db700]
>         [send_request, trans_layer.cpp:1311] ERROR:  Error from
>         transport layer
>
>
>
>         Maybe you can give me a hint what I’m doing wrong.
>
>         How can I fix it?
>
>
>
>         Regards,
>
>         Tony
>
>
>



More information about the Spce-user mailing list