keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

NO ANSWER for every outgoing call with G400P, in CDR

13 years 10 months ago #5709 by vmiro
After few months of using G400P I realized I have serious problem with CDR.
When I originate call from SIP client I get something like this:
-- Executing [2040@callmanager:2] Dial("SIP/callman01-09119910", "Zap/g1/2040|60") in new stack
-- Called g1/2040

after call has been established and answered there is no information that the call is answered, so in CDR I get "NO ANSWER" for this call.
Actually the line in CLI: g1/2040 answered SIP/callman01-09119910 is missing !

I'm using CDR for billing purposes, so this gives me a lot of troubles, because no calls are billed. This relates only for outgoing calls!
Currently I'm using a temporary solution by placing Answer() in front of a Dial function. But, even if call is not answered, the call is billed :(

Anyone have similiar problems? Solutions?

Thanks
mIRO
13 years 10 months ago #5710 by james.zhu
hello:
i think it is bug with cdr, this link might help you:
https://issues.asterisk.org/view.php?id=16520

13 years 10 months ago #5729 by vmiro
I think CDR is not a problem, something else is wrong that yields this problem with CDR.
I'm using Asterisk (G400P) which is connected with Cisco Call Manager via SIP trunk. Incoming calls are ok, but the problem are outgoing calls. Asterisk don't know that the outgoing call is established, so CCM hangs up the call after 2:47 (ccm has timeout, probably, if call is not answered).

For the testing purposes I tried using SIP phone instead of CCM.
Here is my configuration:

sip.conf
[miro]
type=friend
secret=********
qualify=yes
nat=no
host=dynamic
dtmfmode=info
disallow=all
allow=gsm
allow=alaw
canreinvite=no
context=sip

zapata.conf
[channels]
txgain = 0.0
rxgain = 0.0
signalling = gsm
context = from-gsm
echocancel=no
relaxdtmf=yes

; slot= A
group=1
channel => 1

; slot=B
group=1
channel => 3


extensions.ael
context from-gsm
{
s => {
Dial(SIP/miro);
Hangup();
}
}

context sip
{
_X. => { Dial(Zap/1/${EXTEN}); Hangup(); }
}

INCOMING CALL:
localhost*CLI>
-- Ring on channel 825833264 (from 123456 to )
-- Executing [s@from-gsm:1] Dial("Zap/1-1", "SIP/miro") in new stack
-- Called miro
-- SIP/miro-085e4e20 is ringing - phone is ringing
-- SIP/miro-085e4e20 answered Zap/1-1 - call answered, offhook
== Spawn extension (from-gsm, s, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1' - call ended
-- GSM Span 1 registered to network!

Here we got incoming call on Zap/1 which is bridged with SIP/miro. After few rings I picked up a phone, and Asterisk sends info in CLI that the call is answered, which causes an entry in CDR that the call is ANSWERED, and billsec starts counting...

OUTGOING CALL:
localhost*CLI>
-- Executing [237@sip:1] Dial("SIP/miro-085e86b8", "Zap/1/237") in new stack
-- Called 1/237
-- Hungup 'Zap/1-1'
== Spawn extension (sip, 237, 1) exited non-zero on 'SIP/miro-085e86b8'
-- GSM Span 1 registered to network!

Here I got no confirmation that the call is answered, only Called 1/237 line, OK, I don't need it in CLI. CDR will mark this call as NO ANSWER, even if the call duration is 3:23 (using Grandstream witch has no timer which will hang up!). If I try with X-lite, the call is broken after 20-30 seconds, all I got on softphone display is "Calling 237"...

This is more than just a CDR bug...obviously there is something wrong with "bristuffed asterisk" or zaptel drivers. I monitored the CLI when using B400P (mISDN), A1200P (Zaptel) cards on my other * and there is indication that a call (incoming or outgoing) has been "Answered..."


I can provide SSH connection to this Asterisk box...if needed ;)

Thanks
mIRO
13 years 10 months ago #5732 by james.zhu
hi:
Please give us your ssh and we will able to check that. by the way,
how do you set cdr.conf?

13 years 10 months ago #5736 by vmiro
SSH sent...

I didn't change anything in cdr.conf, everything is default.
13 years 10 months ago #5749 by xin.liu
Hi:
From the report file, I find that there is "Answered" item. Please double check it.
=============================================
"","50","125","sip","""Miroslav Vukovic"" <50>","SIP/miro-09680dc8","Zap/1-1","Hangup","","2010-06-07 14:23:50",,"2010-06-07 14:24:00",10,0,"NO ANSWER","DOCUMENTATION","asterisk-1275920630.0",""
"","50","125","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 19:59:28",,"2010-06-07 19:59:38",10,0,"NO ANSWER","DOCUMENTATION","asterisk-1275940768.0",""
"","237","s","from-gsm","237","Zap/1-1","SIP/miro-085e4e20","Dial","SIP/miro","2010-06-07 20:11:55","2010-06-07 20:12:18","2010-06-07 20:13:15",80,57,"ANSWERED","DOCUMENTATION","asterisk-1275941515.2",""
"","50","237","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 20:24:00",,"2010-06-07 20:30:45",405,0,"NO ANSWER","DOCUMENTATION","asterisk-1275942240.4",""
"","50","237","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e86b8","Zap/1-1","Dial","Zap/1/237","2010-06-07 20:30:49",,"2010-06-07 20:37:03",374,0,"NO ANSWER","DOCUMENTATION","asterisk-1275942649.6",""
"","055224040","s","from-gsm","05xxxxxxx","Zap/1-1","SIP/miro-085e4e20","Dial","SIP/miro","2010-06-07 20:47:51","2010-06-07 20:48:02","2010-06-07 20:48:11",20,9,"ANSWERED","DOCUMENTATION","asterisk-1275943671.8",""
"","50","125","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e4e20","Zap/1-1","Hangup","","2010-06-07 20:57:33",,"2010-06-07 20:57:42",9,0,"NO ANSWER","DOCUMENTATION","asterisk-1275944253.10",""
"","50","1185","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 21:01:09",,"2010-06-07 21:01:19",10,0,"NO ANSWER","DOCUMENTATION","asterisk-1275944469.12",""
=============================================

Time to create page: 0.040 seconds
Powered by Kunena Forum