Mark Hulber
2005-Nov-21 15:50 UTC
[Asterisk-Users] Detect alternate line in Broadvoice inbound context
I have a single Broadvoice account with more than one number. I am trying to distinguish between the numbers on an inbound call. I have already tried using different incoming extensions that match each number but it always defaults to the primary. Someone earlier mentioned SIPGetHeader as a possible solution but I'm not sure how that would work. The only field that might possibly contain the distinctive number that I can tell is "list_route" but I have never used SIPGetHeader and don't know if it even makes sense in this case. Does anyone have a solution for this? I also tried DNID with no luck. MARK.
BJ Weschke
2005-Nov-21 17:57 UTC
[Asterisk-Users] Detect alternate line in Broadvoice inbound context
There was a patch for chan_sip a while back that broke out what context a call rang into based on the distinctive ring information that was sent by the peer. This is what I use to distinguish different dialed numbers from them. On 11/21/05, Mark Hulber <asterisk-admin@hulber.com> wrote:> I have a single Broadvoice account with more than one number. I am > trying to distinguish between the numbers on an inbound call. I have > already tried using different incoming extensions that match each number > but it always defaults to the primary. Someone earlier mentioned > SIPGetHeader as a possible solution but I'm not sure how that would > work. The only field that might possibly contain the distinctive number > that I can tell is "list_route" but I have never used SIPGetHeader and > don't know if it even makes sense in this case. > > Does anyone have a solution for this? I also tried DNID with no luck. > > MARK. > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > 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 >-- Bird's The Word Technologies, Inc. http://www.btwtech.com/
Samy Antoun
2005-Nov-21 18:24 UTC
[Asterisk-Users] Detect alternate line in Broadvoice inbound context
Mark,
1. Make sure that SIPGetHeader application is registered
CLI> show application SIPGetHeader
if it is registered you'll get
-= Info about application 'SIPGetHeader' =-
[Synopsis]
Get a SIP header from an incoming call
[Description]
SIPGetHeader(var=headername):
Sets a channel variable to the content of a SIP header
Skips to priority+101 if header does not exist
Otherwise returns 0
If not,
Your application(s) is (are) not registered
If the application is not registered, I can't recommend anything for
you, I had an Asterisk system with ver 1.0 (no SIPGetHeader) and I
tried to patch it with any of the following with no luck:
http://bugs.digium.com/bug_view_page.php?bug_id=0002838
http://bugs.digium.com/view.php?id=2924
If you have it registered, here is a sample of my setup:
[bvdr]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(10)
exten => s,4,SIPGetHeader(Var_Alert=Alert-Info)
exten => s,5,GotoIf($["${Var_Alert}"
"<http://127.0.0.1/Bellcore-dr3>"]?ext-local,320,1)
exten => s,6,Goto(ext-local,200,1)
This setup for ONE Distinctive Ring only (Bellcore-dr3), if you have
more than one, you can use "sip debug" to retrieve the header
information
The BEST reference for this subject is:
http://voxilla.com/PNphpBB2-viewtopic-t-3935-highlight-dring1.html
Hope this helps
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com