Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 4:17 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Otbound Caller ID sent as Account Code
PostPosted: Fri Mar 12, 2010 11:14 pm 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Hi All, ( A2b version 1.62)
Am going to write this as a bug though maybe this is the way it was meant to be,.

If set caller id is set to yes or not and force caller id is not set the caller id is sent as the account code.

For the person offering calling card service as well, the callee just needs to call the access number and enter the caller ID for free credit.

Is this how 1.6.2 should behave on outbound caller id?

Rgds
Eamonn


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Sun Apr 25, 2010 6:09 pm 
Offline

Joined: Tue Jul 11, 2006 4:14 pm
Posts: 21
I am having the same problem too. someone has the same problem also?

cid_sanitize = BOTH
auto_setcallerid = yes

thanks in advance.


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Wed Apr 28, 2010 12:40 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
lethal-gr,

Not found a clue, had to rely on force_caller ID.

And just before you think you are in a blink end just start inter-customer DID's and look at the call report. The phone number is sent as SIP/AccountCode or IAX2/AccountCode.
Am looking into hacking this but at the moment we have been forced to stop all intercustomer DID allocation as this is a great security issue.

Rgds
Eamonn

http://www.eatelco.com


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Wed Apr 28, 2010 10:15 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Properly configured, a SIP/IAX client will send the callerID listed in the VoIP settings, if no callerID is is set here, then it will use whatever is sent by the phone/PBX. In the case of a PBX, try and avoid the Fromuser sip setting, as this sets the caller ID to the accountcode.

In the case of callthrough services, the callerID of the calling party will be sent through the system by default with the default settings.

Joe


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Wed Apr 28, 2010 11:17 am 
Offline

Joined: Tue Jul 11, 2006 4:14 pm
Posts: 21
thanks for your reply

What i need to achive right now it if the user doesn't have a caller ID in voip setting the the caller id want to be set to "UNKNOWN".
is that possble? Because now it delivers the "account code". I need a way t force this because our tests with sip clients like Xlite
shows caller id=account code.

thanks in advance


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Wed Apr 28, 2010 11:20 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Hi Joe,
Thanks for replying
Quote:
Properly configured, a SIP/IAX client will send the callerID listed in the VoIP settings, if no callerID is is set here, then it will use whatever is sent by the phone/PBX. In the case of a PBX, try and avoid the Fromuser sip setting, as this sets the caller ID to the accountcode.

If my memory serves me well in1.3 Version and 1.4 Early version, the caller id was sent as 123456 if no CID is set. Ideally this is what i would wish to happen rather than editing every account settings to add caller id's.

Quote:
In the case of callthrough services, the callerID of the calling party will be sent through the system by default with the default settings
.
Yes but my argument is if you inspect the call history you will see the calledstation for DID_VOIP calls listed as SIP/AccountCode or IAX2. thus if my cusomer number is 12345 then anybody calling 12345 just needs to go to their call history and see 12345 is actually listed as calledstation SIP/12345678090

Rgds
Eamonn

http://www.eatelco.com


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Wed Apr 28, 2010 5:26 pm 
Offline

Joined: Tue Jul 11, 2006 4:14 pm
Posts: 21
Quote:
If my memory serves me well in1.3 Version and 1.4 Early version, the caller id was sent as 123456 if no CID is set. Ideally this is what i would wish to happen rather than editing every account settings to add caller id's.


This is exactly what i need to achieve. If someone doesn't have a caller id SET then a number or something to be set.

i am using latest A2Billing 1.7 with Asterisk 1.6.2.6.

thanks in advance


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Thu Apr 29, 2010 3:59 pm 
Offline

Joined: Tue Jul 11, 2006 4:14 pm
Posts: 21
any one plz? :cry:


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Fri Apr 30, 2010 11:18 am 
Offline

Joined: Tue Jul 11, 2006 4:14 pm
Posts: 21
Problem Fixed guys :mrgreen2:

This will set callerid=UNKNOWN if callerid is set to the accountcode. Otherwise it will pass the regullar callerid that may receive from wholesale trunks.

[a2billing]
exten => _X.,1,Set(CALLERID(num)=${IF($[ ${CALLERID(num)} = ${CDR(accountcode)} ]?UNKNOWN:${CALLERID(num)}) })
exten => _X.,n,DeadAGI(a2billing.php,1)
exten => _X.,n,Hangup

cheers to Areski as always :)
enjoy!


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Thu Sep 02, 2010 5:58 pm 
Offline

Joined: Fri Feb 19, 2010 4:29 pm
Posts: 50
Greetings,

Great to hear that some one has successful in sending the right caller ID.

I am trying to send CallIDnumber as DID number and CallerIDname as name of of the user (can be set in voip callerid setting).

So far I am getting:

CallerIDnumber ///CallerIDname

