Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Apr 28, 2024 8:53 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: PREPAID-NO-CARD-ENTERED
PostPosted: Thu Aug 16, 2007 10:02 pm 
Offline
User avatar

Joined: Sat Apr 07, 2007 5:01 pm
Posts: 48
After a new A2B 1.3 install on TB 2.2 I am experiencing some problem of A2B not "hearing" the pin entered on my SNOM 300.

I am showing here part of my verbose log:

Code:
Aug 16 22:55:58 VERBOSE[3692] logger.c: a2billing.php|1: RESULT : 0
Aug 16 22:55:58 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1798 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
Aug 16 22:55:58 DEBUG[3692] channel.c: Scheduling timer at 160 sample intervals
Aug 16 22:55:58 VERBOSE[3692] logger.c: -- Playing 'prepaid-enter-pin-number' (language 'en')
Aug 16 22:56:01 DEBUG[3692] channel.c: Scheduling timer at 0 sample intervals
Aug 16 22:56:05 DEBUG[2804] acl.c: ##### Testing 10.250.5.199 with 192.168.1.0
Aug 16 22:56:05 DEBUG[2804] chan_sip.c: Target address 10.250.5.199 is not local, substituting externip
Aug 16 22:56:07 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1800 - RES DTMF :
Aug 16 22:56:07 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1804 - CARDNUMBER ::>
Aug 16 22:56:07 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1808 - PREPAID-NO-CARD-ENTERED
Aug 16 22:56:09 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1790 - PREPAID-NO-CARD-ENTERED
Aug 16 22:56:09 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1798 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
Aug 16 22:56:09 DEBUG[3692] channel.c: Scheduling timer at 160 sample intervals
Aug 16 22:56:09 VERBOSE[3692] logger.c: -- Playing 'prepaid-enter-pin-number' (language 'en')
Aug 16 22:56:11 DEBUG[3692] channel.c: Scheduling timer at 0 sample intervals
Aug 16 22:56:11 DEBUG[3692] channel.c: Scheduling timer at 0 sample intervals
Aug 16 22:56:17 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1800 - RES DTMF :
Aug 16 22:56:17 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1804 - CARDNUMBER ::>
Aug 16 22:56:17 VERBOSE[3692] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1808 - PREPAID-NO-CARD-ENTERED
Aug 16 22:56:17 DEBUG[3692] channel.c: Scheduling timer at 160 sample intervals
Aug 16 22:56:18 WARNING[2804] chan_sip.c: Maximum retries exceeded on transmission 3c29bcc0e30d-1fbjb2tdomef@snom300-00041325CC35 for seqno 2 (Critical Response)
Aug 16 22:56:18 WARNING[2804] chan_sip.c: Hanging up call 3c29bcc0e30d-1fbjb2tdomef@snom300-00041325CC35 - no reply to our critical packet.
Aug 16 22:56:18 DEBUG[3692] channel.c: Scheduling timer at 0 sample intervals
Aug 16 22:56:18 VERBOSE[3692] logger.c: == Spawn extension (from-internal, 33451709, 1) exited non-zero on 'SIP/909-b7a15438'
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Executing Macro("SIP/909-b7a15438", "hangupcall") in new stack
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Executing ResetCDR("SIP/909-b7a15438", "w") in new stack
Aug 16 22:56:18 DEBUG[3692] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Aug 16 22:56:18 DEBUG[3692] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2007-08-16 22:55:58','\"device\" <909>','909','33451709','from-internal', 'SIP/909-b7a15438','','ResetCDR','w',20,20,'ANSWERED',3,'','1187297758.4')
Aug 16 22:56:18 DEBUG[3692] app_macro.c: Executed application: ResetCDR
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Executing NoCDR("SIP/909-b7a15438", "") in new stack
Aug 16 22:56:18 NOTICE[3692] cdr.c: CDR on channel 'SIP/909-b7a15438' not posted
Aug 16 22:56:18 NOTICE[3692] cdr.c: CDR on channel 'SIP/909-b7a15438' lacks end
Aug 16 22:56:18 DEBUG[3692] app_macro.c: Executed application: NoCDR
Aug 16 22:56:18 DEBUG[3692] pbx.c: Expression result is '1'
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Executing GotoIf("SIP/909-b7a15438", "1?skiprg") in new stack
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Goto (macro-hangupcall,s,6)
Aug 16 22:56:18 DEBUG[3692] app_macro.c: Executed application: GotoIf
Aug 16 22:56:18 DEBUG[3692] pbx.c: Expression result is '1'
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Executing GotoIf("SIP/909-b7a15438", "1?theend") in new stack
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Goto (macro-hangupcall,s,9)
Aug 16 22:56:18 DEBUG[3692] app_macro.c: Executed application: GotoIf
Aug 16 22:56:18 VERBOSE[3692] logger.c: -- Executing Wait("SIP/909-b7a15438", "5") in new stack
Aug 16 22:56:18 VERBOSE[3692] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/909-b7a15438' in macro 'hangupcall'
Aug 16 22:56:18 VERBOSE[3692] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/909-b7a15438'


How does TB receive and process the DTMF for the pin?

