• Der Fragesteller hat diesen Beitrag als gelöst markiert.
  • Geschlossen

SIP Credentials and asterisk (chan_sip)

SbS
Level 1
Level 1
1 von 2

Hi, 

I'm using the SIP credentials of an inOne with an old FreePBX running asterisk 11, and I'm able to do both inbound and outbound calls.
But after a little more than 60 seconds after the registration from a "sip reload" the line stops working in both directions and if I try to place a call I get:

[2019-06-07 10:33:06] WARNING[10210][C-00000529]: chan_sip.c:23019 handle_response_invite: Received response: "Forbidden" from '<sip:+4191922XXXX@swisscom.ch>;tag=as6cd12bc5'

that's the error I'm getting until the next register refresh from asterisk and after that the line works for 60 seconds and we start again with the problem.

Asterisk is automatically refreshing after about 3 minutes because fs1.ims.swisscom.ch has a minimum expiry time of 179 seconds.

 

Anyone is having the same issue? and/or has managed to solve the problem?

Anyone is not having any issue with asterisk? and if yes with which version?

Thanks 

Giuseppe

 

PS: That's my config for the trunk:

OUTGOING:
user=+41919XXXXX
type=peer
srvlookup=yes
secret=XXXXXXXXXXX
outboundproxy=fs1.ims.swisscom.ch
nat=yes
insecure=invite, port
host=swisscom.ch
fromuser=+41919XXXXX
fromdomain=swisscom.ch
dtmfmode=auto
disallow=all
defaultuser=NC00000XXXXXX@swisscom.ch
canreinvite=no
allow=alaw & ulaw & g729 & gsm & slinear & ulaw

INCOMING:
type=peer
host=fs1.ims.swisscom.ch
fromdomain=swisscom.ch
disallow=all
allow=alaw & ulaw & g729 & gsm & slinear & ulaw

REGISTER STRING:
+41919XXXXX@swisscom.ch:XXXXXXXX:NC00000XXXXXX@fs1.ims.swisscom.ch/+419192XXXXX

 

HILFREICHSTE ANTWORT1

Akzeptierte Lösungen
Tux0ne
Level 9
2 von 2

It seems your UDP timeout on the router is too short. It must be at least 180s.

Jeder ist beim Provider den er verdient
Jeder ist beim Provider den er verdient
1 Kommentar 1
Tux0ne
Level 9
2 von 2

It seems your UDP timeout on the router is too short. It must be at least 180s.

Jeder ist beim Provider den er verdient
Jeder ist beim Provider den er verdient
Nach oben