DID number/DID number
DID number/ANONYMOUS
Accountcode/UserName
Accountcode/AccountCode

You may see what I have tried so far in the following thread:
viewtopic.php?f=34&t=8055

Can someone give me what to set to get calleridname/number properly set for outbound calls?

I am on 1.5 of A2Billing.

Thanks for your support


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Thu Sep 02, 2010 6:30 pm 
Offline

Joined: Fri Feb 19, 2010 4:29 pm
Posts: 50
I have tried as per suggested by Joe (by not setting callerid in A2Billing and setting the device properly), no luck so far.
This is the fifth combination I am getting (which is not desired):

a2billing.php|1: [agi_callerid] => 7741674580
a2billing.php|1: [agi_calleridname] => Anonymous

Notice here, callerid set to the account code.

This works fine if device is connected directly to Asterisk server (and SIP account is in asterisk).

Doesn't work if the account is setup in A2billing.

Any help please?

Thanks for your support


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Fri Sep 03, 2010 12:49 am 
Offline

Joined: Fri Feb 19, 2010 4:29 pm
Posts: 50
Greetings,

After several tries, I started looking into a2billing php code, class.a2billing.php, class.realtime.php etc

All I can see is, from a2billling database callerid and cid_number are fetched.
cid_number though accessed, never used.

Outgoing callerid(name) is solely set on the basis of what callerid field is set in A2billing, cid_number is
never taken into consideration (off course auto_setcallerid decides whether to propagate it or not).

Depending what what auto_setcallerid is set to, the outing name/number couple sometimes looks like:

a2billing.php|1: [agi_callerid] => 6475471151 =============> callerid field set in A2Billing to customer's DID number
a2billing.php|1: [agi_calleridname] => Anonymous

I am unable to figure our how agi_calleridname is set.

If callerid in A2Billing is set to name of the customer (for example, John Smith ====> set of characters, instead of integers) then:

agi_callerid becomes accountcode of the user John Smith
agi_calleridname becomes John Smith.

Can someone help me fix this issue? This is really important for our business, especially business value point of view.

I will appreciate to hear from you folks.

Thanks again for your support


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Sat Sep 04, 2010 4:26 pm 
Offline

Joined: Fri Feb 19, 2010 4:29 pm
Posts: 50
Greetings,

Further look at code revels that the callerid value when user types it into the VOIP settings is defined and updated based on
its definition in file FG_var_friend.inc:

$HD_Form -> AddEditElement (gettext("CALLERID"),
"callerid",
'',
"INPUT",
"size=40 maxlength=60",
"",
gettext("Insert the callerid"),
"" , "", "", "", "", "", "", "" );

It looks like it indeed should take in the format like:

"John Smith"<1234567890>

But when I tried to enter this sting, only the name part went into the database:

| id | id_cc_card | name | accountcode | regexten | amaflags | callgroup | callerid
| 51 | 50 | 7741674580 | 7741674580 | 7741674580 | billing | | \"John Smith\" |

********This is a BUG in A2Billing - Version 1.5.1 (Lignum Vitae) - Released : 19 January 2010***********
********And I want to file a bug for it

Secondly, when the callerid is read from database to further use, the logic/call used to set caller ID after its retrieval
appears to be done by call set_callerid(xxx), see the following calls made at different places:

$agi->set_callerid($this->useralias);
$agi -> set_callerid($this->agiconfig['force_callerid']);
$agi->set_callerid($cid_sanitized);
$agi->set_callerid($res_dtmf ["result"]);
$agi -> set_callerid($outcid);

Now, the function set_callerid itself looks like (in file phpagi.php)

function set_callerid($cid)
{
return $this->evaluate("SET CALLERID $cid");
}

which appears to return whatever is passed to it.

If "John Smith"<1234567890> format is used, to parse it properly, there exist a function called parse_callerid(xx) in file phpagi.php but is never used.

Per http://www.voip-info.org/wiki/view/set+callerid, the current callerid format is doesn't conform to it.

*************I would like to file second BUG to have A2Billing accept "FName LName"<number> format and pass it properly downwords where it can be used
further such as for proper outbound calleridnumber and calleridname setting**************************


A2Billing team, please let me know your take on this.

Thanks for your support


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Sun Sep 05, 2010 11:05 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Can you register to bugtracker, http://www.asterisk2billing.org/cgi-bin ... i/register and create a ticket so this is not forgotten. http://www.asterisk2billing.org/cgi-bin ... /newticket

Joe


Top
 Profile  
 
 Post subject: Re: Otbound Caller ID sent as Account Code
PostPosted: Sun Sep 05, 2010 3:49 pm 
Offline

Joined: Fri Feb 19, 2010 4:29 pm
Posts: 50
Thanks Joe,

Two tickets are created 833 and 834 for these defects. If only one is necessary, please close the one which then would be a duplicate.

Thank again for your support


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 42 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