Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 10:49 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: callerid not configurable -> use calleridname instead
PostPosted: Sat Mar 26, 2011 8:30 pm 
Offline

Joined: Sun Mar 20, 2011 2:09 pm
Posts: 27
The problem I was facing: I wanted to allow softphone users (X-Lite) to set their outgoing callerid directly in the softphone. X-Lite has configurable fields "username" (the a2billing card ID) and "display name" (does nothing in Asterisk/a2billing).

"username" is interpretated as callerid(num) in Asterisk.
"display name" is interpretated as callerid(name) in Asterisk.

If we change "username" in X-Lite the user cannot log in anymore and no longer place calls, since this is his a2billing card ID. So, a workaround is to set "display name" (callerid)name to callerid(num). The following does exactly that if the callerid is identical to the a2billing card ID:

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

The cool thing is that this will only set "display name" as outgoing callerID if the callerID is identical to the users card ID, and not always. This way he can still properly set the outgoing callerID in other softphones or other calling devices that don't have this limitation like X-Lite.

Credits go to lethal-gr in this thread ( viewtopic.php?p=31254 ) who came up with the idea.

Would be great if that could make it into a configurable option (use callerid(name) instead of callerid(num) if callerid(num) empty / identical to card ID / always etc.) in some next release.

Thanks! :)


Top
 Profile  
 
 Post subject: Re: callerid not configurable -> use calleridname instead
PostPosted: Fri Aug 30, 2013 3:10 pm 
Offline

Joined: Mon Dec 03, 2012 7:20 pm
Posts: 2
Hello,

Great post. How can this be tweeked to work for DID Inbound which is forwarding an IAX2 PEER who is registerd to Asterisk? I need both CID NAME and CID NUM to pass as I am in Canada and we are allowed to send both and don't have a CNAM system here.

Thanks,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group