Re: [Asterisk-Users] Detect alternate line in Broadvoice inbound context
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 specifies Bellcore-dr3. Sending the number would be so much more reliable... MARK. Mark Hulber wrote: 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 = 212999,n,GotoIf($[${Var_Alert} = http://127.0.0.1/Bellcore-dr3]?x-916999,1:x-212999,1) In this case, the 212 number is the primary number. Thanks, MARK. Samy Antoun wrote: 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 ___ --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 ___ --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
[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. ___ --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
Re: [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 [EMAIL PROTECTED] 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/ ___ --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
Re: [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 ___ --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
Re: [Asterisk-Users] Detect alternate line in Broadvoice inbound context
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 = 212999,n,GotoIf($[${Var_Alert} = http://127.0.0.1/Bellcore-dr3]?x-916999,1:x-212999,1) In this case, the 212 number is the primary number. Thanks, MARK. Samy Antoun wrote: 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 ___ --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