[Spce-user] SIP trunk which requires registration

Mykola Zaika mzaika at voiptime.net
Thu Mar 12 09:33:25 EDT 2015


Hello,
A SIP trunk which requires registration.
In Asterisk I have the configuration in sip.conf
This example work under Asterisk.

[32external]

type=peer

defaultuser=552701249

fromdomain=

secret=mysecretpassword

host=5.5.5.5

insecure=invite

disallow=all

dtmfmode=rfc2833

qualify=yes

nat=no

canreinvite=no

context=CCS_Incoming

allow=ulaw

allow=alaw

register=>552701249:mysecretpassword:552701249 at 5.5.5.5:5060/552701249~3600


In SIP Proviser CE 3.7.1 I have created:

peering server: GW_Test, IP = 5.5.5.5, peer_auth_user = 552701249,
peer_auth_pass = mysecretpassword, peer_auth_realm = 5.5.5.5,
peer_auth_register = 1


According to the handbook I've also modified
/etc/ngcp-config/templates/etc/sems/etc/reg_agent.conf.tt2
and run ngcpcfg apply.

domain=5.5.5.5
user=552701249
pwd=mysecretpassword
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 -%]



When i run a command: ngrep-sip 5.5.5.5
I see only such packets. I can`t see any REGISTER packets wich go via
external WAN interface. I can't make outgoing calls my provider return 500
code.

U 2015/03/11 21:45:34.751478 127.0.0.1:5080 -> 127.0.0.1:5060
REGISTER sip:5.5.5.5 SIP/2.0'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKiXaqjaZw;rport'
From: <sip:552701249 at 5.5.5.5>;tag=12C078F4-55009B4100040785-A2673700'
To: <sip:552701249 at 5.5.5.5>'
CSeq: 50 REGISTER'
Call-ID: 54620F86-55009B41000407AF-A2774700'
Route: <sip:127.0.0.1:5060;lr>'
Max-Forwards: 70'
Expires: 3600'
User-Agent: Sipwise NGCP Application Server 3.X'
Contact: <sip:10.200.10.15:5060;transport=udp>'
Content-Length: 0'

What am I doing wrong?

# Up to 50 registrations are possible.  - Is this limit of peer registry?

-- 
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net
www.voiptime.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150312/45d73459/attachment.html>


More information about the Spce-user mailing list