OBiTALK Community

General Support => New to Using the OBi / VoIP => Topic started by: DeanUK on November 07, 2014, 07:09:35 AM

Title: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 07, 2014, 07:09:35 AM
Hi Folks,

I am setting up my new Obi110 with a phone/internet service from TalkTalk in the UK (line port) and a standard PSTN phone which has a caller-id display (phone port).

When I connect the PSTN phone directly to the wall socket (i.e. no Obi110 in the path) the phone displays caller-id correctly - I have the caller-id feature enabled on my phone account.
Using the Obi110, I cannot obtain caller-id on the phone display.

I have spent a long time trying various combinations of parameters in the Obi110 but nothing makes the caller-id appear. I'm using:
Physical Interfaces > PHONE Port > Port Settings > CallerIDMethod = FSK(V.23)
Physical Interfaces > PHONE Port > Port Settings > CallerIDTrigger =After Polarity Reversal
Physical Interfaces > LINE Port > Port Settings > CallerIDDetectMethod = FSK(V.23)
Together with other recommended settings for UK PSTN as per the latest xml file (v2.4 9 Oct 2014) here: https://www.ukvoipforums.com//viewtopic.php?f=25&t=342

Looking at Status->Phone and Line Status
Shows the following for an incoming call from a UK mobile number beginning with 07761 (I have anonymised the last 6 digits with xxxxxx).
Parameter Name   Phone Port Status Line Port Status
   
State             On Hook              On Hook
LoopCurrent   0 mA                   0 mA   
VBAT                   57 V (12.0 V)
TipRingVoltage   49 V                    51 V
LastCallerInfo   '' 07761xxxxxx      '' 07761xxxxxx   
      

