# Pjsip not receiving calls

**URL:** <https://community.asterisk.org/t/pjsip-not-receiving-calls/96882>\
**Category:** Asterisk SIP\
**Created:** [May 12, 2023, 6:46am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882 "2023-05-12T06:46:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![netpana](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@netpana](https://community.asterisk.org/u/netpana)\
**Post date:** [May 12, 2023, 6:46am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882/1 "2023-05-12T06:46:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![netpana](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@netpana](https://community.asterisk.org/u/netpana)\
**Post date:** [May 12, 2023, 6:51am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882/2 "2023-05-12T06:51:38Z")

</div>

;\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 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](http://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](http://match=ims.xxxx.com)

---

<div class="post-metadata">

**Author:** ![netpana](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@netpana](https://community.asterisk.org/u/netpana)\
**Post date:** [May 12, 2023, 6:53am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882/3 "2023-05-12T06:53:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [May 12, 2023, 10:23am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882/4 "2023-05-12T10:23:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![netpana](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@netpana](https://community.asterisk.org/u/netpana)\
**Post date:** [May 12, 2023, 11:32am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882/5 "2023-05-12T11:32:34Z")

</div>

It worked …

I setup qualify\_frequency=15

many thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [June 11, 2023, 11:33am UTC](https://community.asterisk.org/t/pjsip-not-receiving-calls/96882/6 "2023-06-11T11:33:17Z")

</div>

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