News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

OBi202 + IP Phone, can receive calls, but not make any... Please help

Started by txcdub, August 31, 2019, 04:17:09 PM

Previous topic - Next topic

txcdub

Hello,

I'm struggling and need some help.

I've got an OBI202 and a Cisco SPA303.  I've read many many many posts on this forum including: http://www.obitalk.com/forum/index.php?topic=12492.0 and others... and can't get it working.

After hours and hours, I've pieced together enough to get it half working.

* I can receive calls from my external number to the Cisco SPA303, but unfortunately, I cannot call out from the Cisco.

I have read the notes about "registration being broken" and to make calls without it... and the Cisco has that capability. But I can't get it working.

I've also read the notes about setting the call route to just ring the {ph} and if that isn't working, then it must not be getting to the OBI.

That said, I've setup Syslog to see the errors.  First starting on the Cisco, then moving Syslog to the OBi.

The OBi seems to be hearing the Cisco dial, but failing with a "404 Not Found" error.

Here's my setup

SP2: Google Voice = working for in/out calls from PH1
SP3: CallCentric 911 Service = working for in/out calls from PH1
SP4: reserved for the Cisco SPA303
OBi202 = 10.0.0.250
Cisco SPA303 = 10.0.0.65

I believe that these settings allow me to RECEIVE calls....
Routing any call received on SP2 to the device setup on ITSP Profile D (sp4)
Service Providers -> ITSP Profile D SIP -> ProxyServer       -> 10.0.0.65   # this is the IP address of the Cisco
Service Providers -> ITSP Profile D SIP -> ProxyServerPort    -> 5060         # this is the SIP port the Cisco is set for   
Service Providers -> ITSP Profile D SIP -> X_SpoofCallerID    -> Checked
Voice Services -> SP2 Service -> X_InboundCallRoute       -> sp4(303@10.0.0.65:5060)   # 303 is the AuthUserName on SP4

I believe that these settings allow me to MAKE calls... 
This is where I think things are going wrong.... As outbound calls are failing.
Voice Services -> SP4 Service -> X_ServProvProfile    -> D            # match up SP4 with ITSP Profile D
Voice Services -> SP4 Service -> X_InboundCallRoute   -> {ph}         # any call from the Cisco should just ring the damn phone
Voice Services -> SP4 Service -> X_RegisterEnable      -> Unchecked      # it's not a PBX, no registrations (I think!?)
Voice Services -> SP4 Service -> X_UserAgentPort      -> 5083         # was defaulted from OBiTALK, where the Cisco needs to talk
Voice Services -> SP4 Service -> X_Proxy            -> Unchecked      # Cisco is on the same network, not on the Obi's LAN port
Voice Services -> SP4 Service -> AuthUserName      -> 303
Voice Services -> SP4 Service -> AuthPassword      -> none      # for now
System Status -> SP4 Service Status -> Registration Not Required   

Cisco SPA303 Configuration:  # Factory Reset, with ONLY these changes...
Cisco SPA303 -> Admin -> Advanced -> Ext 1 -> Proxy               -> 10.0.0.250:5083      # IP of Obi202 and the SP4 Service X_UserAgentPort
Cisco SPA303 -> Admin -> Advanced -> Ext 1 -> Register            -> No
Cisco SPA303 -> Admin -> Advanced -> Ext 1 -> Make Call Without Reg    -> Yes
Cisco SPA303 -> Admin -> Advanced -> Ext 1 -> Ans Call Without Reg       -> Yes
Cisco SPA303 -> Admin -> Advanced -> Ext 1 -> User ID      -> 303
Cisco SPA303 -> Admin -> Advanced -> Ext 1 -> Password   -> none
Cisco SPA303 -> Admin -> Advanced -> Ext 1 ->



Again, incoming calls to the Google Voice number setup on SP2 are received on the Cisco.
Outgoing calls from the Cisco to anywhere are met with an immediate fast busy and an "Invalid Number" message on the Cisco.
On the Syslog from the OBi202, I see (in order) ## it's the same with ANY dialed number:
Again, I have the Route set to {ph} for testing...

Syslog Message 0:
RxFrom:a000041:5060

