I’m setting up an Obi202 to use with google voice.
Here’s the invite from the obi:
<--- Received SIP request (1077 bytes) from UDP:10.10.11.181:5062 --->
INVITE sip:<mygv number>@10.10.11.180:5060 SIP/2.0
Call-ID: a74b229da0f3f096@10.10.11.181
Content-Length: 267
CSeq: 8003 INVITE
From: <sip:+1<calling number>@10.10.11.180>;tag=SP3f76347e37d776d50
Max-Forwards: 70
To: <sip:<my gv number>@10.10.11.180>
Via: SIP/2.0/UDP 10.10.11.181:5062;branch=z9hG4bK-1fff7d52;rport
Authorization: Digest algorithm=MD5,nc=00000001,qop=auth,cnonce="e9b330ab74be1ddb",nonce="1550095402/a91ccb1d87322dd50a035039fdaac528",opaque="17383dab1ff0ac1c",realm="asterisk",response="b66a3319031fa8e518f1e223516bcf93",uri="sip:<mygv number>@10.10.11.180:5060",username="gv-voice"
User-Agent: OBIHAI/OBi202-3.2.2.5921
Contact: <sip:gv-voice@10.10.11.181:5062>
Expires: 60
Supported: replaces
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,PRACK,REFER,UPDATE
Content-Type: application/sdp
v=0
o=- 210161 1 IN IP4 10.10.11.181
s=-
c=IN IP4 10.10.11.181
t=0 0
m=audio 17002 RTP/AVP 0 101 104 8
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=rtpmap:104 G726-32/8000
a=rtpmap:8 PCMA/8000
a=sendrecv
a=ptime:20
a=xg726bitorder:big-endian
Here’s pjsip:
;; ====== Templates ====
[obi202-endpoint](!)
type = endpoint
dtmf_mode = rfc4733
disallow = all
allow = ulaw
direct_media = no
;direct_media = yes
tos_audio = ef
tos_video = af41
cos_audio = 5
cos_video = 4
[obi202-auth](!)
type = auth
auth_type = userpass
password = <pw>
[obi202-aor](!)
type = aor
max_contacts = 2
; ===== endpoints ========
[gv-voice](obi202-endpoint)
auth = gv-voice
aors = gv-voice
;identify_by=auth_username
identify_by=username
context = gv-voice
[gv-voice](obi202-auth)
username = gv-voice
But I get:
NOTICE[4148]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request 'INVITE' from '<sip:+1<calling number>@10.10.11.180>' failed for '10.10.11.181:5062' (callid: fc53d8259e96576d@10.10.11.181) - No matching endpoint found
I’ve tried identify_by = username
and auth_username
.
Any help appreciated.