Pjsip not receiving calls

Hi everyone, I’m new on pjsip and try to register one provider.

The register is ok and I always can make a call.
When I make a call after that i can receive calls but after a few minutes the incoming call does not even reach the asterisk. If I do another outgoing call, can receive a call again.

any help will be apreciated

;******************* TRONCAL ***********************
[yoigo_registration]
type=registration
transport=transport-udp
outbound_auth=yoigo_auth
server_uri=sip:ims.yoigo.com
client_uri=sip:+34XXXXXXX@ims-yoigo-com
contact_user=+34XXXXXXX
retry_interval=60
outbound_proxy=sip:evimsebcn-yoigo-com;lr ; Sin el proxy no registra
endpoint=yoigo_endpoint
line=yes

[yoigo_auth]
type=auth
auth_type=userpass
password=*********
username=e34XXXXXXXXX

[yoigo_endpoint]
type=endpoint
context=entrantes
disallow=all
allow=alaw
allow=ulaw
outbound_auth=yoigo_auth
aors=yoigo_aor
outbound_proxy=sip:evimsebcn-yoigo-com;lr
from_user=+34XXXXXXXXX
from_domain=ims.yoigo.com

bind_rtp_to_media_address=yes
;rtp_symmetric = yes
;transport=transport-udp
;direct_media=no

[yoigo_aor]
type=aor
contact=sip:ims-yoigo-com:5060

[+34XXXXXXXXX]
type=identify
endpoint=yoigo_endpoint
match=ims.xxxx.com

[entrantes]
exten => _+34*********,1,NoOp(###### LLAMADA ENTRANTE YOIGO ${CALLERID(number)} ######)
same => n,Dial(PJSIP/202,120)
same => n,Hangup()

Are you behind NAT? If so, then the device doing NAT may be terminating the UDP port mapping so incoming traffic is not sent to your Asterisk. You can try setting “qualify_frequency” on the AOR to 60 to have Asterisk send an OPTIONS request every 60 seconds to keep the UDP port mapping active.

It worked …

I setup qualify_frequency=15

many thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.