Syslog Message 1:
INVITE sip:15125551212@10.0.0.250:5083 SIP/2.0 Via: SIP/2.0/UDP 10.0.0.65:5060;branch=z9hG4bK-66343598 From: <sip:303@10.0.0.250>;tag=1de9dac7eba7878o0 To: <sip:15125551212@10.0.0.250> Call-ID: 2cd95cbc-12044a8@10.0.0.65 CSeq: 101 INVITE Max-Forwards: 70 Contact: <sip:303@10.0.0.65:5060> Expires: 240 User-Agent: Cisco/SPA303-7.5.7 Content-Length: 387 Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE Supported: replaces Content-Type: application/sdp  v=0 o=- 75701 75701 IN IP4 10.0.0.65 s=- c=IN IP4 10.0.0.65 t=0 0 m=audio 16486 RTP/AVP 0 2 8 9 18 96 97 98 101 a=rtpmap:0 PCMU/8000 a=rtpmap:2 G726-32/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:9 G722/8000 a=rtpmap:18 G729a/8000 a=rtpmap:96 G726-40/8000 a=rtpmap:97 G726-24/8000 a=rtpmap:98 G726-16/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:30 a=sendrecv

Syslog Message 2:
sendto a000041:5060(270)

Syslog Message 3:
SIP/2.0 404 Not Found Call-ID: 2cd95cbc-12044a8@10.0.0.65 CSeq: 101 INVITE Content-Length: 0 From: <sip:303@10.0.0.250>;tag=1de9dac7eba7878o0 To: <sip:15125551212@10.0.0.250> Via: SIP/2.0/UDP 10.0.0.65:5060;branch=z9hG4bK-66343598;received=10.0.0.65;rport=5060 

Syslog Message 4:
RxFrom:a000041:5060

Syslog Message 5:
ACK sip:15125551212@10.0.0.250:5083 SIP/2.0 Via: SIP/2.0/UDP 10.0.0.65:5060;branch=z9hG4bK-66343598 From: <sip:303@10.0.0.250>;tag=1de9dac7eba7878o0 To: <sip:15125551212@10.0.0.250> Call-ID: 2cd95cbc-12044a8@10.0.0.65 CSeq: 101 ACK Max-Forwards: 70 Contact: <sip:303@10.0.0.65:5060> User-Agent: Cisco/SPA303-7.5.7 Content-Length: 0 

======

So, based on the above and all my reading and troubleshooting, I think the call IS getting to the OBi, but the OBi isn't processing it...

What am I doing wrong? 

Thanks!

drgeoff

Voice Services -> SP4 Service -> X_Proxy            -> Unchecked      # Cisco is on the same network, not on the Obi's LAN port

