This is TikiWiki v1.9.7 -Sirius- © 2002–2005 by the Tiki community. Thu 09 of Sep, 2010 [13:42 UTC]
  add
Menu [hide]

which number was called

Flipside to having many numbers, is not knowing which number was called...
backlinks print
similar comment
This is an interesting side-effect... having many numbers results in a situation, where you don't know which number was called, if you combine all incoming numbers together.

I have Broadvoice service, and generally I'm quite pleased with their performance.

I have three phone numbers; one called primary (408 area code), and two others called Alternate (530 and 773 area codes).

I wanted to know which number one was called...

The answer lies in the Alert-info, here is the snippet of Asterisk Dialplan code I use to find out the number called.

exten => 408992xxx,n,Set(DN=${SIP_HEADER(Alert-Info)})
; 408
; 530; Alert-Info: <http://127.0.0.1/Bellcore-dr4>
; 773; Alert-Info: <http://127.0.0.1/Bellcore-dr3>
exten => 408992xxxx,n,Set(ac773=${IF($["${DN}" = "<http://127.0.0.1/Bellcore-dr3>"]?"TRUE":"FALSE")})
exten => 408992xxxx,n,Set(ac530=${IF($["${DN}" = "<http://127.0.0.1/Bellcore-dr4>"]?"TRUE":"FALSE")})
exten => 408992xxxx,n,NoOp(Lake Tahoe = ${ac530}, Chicago = ${ac773})


Created by: TaneliOtala last modification: Saturday 26 of August, 2006 [00:19:29 UTC] by TaneliOtala