Hello people of Asterisk,
I set up a new Asterisk box with Asterisk 13.14.0 (self-compiled) on Debian jessie. This is my first installation using PJSIP.
I am migrating from another system which runs Asterisk 11.
I built the config files by first using the chan_sip->pjsip converter script and cross checking the manual and hints which can be found in the Asterisk wiki.
Inbound calls work fine, but - according to the logs - the INVITE my Asterisk sends to the provider (Deutsche Telekom) is directly answered with an 403 FORBIDDEN.
I further looked into the logs and found out the following:
The registration is done against 184.108.40.206 successfully, but when I try to initiate an outbound call, 220.127.116.11 is consulted.
Any hints? My Asterisk runs mostly with default config files resp. no config files for unneeded modules.
I also did an upgrade to Asterisk 13.15.0, which did not change anything.
This is my pjsip.conf
[transport-udp] type = transport protocol = udp bind = 0.0.0.0
This is my pjsip_wizard.conf:
[telekom-template](!) type = wizard transport = transport-udp endpoint/allow=!all,g722,ulaw,alaw,g729,gsm endpoint/context=ankommend sends_auth = yes sends_registrations = yes remote_hosts = tel.t-online.de endpoint/from_domain=tel.t-online.de ;aor/qualify_frequency = 15 aor/default_expiration=585 registration/retry_interval = 60 registration/server_uri=sip:tel.t-online.de endpoint/dtmf_mode=rfc4733 max_retries=0 endpoint/direct_media=no outbound_auth/realm=tel.t-online.de ;NAT-Kram: endpoint/force_rport=yes endpoint/rewrite_contact=yes endpoint/rtp_symmetric=yes [ko123456789](telekom-template) outbound_auth/username = 040123456789 outbound_auth/password = supergeheim registration/contact_user=ko123456789 endpoint/from_user=040123456789 aor/contact = sip:email@example.com:5060 endpoint/callerid=040123456789
If I use the sip.conf from my old system and run the Asterisk with chan_sip instead of pjsip, everything works fine instantly. So apparently the Asterisk core and the underlying system seem to be OK and the problem seems to be within PJSIP.