is incorrect.  Should be checked.  That enables SP4 to be the SIP proxy for the IP phone.  Nothing to do with "same network, not on the OBi's LAN port" (page 112 of https://www.obitalk.com/info/documents/admin_guide/OBiDeviceAdminGuide.pdf)

I've attached Obihai's original tutorial.  Yes, later 202 firmwares have had a bug which prevents some phones registering.  Hence the workaround you have seen mentioned.  Don't know if that bug has been fixed.

azrobert is the expert on this OBi plus IP phone stuff.  If he says anything different from me, do what he says.

txcdub

Thanks for your reply.

I unchecked that based on an azrobert post.  I tried it in the past and had no change in the results...

Regardless, I took your advice and tried it again.
I changed  the following:
Voice Services -> SP4 Service -> X_Proxy -> Checked
and added a password on both the Obi and the Cisco

Outbound calls still don't go through, but a different problem:
Cisco states: Unauthorized
and the OBi syslog states... (start from the bottom)

Date   Priority   Host   Message
2019-08-31 19:20:48   Kernel.Debug   10.0.0.250    ACK sip:15125551212@10.0.0.250:5083 SIP/2.0 Via: SIP/2.0/UDP 10.0.0.65:5060;branch=z9hG4bK-aac1001c From: <sip:303@10.0.0.250>;tag=c9a0f850373874d4o0 To: <sip:15125551212@10.0.0.250> Call-ID: fa42b00-7ab761e4@10.0.0.65 CSeq: 103 ACK Max-Forwards: 70 Authorization: Digest username="303",realm="pnn.obihai.com",nonce="5FFB1E22",uri="sip:15125551212@10.0.0.250:5083",algorithm=MD5,response="fe232e79aaf79aa2a0704a54a33a2777",opaque="fa8da1f36ef2f8b6" Contact: <sip:303@10.0.0.65:5060> User-Agent: Cisco/SPA303-7.5.7 Content-Length: 0 

2019-08-31 19:20:44   Kernel.Debug   10.0.0.250    SIP/2.0 401 Unauthorized Call-ID: fa42b00-7ab761e4@10.0.0.65 CSeq: 101 INVITE Content-Length: 0 From: <sip:303@10.0.0.250>;tag=c9a0f850373874d4o0 To: <sip:15125551212@10.0.0.250> Via: SIP/2.0/UDP 10.0.0.65:5060;branch=z9hG4bK-a418e73c;received=10.0.0.65;rport=5060 WWW-Authenticate: Digest algorithm=MD5,nonce="dfed932eD5FF4795",opaque="fa8da1f36ef2f8b6",realm="pnn.obihai.com",nonce="9F523544",response="9F5235449F5235449F5235449F523544" 

2019-08-31 19:20:44   Kernel.Debug   10.0.0.250    sendto a000041:5060(449)

2019-08-31 19:20:44   Kernel.Debug   10.0.0.250    INVITE sip:15125551212@10.0.0.250:5083 SIP/2.0 Via: SIP/2.0/UDP 10.0.0.65:5060;branch=z9hG4bK-a418e73c From: <sip:303@10.0.0.250>;tag=c9a0f850373874d4o0 To: <sip:15125551212@10.0.0.250> Call-ID: fa42b00-7ab761e4@10.0.0.65 CSeq: 101 INVITE Max-Forwards: 70 Contact: <sip:303@10.0.0.65:5060> Expires: 240 User-Agent: Cisco/SPA303-7.5.7 Content-Length: 387 Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE Supported: replaces Content-Type: application/sdp  v=0 o=- 24165 24165 IN IP4 10.0.0.65 s=- c=IN IP4 10.0.0.65 t=0 0 m=audio 16472 RTP/AVP 0 2 8 9 18 96 97 98 101 a=rtpmap:0 PCMU/8000 a=rtpmap:2 G726-32/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:9 G722/8000 a=rtpmap:18 G729a/8000 a=rtpmap:96 G726-40/8000 a=rtpmap:97 G726-24/8000 a=rtpmap:98 G726-16/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:30 a=sendrecv

2019-08-31 19:20:44   Kernel.Debug   10.0.0.250    RxFrom:a000041:5060

azrobert

When the bug was discovered, I switch to unregistered and that works for me. I haven't tried unregistered since, so I don't know if the bug was fixed.  Look at the OBi202 System Status under SP4 Status. If the Cisco is registered, it will show its IP address.

I don't own an OBi202, so I might not be able to help. I noticed the OBi202 and the Cisco are in the same sub-net. I'm assuming the Cisco is connected to your main router and not the OBi202. Are you running the OBi202 in Bridge Mode? If not, try switching from Router to Bridge mode.

txcdub

Thanks so much for chiming in.

I am set for bridge mode.

I've made a couple of changes and now have a different response, but still not working.
Added a password: "5551212" to both Phone and OBi

The Cisco setup is the same.  It allows calling without registration.

When:
X_Proxy is checked
System Status states: "Registration Not Required"
When the Cisco boots and tries to register, syslog from Obi states "Unauthorized"
When the Cisco tries to make a call, syslog from the Obi states "Unauthorized"

When I also set X_RegisterEnable to Checked, System Status changes to "Paused"
When the Cisco boots and tries to register, syslog from Obi states "Unauthorized"
When the Cisco tries to make a call, syslog from the Obi states "Unauthorized"

In either case, no outbound call... only inbound.

I changed the Cisco to require reg for calls, and no change.  Inbound only, no outbound.

I know the phone works because I can register and call with callcentric without any problems.