I have followed the wiki write-ups for the 1.3 install and this should be working. (I tested before the A2B install to call out and it worked well - so it's not an issue with the phone.)

Any fast hint would be helpfull!

rgds, devplan :idea:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 12:52 am 
Offline

Joined: Wed Jul 25, 2007 4:42 am
Posts: 21
I suggest to check the DTMF setting.

Try RFC2283


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 4:42 pm 
Offline
User avatar

Joined: Sat Apr 07, 2007 5:01 pm
Posts: 48
Hi Howard

Quote:
Try RFC2283


Isn't it supposed to say RFC2833?

I use Try RFC2833.

Any other ideas?

rgds, devplan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 6:38 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
ask your carrier what DTMF they are using?

try the other two modes "inband", "INFO"

dtmfmode=inband OR INFO

to help you see what is going on set it to authenticate on the callerid this way it will ask you for number to call and when you enter it you will see the number that the system actually recieve. it will be the number tath it tries to dial. you will be able to see if all the numbers are duplicated or if it is just a random number that is causing the problem.

if you are running asterisk 1.4 and it is the every digit duplicated case you can try

relaxdtmf=yes


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 10:14 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Quote:
Aug 16 22:56:05 DEBUG[2804] chan_sip.c: Target address 10.250.5.199 is not local, substituting externip

I think you need to tell Asterisk in sip.conf about each of your local subnets. I'm not sure it will fix this issue, but it sure won't hurt.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 1:47 am 
Offline
User avatar

Joined: Sat Apr 07, 2007 5:01 pm
Posts: 48
Hi gue

Thanks for your data.
I finally found out that my peculiar problem came from an incorrect firewall/shorewall configuration:

I have a Dell PE1750 with two NIC.
Eth0 was connected to my DSL router.
On eth1 (with a different subnet) I connected my SNOM300

... and then the trouble started ...

When I then connected and configured another SNOM 300 (via a switch) at the eth0 side of my PE1750, I got everything to work.

My initial objective was to use TB "built-in" shorewall module to firewall my TB, but somewhere along my configs I must have missed something.

Do you (or someone else) have a working TB - A2B - shorewall setup, with the voip phones on the subnet side and could give me some re-assurance?

rgds, devplan :roll:


to stavros ... Just saw your post before my reply.

It could be perhaps as simple as you point out.
How do I specify this? In the "bindaddr" or else?

rgds, devplan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 12:31 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
It's just below bindaddr in the config:
Quote:
;localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks
;localnet=10.0.0.0/255.0.0.0 ; Also RFC1918
;localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation
;localnet=169.254.0.0/255.255.0.0 ;Zero conf local network


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 7:43 pm 
Offline
User avatar

Joined: Sat Apr 07, 2007 5:01 pm
Posts: 48
Thank you stavros - that worked. :)

... Just 2 more issues to fix:

1. When I start shorewall (in webmin) I have no sound at my SNOM 300 after I pickup the phone (and also no sound at the other phone). Only when I stop shorewall.
2. When I start shorewall, I can't log into TB nor A2B UI. (Can't even ping the TB server.) I can only log into webmin.

My shorewall configs are:

Quote:
zones:
#ZONE TYPE OPTIONS IN OUT
# OPTIONS OPTIONS
fw firewall
net ipv4
loc ipv4


Quote:
interfaces:
net eth0 detect routefilter,tcpflags,logmartians,nosmurfs
loc eth1 detect dhcp,tcpflags,nosmurfs,detectnets


Quote:
policies:
loc $FW ACCEPT
$FW net REJECT info
$FW loc REJECT info
net $FW DROP info
net loc DROP info
net all DROP info
all all REJECT info


Quote:
rules:
SSH/ACCEPT net $FW
DNS/ACCEPT $FW net
SSH/ACCEPT loc $FW
Ping/ACCEPT loc $FW
ACCEPT $FW loc icmp
ACCEPT $FW net icmp
ACCEPT net $FW udp 2054,4569,5060,10000:20000
ACCEPT net $FW tcp 2054,4569,5060,10000:20000


Quote:
masq:
#INTERFACE SUBNET
eth0 eth1


Quote:
routestopped:
#INTERFACE HOST(S) OPTIONS
eth0 192.168.1.0/24
eth1 -


Any glaring outpoint? :?

rgds, devplan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 8:27 pm 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
hey guys, i just remind what this forum is not for Linux Support, and this is not Firewall/Unix Problems forum too. here people talking about A2B billing ONLY.
google will help you and thousands of forums for linux/unix on net.
thanks for understanding that.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 8:40 pm 
Offline
User avatar

Joined: Sat Apr 07, 2007 5:01 pm
Posts: 48
Hi anest

This IS a A2B related issue and I did my google home work and the data might help others too and you aren't the moderator, are you?

:evil:

rgds. devplan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 9:20 pm 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
devplan, if you dont stop - this place will be trash very soon. because many noobs after you will do this too..... and why you need "kick ass" from moderators only? i live here too, so give respect to every buddy please (stop thinking about your self only!).
im sure areski willing say same, but he is not moderator too, so you will not listen him too? ;) (its just example of your stupid logic)
so, why you think you so special what you must to have exception? if you do that - i want it do it too! and belive me - i will do it A LOT! as result - here will be information about ALL "a2b related" in 90% and only 10% about a2b billing. do you really want continue? think twice before answer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group