Looking at Status->Call History
Shows the same number but without the apostrophe (") followed by a space character ( ).
Call 1   11/07/2014    04:35:54   
Terminal ID   LINE1      PHONE1
Peer Name      
Peer Number   07761xxxxxx   
Direction   Inbound   Inbound
04:35:54   Ringing   
04:36:08   End Call   

What I am thinking is maybe the Obi110 is passing " 07761xxxxxx to the PSTN phone rather than 07761xxxxxx (i.e. without the " followed by space character) and that this is confusing the PSTN phone which might expect to see a number only. Can anyone confirm whether this is the case and if so, what is needed to remove the (" followed by space), perhaps an inbound call route modification, before passing the caller-id to the phone?

Thanks for any thoughts on this.

Dean.
Suffolk, UK.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: azrobert on November 07, 2014, 07:23:33 AM
Try Line inbound route:
{(<" :>xx.):ph}

If it works then use following in case a call doesn't have the quote+space:
{(<" :>xx.):ph},{ph}
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 07, 2014, 07:36:43 AM
azrobert,

Thanks for your suggestion - I just tried it, entered

LINE port->InboundCallRoute-> {(<" :>xx.):ph}

and dialled in using the same 07761xxxxxx mobile number - but the results are the same, still get (" ) under last caller info, maybe this is how it should be, I don't know, but the called-id is still not appearing on the PSTN phone.

Regards,
Dean.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: azrobert on November 07, 2014, 07:57:39 AM
If the phone connected to the OBi110 rang then the prefix was removed. If (<" :>xx.) didn't match the callerid the phone wouldn't ring. Maybe there is another problem.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 07, 2014, 10:13:53 AM
After adding the config:

LINE port->InboundCallRoute-> {(<" :>xx.):ph}

The phone connected to the OBi110 does indeed still ring out.

I can make and receive PSTN calls, and make outgoing calls using a VoIP service provider. The voice quality using VoIP is very good - just this issue with caller-id that's the problem.

I've tried altering the LINE port->RingDelay from 0 to 400 to 4000
and CPCTimeThreshold up from 90 to 500
and LINE port->Ring Detection parameters at both defaults and those in the UK XML file v2.4

One thing i've noticed is that in the Call History log, when I make an outbound call the dialled number appears under both the LINE1 and PHONE1 columns. When I make an inbound call the Peer Number only is shown under LINE1, and the PHONE1 column is blank.

I'm using the correct US/UK converter leads to connect the OBi110 to the BT wall socket and to connect to the UK  PSTN phone, but nothing i've tried so far will lead to caller-id being displayed. The OBi110 hardware version is 3.4 and software version is 1.3.0 build 2824.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: drgeoff on November 08, 2014, 04:00:45 AM
My OBi110 is on a BT PSTN line and Caller ID work perfectly to my phone (Gigaset S445).  Settings are as yours for FSK(V.23) but CallerIDTrigger is "Before first ring".  RingDelay is set to 250 (milliseconds).
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: ianobi on November 08, 2014, 04:11:50 AM
I don't think that you have any problem with your original UK default Line Port settings. Your OBi is correctly decoding the CallerID. This is what is being received on your Line Port:

' followed by another ' followed by a space, followed by CallerID.

Between the first ' and second ' is the place holder for CName. CName is often missing so the first and second ' appear together as there is nothing to put in between.

LastCallerInfo is reporting the whole string - CName space CallerID. In Call History Peer Number is accurately showing CallerID as decoded by the OBi110. If CName was present, then it would appear under Peer Name in Call History.

The question here is why your OBi110 is not forwarding CallerID to the Phone Port in the correct format for your phone. I suggest trying:

Physical Interfaces > PHONE Port > Port Settings > CallerIDMethod = FSK(V.23)
Physical Interfaces > PHONE Port > Port Settings > CallerIDTrigger = Before First Ring

I hope that helps narrow the problem down somewhat.

(Posted before I saw drgeoff's post!)
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 08, 2014, 06:16:46 AM
Drgeoff and Ianobi, I have now tested your suggested settings:

Physical Interfaces > PHONE Port > Port Settings > CallerIDMethod = FSK(V.23)
Physical Interfaces > PHONE Port > Port Settings > CallerIDTrigger = Before First Ring

With ring delay set to 250 ms but unfortunately still no caller-id appearing on the phone.  I've now tested using:

CallerIDTrigger = Before First Ring
CallerIDTrigger = After First Ring (which is the setting used in the UK XML file v2.4)
CallerIDTrigger = After Polarity Reversal (which is a frequently mentioned setting for UK caller-id).

With each of these settings the phone always rings out, but no caller-id shown. I've also found an old BT Caller Display 50 device that I've inserted in series with the phone, and repeated the three trigger types above, but same result – no caller-id on either BT unit or phone. Perhaps I have a fault on the  Obi?

Ianobi – thanks for the explanation about cname, makes sense.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: azrobert on November 08, 2014, 06:58:18 AM
This is the suggestion I gave you:
LINE port->InboundCallRoute-> {(<" :>xx.):ph}

The quote in the rule is a single double quote. ianobi's explanation indicates this should be 2 single quotes, so I don't understand how the phone would ring using the above rule.

Do you configure the OBi110 locally or thru OBiTalk?
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: drgeoff on November 08, 2014, 09:19:26 AM
Quote from: DeanUK on November 07, 2014, 10:13:53 AM
One thing i've noticed is that in the Call History log, when I make an outbound call the dialled number appears under both the LINE1 and PHONE1 columns. When I make an inbound call the Peer Number only is shown under LINE1, and the PHONE1 column is blank.
Those observations are normal.  Nothing amiss.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: ianobi on November 08, 2014, 09:31:46 AM
@ azrobert
QuoteThe quote in the rule is a single double quote. ianobi's explanation indicates this should be 2 single quotes, so I don't understand how the phone would ring using the above rule.

I wondered the same thing, so I did a couple of tests. My landline does not have CallerID enabled, so I modified your rule to:
LINE port->InboundCallRoute-> {(<" :>):ph}
I tried a double inverted comma followed by space and two single inverted commas followed by space. In both cases my phone rang with no problem. I'm guessing that the OBi simply does not recognise or decode the " in a digitmap and ignores the space, so it sees both as nothing on the left of the colon and replaces it with nothing on the right side of the colon.

Further testing shows that this rule:
LINE port->InboundCallRoute-> {<" :>:ph}
Does indeed stop the phone ringing. Now the " is not in a digitmap and the OBi does seem to try to match it as a "literal". I'm guessing the rule for the OP to try would be:
LINE port->InboundCallRoute-> {<" :>(xx.):ph}
Using both a double inverted comma followed by space and then trying two single inverted commas followed by space.

Having said all that, I can't be sure if the " is coming in via the PSTN line or is being added by the OBi to try to clarify what it shows as LastCallerInfo.

It's beer o'clock here, so too late for further research, but looking forward to comments from anyone who has stayed awake this far   :)



Title: Re: UK PSTN caller-id not passed by Obi110
Post by: drgeoff on November 08, 2014, 09:32:48 AM
Quote from: DeanUK on November 08, 2014, 06:16:46 AM
CallerIDTrigger = After First Ring (which is the setting used in the UK XML file v2.4)
That is incorrect.  The UK XML file should be updated to properly reflect SIN227.  (http://www.sinet.bt.com/sinet/SINs/pdf/227v3p6.pdf)

The UK 'full' setting should be 'after polarity reversal and before first ring' but the Obi does not offer that.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: drgeoff on November 08, 2014, 09:46:55 AM
@DeanUK
Try rebooting the phone.  And if DECT, the base-station too.  Ie mains plug out and batteries out.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 08, 2014, 11:19:31 AM
I've done all config up to this point using the Obi110 locally (192.168.1.3), with the settings on Auto Provisioning set to "Disable", even though the device had previously been registed to the ObiTalk portal, though reset to factory defaults many times since then. I have always rebooted the Obi110 after making any changes to parameters. The phone is a very basic POTs/PSTN phone (not DECT) with no power supply, just one lead to the Obi110. The BT Caller display unit which has one lead to the phone and one lead to the Ob110 – no power except batteries.

After my last post I rebooted the Obi110, loaded the UK V2.4 XML file, and then decided to use the ObiTalk portal to configure service for Localphone and for Google Voice, which prompted a firmware upgrade to build 2872. I hoped this  2872 might resolve the issue but still no caller-id.

Now looking at the ObiTalk Obi Expert Config pages, it says Phone port -> CallerIDMethod  FSK(Bell 202), but when I look at settings locally on webpage at 192.168.1.3 it says Phone port -> CallerIDMethod FSK (V.23). Highly confusing – I thought they would at least be in sync. Assuming the local settings are correct, I then tried incoming calls using:

a)   double apostrophe followed by space char
LINE port -> InboundCallRoute-> {<" :>(xx.):ph}    result - no ringing of phone

b)   two single apostrophes followed by space char
LINE port -> InboundCallRoute-> {<'' :>(xx.):ph}    result  - no ringing of phone
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: azrobert on November 08, 2014, 01:47:18 PM
This is the way I got it to work:
{(<[^0-9][^0-9]@:>xx.):ph}

I couldn't get it to match a single quote or a space.
[^0-9] will match anything except a digit.
@ will match anything.

You should use:
{(<[^0-9][^0-9]@:>xx.):ph},{ph}

Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 08, 2014, 02:09:37 PM
I just tried

{(<[^0-9][^0-9]@:>xx.):ph},{ph}

using both After Polarity Reversal and then Before First Ring, but neither of these worked. The phone rang but no caller-id. I plugged phone + BT Caller Display 50 unit directly into wall socket, made an incoming call, and both show caller-id perfectly. I'm beginning to think I will just have to use the Caller Display 50 unit connected directly to a wall doubler socket and abandon the caller display on the phone, but it's not ideal.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: WelshPaul on November 08, 2014, 02:39:46 PM
Have a read here and see if anything in that thread helps: https://www.ukvoipforums.com/viewtopic.php?f=10&t=310

Are you using one of these: http://www.amazon.co.uk/BT431A-RJ11-telecom-test-adaptor/dp/B000Q8L33E/ref=pd_sim_ce_3?ie=UTF8&refRID=1MRBDTPQ40XT7F6FHMDW

Given that absolutely nothing has worked for you so far I would say that your device is possibly faulty.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: ianobi on November 09, 2014, 05:09:47 AM
Dean,

Let's try to use a CallerID that's not originating from the PSTN line.

I see from Reply #4 that you have a voip provider. Is it for outgoing calls only? If not, then try an incoming call and see how CallerID is handled by the Phone Port.

If this is not possible you might try downloading the softphone "PhonerLite" to your pc. It's free and useful for testing. Leave all boxes blank under its "Server" tab. Under the "User" tab enter values for "User name" and "Displayed name". User name is CallerID so use numbers e.g. 12345678910. Displayed name is CName so use something like deanphone.

Make a call from PhonerLite by entering something like this in the "Destination number" box:
1@192.168.1.22:5060
Where "1" can be any digit. 192.168.1.22 is the local ip address of your OBi. 5060 is the UserAgentPort of the spX where you have your existing voip provider.
Hit the green phone icon. This should ring the phone attached to your OBi. Look in the usual places for CallerID: the phone, Call History, LastNumberInfo.

I would start the testing with the following settings:
Physical Interfaces > PHONE Port > Port Settings > CallerIDMethod = FSK(V.23)
Physical Interfaces > PHONE Port > Port Settings > CallerIDTrigger = Before First Ring

The Line Port is not involved in the above tests, so it should eliminate some possibilities.



Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 09, 2014, 10:24:26 AM
Ianobi – thanks for advice on PhonerLite (I can see this being useful for other tests on call forwarding in the future, avoiding the TalkTalk 1571 voicemail which cuts in after about 6 rings).

I initially tried PhonerLite dialling out on port 5060, which matched one of the ports in the SP1 service parameters, but after some confusion with the phone not ringing out I realised that in my config port 5060 is being used for X_KeepAliveServerPort, but the X_UserAgentPort  is 5080. When I altered to call 1@192.168.1.3:5080 the phone rang out!

There is still no caller-id displayed on the phone, the call history lists 07761xxxxxx as before but with this time the peer name reading deanphone. The LastCallerInfo under Phone and Line Port Status shows 'deanphone' 07761xxxxxx. Under Phone port ->Calling Features ->LastCallerNumber it shows **107761xxxxxx, that's because I'm using PSTN as default outbound path presently, so need to dial **1 to go via Localphone. Tried it with Before First Ring and AfterPolarityReversal with same results – no caller-id. After reading another post about it working on one socket and not another, I removed a 5 metre extension cable which looked a bit thin and used a shorter, thicker cable instead – same result.

As for as I know my Localphone account should be able to receive incoming calls, but when I tested this out using free accounts from sipgate.co.uk and callcentric.com, for some reason the Sip calls were not getting through, either to my PSTN phone off the Obi, or to a softphone registered with Localphone. This is strange as test calls I made back in May from Sipgate to Localphone (and Localphone to Sipgate) using softphones were working then.

WelshPaul – the two cables that I bought off Amazon to get the Obi110 to work in the UK are:

1)   4 wire BT plug to RJ45 crossover telephone cable 3m http://www.amazon.co.uk/gp/product/B00J9VXDX2?psc=1&redirect=true&ref_=oh_aui_detailpage_o09_s00

2)   RJ11 to BTS adapter http://www.amazon.co.uk/gp/product/B000Q4X9PS?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00 (I went for this one as it has a ringing capacitor – no problems there, maybe I should have bought one with a caller-id capacitor in as well ! :) But seriously I would buy a different adapter if that would fix it.

I also bought the Obi110 off Amazon: http://www.amazon.co.uk/gp/product/B004XJCBGU?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00

Did you see the earlier comment (Reply#11) about the XML file should be updated...I would also add that it would be useful to change:

Physical Interfaces->Line Port->PSTN Disconnect Detection->DetectFarEndLongSilence
to unticked.

I found this out when several calls were mysteriously cut off in the middle of a conversation...
It's very useful to have the UK XML file, would be good if Obihai could somehow combine this with the ObiTalk network based provisioning system. E.g. select
A. region (UK)
B. VoIP provider
– then all set up correctly!

Thanks for all the support on this forum, you are really helping.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: WelshPaul on November 09, 2014, 10:40:09 AM
Quote from: DeanUK on November 09, 2014, 10:24:26 AMDid you see the earlier comment (Reply#11) about the XML file should be updated...
I did see the earlier post and will look into this, sadly 'before first ring' isn't available in the OBi as pointed out so nothing I can do about that for now. Will drop Mark an email tomorrow about this.

Quote from: DeanUK on November 09, 2014, 10:24:26 AMIt's very useful to have the UK XML file, would be good if Obihai could somehow combine this with the ObiTalk network based provisioning system. E.g. select
A. region (UK)
B. VoIP provider
– then all set up correctly!
As for the OBiTALK portal supporting UK settings... This was the plan however I am not sure where OBIHAI are with this to date.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: ianobi on November 10, 2014, 01:44:34 AM
The PhonerLite tests eliminate all of the possible complications that decoding the CallerID from a PSTN line involves.

From your test results it seems to me that CallerID and CName are being correctly decoded by the OBi from the Line Port and via a SIP call. It also seems to be the case that the information is being passed to the Phone Port (see LastCallerInfo). This leaves two possibilities:

1. There is some strange incompatibility between the OBi110 Phone Port and both devices you have tried for receiving CallerID.

2. The OBi110 Phone Port is actually faulty in respect of passing CallerID.

I think it may be time to open a support ticket with Obihai. It would be helpful to refer them to this thread so they can see what tests you have carried out.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 10, 2014, 05:48:27 AM
I have opened up a support ticket via the Obihai website and quoted this thread. I'll keep you updated with any new info. Thanks.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: MarkObihai on November 10, 2014, 09:03:58 AM
Hi Dean, can you ensure that the inbound call route from the line port is definitely set to {ph}?

From what you've said, the OBi is getting the caller ID and it's getting lost between the Line port and the Phone port - the only thing I can deduce as causing that is the inbound call route.

First, go to OBi Expert and change LINE port -> InboundCallRoute to say {ph} - wait for the OBi to reboot and do a quick test to see if it passes caller ID.  

If this doesn't work, go to the device local UI via it's IP address and go to the same location locally and change again the InboundCallRoute to {ph}

Let me know how this goes.  Next step after this would be to factory reset and see if caller ID works out of the box with no changes.

- Mark.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: drgeoff on November 10, 2014, 11:26:30 AM
Quote from: WelshPaul on November 09, 2014, 10:40:09 AM.. sadly 'before first ring' isn't available in the OBi...
'Before first ring' is available as is 'After polarity reversal'.  It is the combination of the two which is not.  However 'Before first ring' is sufficient for my phone.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: WelshPaul on November 10, 2014, 12:06:28 PM
Quote from: drgeoff on November 10, 2014, 11:26:30 AM
Quote from: WelshPaul on November 09, 2014, 10:40:09 AM.. sadly 'before first ring' isn't available in the OBi...
'Before first ring' is available as is 'After polarity reversal'.  It is the combination of the two which is not.  However 'Before first ring' is sufficient for my phone.

Yea sorry I forgot to copy and paste the 'and After polarity reversal' part too. Sadly my iPad is a total pile of poop since the release of ios 8. I totally loose the will to live with it now!

Setting the CallerIDTrigger to 'before first ring' results in caller display not working at all for me using these BT 4500 DECT phones connected to my OBi202: http://www.amazon.co.uk/gp/product/B00DBWUC9I/ref=pd_lpo_sbs_dp_ss_1?pf_rd_p=479289247&pf_rd_s=lpo-top-stripe&pf_rd_t=201&pf_rd_i=B002TLST2E&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_r=0QAC0JAS7BHVZ7WB2ESJ

Setting CallerIDTrigger to 'After Polarity Reversal' results in the caller display working correctly and it is displayed before the first ring.

Setting CallerIDTrigger to 'After First Ring' also results in the caller display working correctly.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: DeanUK on November 10, 2014, 01:59:34 PM
Hi Mark,

The inbound call route from the line port has always been {ph}, except during some of the other tests described earlier in this thread when I tried to remove the " character, however I now understand the PhonerLite test narrows it down to an Obi/phone issue.  I'm using local Obi110 config on it's IP address of 192.168.1.3. I have factory reset several times both from the web admin page and using a paperclip in the hole underneath the box. Now I'm using the BT Display 50 in between the wall socket on the Obi110 and can see the caller-id displayed on that unit, while the phone ("BT Your Phone") connected to the other side of the Obi does not display it.
Title: Re: UK PSTN caller-id not passed by Obi110
Post by: WelshPaul on November 11, 2014, 01:21:43 AM
Well that's odd... thought I would test out the CallerIDTrigger again this morning but now when choosing either After Polarity Reversal or Before First Ring caller ID does not work at all.

It now only works when I select After First Ring.

I think the best thing is to leave it at it's factory defaults and only adjust them if you encounter issues.