Hello, I am using chan_sip in asterisk 16.30. I have a problem with a GPON trunk from carrier Yoigo (Spain). I configured two trunks (inbound, outbound) following some instructions I found on Internet. I can currently make calls but I can’t receive them due to some strange error:
Call from ‘yoigoinbound’ (184.108.40.206:5060) to extension ‘+34XYZXYZXYZ’ rejected because extension not found in context ‘line’.
And then Asterisk sends a 404 to the carriers sip server (220.127.116.11). I have this dialplan which should catch such calls and forward them to SIP/222:
[line] exten => s,1,Dial(SIP/222) same => n,Hangup(16)
This is the SIP.conf (relevant parts):
register => + 34XYZXYZXYZ@ims.yoigo.com:password:e 34XYZXYZXYZ@imsebcn.yoigo.com> [yoigoutbound] type=peer qualify=no timeout=3600 registertimeout=3600 sendrpid=yes defaultuser=+34XYZXYZXYZ fromuser=+34XYZXYZXYZ auth=+34XYZXYZXYZ@ims.yoigo.com fromdomain=ims.yoigo.com outboundproxy=imsebcn.yoigo.com outboundproxyport=5060 host=ims.yoigo.com port=5060 callerid=+34XYZXYZXYZ ; opcional secret=password nat=force_rport,comedia insecure=invite,port dtmfmode=rfc2833 disallow=all directmedia=no context=line allow=alaw,gsm [yoigoinbound] context=line type=peer trustrpid=yes ;trust remote party ID timeout=3600 sendrpid=yes ; send remote party SIP header secret=password registertimeout=3600 qualify=yes ; CAMBIADO port=5060 nat=force_rport,comedia keepalive=30 insecure=invite,port host=imsebcn.yoigo.com dtmfmode=rfc2833 directmedia=no allow=!all,alaw,gsm
I even tried creating a extension [+34XYZXYZXYZ] in context “line”, but the error persists. Asterisk gets the SIP INVITE and then it doesn’t know what to do with it.
Thank you very much.