Invalid card number lenght defined in configuration

Hello guys, I’m new member in this community. I m facing one difficult issue which is related to AGI and a2billing. I’m using centos 7 OS, asterisk 11 and A2Billing v2.2. Below error returned when i was trying to listen sound files using php file. Why this error occured to me. Please help me :slight_smile: .

<SIP/SYSMASTER_SMGW1-00000015>AGI Rx << Invalid card number lenght defined in configuration.
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> 510 Invalid or unknown command

Also you can see my full log of my failed action from below. I have enabled agi debug in asterisk console.

localhost*CLI>
== Using SIP RTP CoS mark 5
– Executing [1600@callingcard:1] Answer(“SIP/SYSMASTER_SMGW1-00000015”, “”) in new stack
> 0x7f12b8012750 – Probation passed - setting RTP source address to 192.168.1.10:30646
– Executing [1600@callingcard:2] Wait(“SIP/SYSMASTER_SMGW1-00000015”, “1”) in new stack
– Executing [1600@callingcard:3] AGI(“SIP/SYSMASTER_SMGW1-00000015”, “callingcard.php,1”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/callingcard.php
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_request: callingcard.php
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_channel: SIP/SYSMASTER_SMGW1-00000015
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_language: mn
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_type: SIP
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_uniqueid: 1476161072.21
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_version: 11.23.1
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_callerid: 76777999
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_calleridname: 76777999
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_callingpres: 0
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_callingani2: 0
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_callington: 0
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_callingtns: 0
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_dnid: 1600
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_rdnis: unknown
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_context: callingcard
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_extension: 1600
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_priority: 3
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_enhanced: 0.0
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_accountcode:
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_threadid: 139717242906368
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> agi_arg_1: 1
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >>
<SIP/SYSMASTER_SMGW1-00000015>AGI Rx << Invalid card number lenght defined in configuration.
<SIP/SYSMASTER_SMGW1-00000015>AGI Tx >> 510 Invalid or unknown command
– <SIP/SYSMASTER_SMGW1-00000015>AGI Script callingcard.php completed, returning 0
– Executing [1600@callingcard:4] Wait(“SIP/SYSMASTER_SMGW1-00000015”, “2”) in new stack
– Executing [1600@callingcard:5] Hangup(“SIP/SYSMASTER_SMGW1-00000015”, “”) in new stack
== Spawn extension (callingcard, 1600, 5) exited non-zero on ‘SIP/SYSMASTER_SMGW1-00000015’
– Executing [h@callingcard:1] Hangup(“SIP/SYSMASTER_SMGW1-00000015”, “”) in new stack
== Spawn extension (callingcard, h, 1) exited non-zero on ‘SIP/SYSMASTER_SMGW1-00000015’

Did that callingcard.php file come from the A2Billing package? If so, that’d be a great question to ask http://www.asterisk2billing.org I don’t think most Asterisk users are familiar with it.

2 Likes

Thank you for your replying. Callingcard.php was originated from A2Billing package. But it is not same as a2billing.conf. You may know that a2billing.php is default file from A2Billing package.

Have you been in any experience with a2billing?

This is a forum to discuss Core Asterisk related issues. You’ll have better chances of getting answer if you post this question to a2billing forum as @malcolmd suggested .

–Satish Barot