Re: [Asterisk-Users] Detect alternate line in Broadvoice inbound context

2005-11-23 Thread Mark Hulber
Just as a followup, you need to be a bit careful and test this out if you make any changes to your Broadvoice account. I added a second virtual number and they switched the number that was previously specifying a distinctive ring of Bellcore-dr3 to Bellcore-dr4. The last number added now

[Asterisk-Users] Detect alternate line in Broadvoice inbound context

2005-11-21 Thread Mark Hulber
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

Re: [Asterisk-Users] Detect alternate line in Broadvoice inbound context

2005-11-21 Thread BJ Weschke
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 [EMAIL PROTECTED] wrote: I have a single

Re: [Asterisk-Users] Detect alternate line in Broadvoice inbound context

2005-11-21 Thread Samy Antoun
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

Re: [Asterisk-Users] Detect alternate line in Broadvoice inbound context

2005-11-21 Thread Mark Hulber
Ok, your solution does work but in looking at my console output I saw that SIPGetHeader was deprecated for the new dialplan function SIP_HEADER. Below is my modification. You don't need a priority+101. exten = 212999,1,Set(Var_Alert=${SIP_HEADER(Alert-Info)}) exten =