I have been trying to make Broadvoice match incoming Caller ID and do specific things based on the number received, but due to Broadvoice requiring the "s" to start off an incoming extension, I cannot get this to work. Has anyone been able to do this? Here are some examples of my setup: from sip.conf: context=broadvoice-incoming from extensions.conf [broadvoice-incoming] exten => s/760899XXXX,1,AGI(db.agi) exten => s/760899XXXX,2,Answer exten => s/760899XXXX,3,Goto(menu,s,1) exten => s,1,Answer exten => s,2,Goto(differentmenu,s,1) I want calls from one NPA-NXX-XXXX to go to one menu and all other calls to another. It has never worked for me though. Any ideas? Thanks!
You could try somthing like this in extensions.conf:
[broadvoice-incoming]
exten => s,1,AGI(db.agi)
exten => s,2,Answer
; handle case of no CallerID
exten => s,3,gotoif($["${CALLERIDNUM}" =
""]?broadvoice-nocallerid|s|1)
; special handling for specific NPANXX
exten => s,4,gotoif($["${CALLERIDNUM:0:6}" =
"760899"]?differentmenu|s|1)
; handle all other calls
exten => s,5,Goto(menu,s,1)
[broadvoice-nocallerid]
; add specific handling for calls with no CallerID
regards,
Derek
----- Original Message -----
From: "Nate Kapi" <natekapi@gmail.com>
To: <asterisk-users@lists.digium.com>
Sent: Tuesday, July 19, 2005 3:40 AM
Subject: [Asterisk-Users] CID Matches On Incoming BroadVoice???
I have been trying to make Broadvoice match incoming Caller ID and do
specific things based on the number received, but due to Broadvoice
requiring the "s" to start off an incoming extension, I cannot get
this to work. Has anyone been able to do this? Here are some examples
of my setup:
from sip.conf:
context=broadvoice-incoming
from extensions.conf
[broadvoice-incoming]
exten => s/760899XXXX,1,AGI(db.agi)
exten => s/760899XXXX,2,Answer
exten => s/760899XXXX,3,Goto(menu,s,1)
exten => s,1,Answer
exten => s,2,Goto(differentmenu,s,1)
I want calls from one NPA-NXX-XXXX to go to one menu and all other
calls to another. It has never worked for me though.
Any ideas? Thanks!
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@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
On Tue, 2005-07-19 at 05:40 -0400, Nate Kapi wrote: [snip]> [broadvoice-incoming] > exten => s/760899XXXX,1,AGI(db.agi) > exten => s/760899XXXX,2,Answer > exten => s/760899XXXX,3,Goto(menu,s,1)exten => s/_760899XXXX,1,AGI(db.agi) ^^^ exten => s/_760899XXXX,2,Answer ^^^ exten => s/_760899XXXX,3,Goto(menu,s,1) ^^^ Regards, Patrick
The way I fixed this with another provider that had similar behavior
was to patch chan_sip.c so that it pulled out the DNIS value from the
to: tag in the SIP header and then threw that it into the DNID channel
variable. Then, I took the common extension ('s' in your case) and did
a Goto with the value now in DNID to get to the appropriate place in
the dial plan based on the number dialed.
On 7/19/05, Nate Kapi <natekapi@gmail.com> wrote:> I have been trying to make Broadvoice match incoming Caller ID and do
> specific things based on the number received, but due to Broadvoice
> requiring the "s" to start off an incoming extension, I cannot
get
> this to work. Has anyone been able to do this? Here are some examples
> of my setup:
>
> from sip.conf:
> context=broadvoice-incoming
>
> from extensions.conf
> [broadvoice-incoming]
> exten => s/760899XXXX,1,AGI(db.agi)
> exten => s/760899XXXX,2,Answer
> exten => s/760899XXXX,3,Goto(menu,s,1)
>
> exten => s,1,Answer
> exten => s,2,Goto(differentmenu,s,1)
>
> I want calls from one NPA-NXX-XXXX to go to one menu and all other
> calls to another. It has never worked for me though.
>
> Any ideas? Thanks!
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@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
>