[Asterisk-Users] Echo on SPA-3000 FXO
BJ Weschke
bweschke at gmail.com
Thu Sep 15 06:52:40 MST 2005
The CID with the Cisco isn't a "Cisco issue". It's actually an issue based
on the way Vonage passes CID through the Cisco. It doesn't follow the same
standard that LECs and others use.
I tried to get this going with an SPA3000 at first as well and never
really could get it to go right without having to really hack-up my
chan_sip.c. In the end I switched out the SPA-3000 for a Digium TDM card
with an FXO module on it and now use the following in the dial plan for when
that fxo port rings:
[fxoports]
exten => s,1,Cut(cidone=CALLERID,<,1)
exten => s,2,Cut(cidtwo=CALLERID,<,2)
exten => s,3,GotoIf($[${LEN(${cidtwo})} > 0]?4:12)
exten => s,4,SetCIDNum(${cidtwo:1:10})
exten => s,5,SetVar(cidone=${cidone:2})
exten => s,6,NoOp(${cidone})
exten => s,7,SetVar(ciolen=${LEN(${cidone})})
exten => s,8,SetVar(ciolen=$[${ciolen} - 2])
exten => s,9,NoOp(${ciolen})
exten => s,10,SetCIDName(${cidone:0:${ciolen}})
exten => s,11,Goto(fxoports,s,14)
exten => s,12,SetCIDNum(${CALLERID})
exten => s,13,SetCIDName(Unavailable)
exten => s,14,NoOp(${CALLERIDNUM})
exten => s,15,NoOp(${CALLERIDNAME})
CVS-HEAD versions of asterisk will complain when you do this because it's
using the deprecated SetCIDNum and SetCIDName functions. In that case you'll
want to replace those with SetVar(CALLERID(name)=value) and
SetVar(CALLERID(number)=value)
instead.
On 9/15/05, asterisk at txpe.net <asterisk at txpe.net> wrote:
>
> I've been using 2 SPA3000's for several months. Both are running
> 3.1.3(GWa) software. I do not have any issues with echo. One box is
> used to bring in a SBC POTS line and the other is connected to my
> Cisco ATA186 from Vonage. The 3000 connected to SBC line relays CID
> info, I have never been able to get CID info passed from the 3000
> connected to the Cisco unit.
>
> Doug
>
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>--
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050915/0fefb481/attachment.htm
More information about the asterisk-users
mailing list