News:

The OBiTALK service has reached it's End of Life period and will be decommissioned as of October 31st, 2024. More information can be found at this link https://support.hp.com/us-en/document/ish_10969583-11049883-16

Main Menu

OBI110 - Asterisk, Hangup on Answer, re-ring as Unknown CID.

Started by timpea, March 20, 2013, 10:06:52 AM

Previous topic - Next topic

timpea

Hi,

I hope someone can help, as I can't get to the bottom of this.   I am in the UK and have an OBI110 to connect the landline into the Asterisk setup we have, SIP calls from sipgate.co.uk we don't have any problems with, but maybe 1 in 5 calls from the landline when you pickup the phone it doesn't answer and the phone rings again as an unknown caller id call, when you answer it the 2nd time the call connects. The other 4/5 times it works as expected.

Looking at the OBI110 call logs it shows the calls like this:
Call 11   03/20/2013    10:17:27   

QuoteTerminal ID   LINE1   SP1
Peer Name      
Peer Number      01246123456
Direction   Inbound   Outbound
10:17:27   Ringing   
10:17:31      Call Connected
10:23:33      End Call
Call 12   03/20/2013    10:17:21   

Terminal ID   LINE1   SP1
Peer Name      
Peer Number   01333-123456   01246123456
Direction   Inbound   Outbound
10:17:21   Ringing   
10:17:26      Call Connected
10:17:26   End Call
(I have changed the numbers, our landline number is the 01246123456, and the person calling is 01333-123456)

So you can see the call first ring at 10:17:21, then I have picked up the phone at 10:17:26, the call has not gone through to the phone, and it rings again straight away, I have then answered it again at 10:17:31, then finished the call at 10:23:33

Looking at the Asterisk logs, everything is the same as a call that answers the first time until these lines:

Quote
[2013-03-20 09:17:23] VERBOSE[27821] app_dial.c: -- SIP/10-000018f3 is ringing
[2013-03-20 09:17:27] VERBOSE[27821] app_dial.c: -- SIP/10-000018f3 answered SIP/OBITRUNK1-000018f2
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-auto-blkvm:1] Set("SIP/10-000018f3", "__MACRO_RESULT=") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-auto-blkvm:2] Macro("SIP/10-000018f3", "blkvm-clr,") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-blkvm-clr:1] Set("SIP/10-000018f3", "SHARED(BLKVM,SIP/OBITRUNK1-000018f2)=") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-blkvm-clr:2] Set("SIP/10-000018f3", "GOSUB_RETVAL=") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/10-000018f3", "") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-auto-blkvm:3] ExecIf("SIP/10-000018f3", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=10)") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-auto-blkvm:4] ExecIf("SIP/10-000018f3", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=Office)") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [h@macro-dial:1] Macro("SIP/OBITRUNK1-000018f2", "hangupcall") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/OBITRUNK1-000018f2", "1?theend") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Goto (macro-hangupcall,s,3)
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-hangupcall:3] ExecIf("SIP/OBITRUNK1-000018f2", "0?Set(CDR(recordingfile)=)") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("SIP/OBITRUNK1-000018f2", "") in new stack
[2013-03-20 09:17:27] VERBOSE[27821] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/OBITRUNK1-000018f2' in macro 'hangupcall'
[2013-03-20 09:17:27] VERBOSE[27821] features.c: == Spawn extension (macro-dial, h, 1) exited non-zero on 'SIP/OBITRUNK1-000018f2'
[2013-03-20 09:17:27] VERBOSE[27821] app_macro.c: == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/OBITRUNK1-000018f2' in macro 'dial'
[2013-03-20 09:17:27] VERBOSE[27821] pbx.c: == Spawn extension (ext-group, 600, 11) exited non-zero on 'SIP/OBITRUNK1-000018f2'
[2013-03-20 09:17:28] VERBOSE[1791] netsock2.c: == Using SIP RTP TOS bits 184
[2013-03-20 09:17:28] VERBOSE[1791] netsock2.c: == Using SIP RTP CoS mark 5

This is the same as a normal phone call where I have hung up, except the time when the hangup command comes at the same second as answering the call, then the last 2 lines above are where it goes into the same sequence of a new call coming in, except this time with no caller id.

If anyone could guide me in a direction to try and sort this, its not a major problem, just a bit annoying.  I really can't work out if it is the obi110, the asterisk setup or the phones we have got that are causing it.

Cheers,
Tim

Adamzsite

Hi

Did you find a fix for this problem, I am also having the same issues.

Hope you can help.

timpea

Hi Adam,

Not yet, and I don't have a clue what it could be. 

Considering getting one of these and removing the OBi110 from my setup: http://www.sangoma.com/products/usbfxo/

I'm new to all of this though, so if you have any ideas?

Cheers,
Tim

Adamzsite

Hi Tim

I'm new to he world of Asterisk / FreePBX and Obi110, I have worked mostly on Mitel system and Cisco phone system,

Im hoping it's a setting in the obi110 box, I setup a voip account online, And I havn't had the problem on that line, so im not sure if its freepbx yet.

Before you jump of the ship wait until i have got a answer from support, Im putting together information for them, fingers crossed a firmware will fix it.

But if anyone has the same problem or can fix it please let us know.
Adam

ianobi

I wonder if the OBi110 is receiving a false PSTN disconnection signal. Under the heading PSTN Disconnect Detection there are various options. One possibility is that the OBi110 receives some noise / tones on connection that it sees as a disconnect tone. You could try unchecking DetectDisconnectTone.

I have no idea why this should be a random problem, but as you point out there is quite a mix of equipment involved in this one!


Adamzsite

I'll give this a try
I'll let you know if its any better,


QBZappy

timpea,

A lot of people with similar setups here. You should consider asking for help on this site as well:

PBX in a Flash Forum
http://pbxinaflash.com/community/index.php
Owner of the 1st OBi110/100 units in service in Canada & South America. 1st OBi202 on my street. 1st OBi1032 in Montreal.