Алло, кто звонит или определение номера в Asterisk

Алло, кто звонит или определение номера в Asterisk

Учитывая специфику телефонных сетей на территории России, проблемы с определением номера при настройке аналоговых линий ГТС на Asterisk возникают довольно часто. Разнообразие ГАТС и качество телефонных линий смонтированных еще во времена СССР всегда преподносят проблемы для интеграторов IP АТС.

К нам обратился клиент, которому была установлена IP АТС Asterisk, и он успешно ей пользовался. Через некоторое время появилась возможность подключить определитель номера, т. к. городские линии перевели на цифровую ГАТС с поддержкой CallerID, до этого линии были подключены к аналоговой ГАТС (да, аналоговые АТС еще живы).

Для начала рассмотрим небольшую теоретическую информацию, какие стандарты определения телефонного номера бывают.

Теория определения номера

АОН (также называют Русский АОН) — работа советских аналоговых ГАТС, был распространен в начале 90-х, но все еще встречается. Информация о номере вызывающего абонента передаётся в виде кода, носящего название "Безынтервальный Пакет". Не является услугой, как таковой, т. к. не предназначался для абонентов. Телефонный номер передается в виде 7 цифр. Телефонный аппарат, поддерживающий АОН при входящем звонке «снимает трубку» и считывает служебные сигналы телефонной станции, при этом для вызывающего абонента имитируется вызывной сигнал. На Asterisk данный вид определителя номера заставить заработать не удастся.

CallerID (он же Евро АОН) — услуга предоставляемая на цифровых ГАТС. Метод для отправки запроса и получения Caller ID информации в интервале между звонками. То есть, в отличии от АОН здесь не происходит «снятия трубки». В CallerID распространено несколько стандартов:
Bellcore стандарт используется в США, Канаде, Австралии, Китае, Гонконге, Сингапуре, Италии и некоторыми телефонными компаниями Великобритании.
DTMF стандарт: цифры номера передаются таким же способом, как и тональный набор номера — короткими двухчастотными посылками.
FSK стандарт: Поток данных передаётся частотной модуляцией перед первым или перед вторым звонком на линии. Как показал опыт, большинство цифровых ГАТС Ростелекома работают по этому стандарту.

Практика, или почему ничего не работает

Для определения номера в каналах DAHDI в большинстве случаев достаточно добавления следующих строчек в chan_dahdi.conf:

chan_dahdi.conf

usecallerid=yes ; включаем CallerID

callerid=asreceived ; передаем callerid в неизменном виде

Если определение номера не заработало, рекомендую для начала подключить обычный телефонный аппарат с поддержкой CallerID и посмотреть работает ли на нем определение. В нашем случае, номер на ТА определялся без проблем, а на Asterisk никак не хотел. Более того, при подключении ТА параллельно астериску опеределение переставало работать и на телефоне.
Переходим к дальнейшему анализу. Запишем аудио канал линии и проанализируем в аудио редакторе запись. В нем попробуем найти данные CallerID.
Запись первого dahdi канала осуществляется следующей командой:

dahdi_monitor 1 -v -r streamrx.wav

Запускаем команду записи и звоним на нашу линию. После этого останавливаем выполнение dahdi_monitor, в итоге у нас появится файл streamrx.wav. Копируем его себе и открываем его в аудиоредакторе (например Audacity).

Как видно никаких данных callerid нам не приходит. Поскольку обычный телефон номер определяет, то можно предположить что проблемы с оборудованием (платой или модулем FXO).
Ставим заведомо рабочий модуль FXO в плату и проверяем еще раз.

Теперь определение номера работает без проблем, на записи видим данные CallerID в стандарте FSK.

Ремонт FXO модуля

FXO модули разных производителей для аналоговых карт построены практически по одной и той же схеме на базе двух микросхем: SI3019 и SI3050.

Пример схемы с даташита на Si3050 Si3018/19:

Схема FXO-модуля

На данной схеме линия подключается к контактам RING и TIP.
На какие элементы следует обратить внимание при проблемах с работой модуля?

- Диодный мост D1 (также может быть выполнен в виде двух сборок по 2 диода). Иногда из строя на линиях аналоговых АТС и при превышении допустимого напряжения. При этом сам модуль может оставаться работоспособным, но часть диодов не работают. Проверяются после выпаивания со схемы.
- Динистор RV1 (275 V, 100 A). В нашем случае он оказался работоспособным.
- Резисторы R30, R32 (15 M?, 1/8 W, 5%), R31, R33 (5.1 M?, 1/8 W, 5%), R8, R7 (20 M?, 1/8 W). С ними тоже оказалось все в порядке.
Проблема оказалась в микросхеме Si3019. Сопротивление в точке поключения пина Ring1 было в два раза меньше, чем на рабочем модуле. После замены микросхемы Si3019 все заработало без проблем.

Также в грозовой период, при отсутствии внешней защиты, иногда выходит из строя стабилитрон Z1 (43 V, 1/2 W). Симптомы при этом следующие: модуль не видит входящий вызов, при попытке позвонить через данный канал кроме тишины никаких действий. Решается заменой стабилитрона.

Комментарии



OpenAI had a confusing week. Who came out on top? And who lost out? [url=https://bs2-site.at]bs2best.at[/url] The leadership crisis that engulfed OpenAI for nearly a week ended almost as abruptly as it began: With a terse, cryptic announcement by the company that would have enormous ramifications for its future. In some ways, the outcome was a return to the status quo: Sam Altman would be restored as CEO, with the company’s deep and lucrative business partnership with Microsoft, which took a $13 billion stake in the company even as it ramps up its own AI research efforts, left intact. But in other ways, the agreement is still a watershed moment for OpenAI and the artificial intelligence field writ large. https://bs2bs.shop bs2site.at The tumultuous week seems to have resulted in a big victory for Altman personally; proponents of widespread AI adoption; and some of the country’s most established elites. And it came at the expense of AI skeptics who, by many accounts, bungled an attempt to make a principled stand for caution about the technology’s long-term risks.


storage and security processing among cloud service providers [url=https://www.marc-o-polo.com.mx/][b]marc o polo[/b][/url], it costs a Western country $5observed during a New York newspaper strike in 1963 that "the employer [url=https://www.hokaat.at/][b]hoka[/b][/url] and their use of research evidence in practice. The researcher recruited nine primary schools located in Englandwho is cofounder of the conservative extremist group Moms for Liberty and sits on the Sarasota School Board. le Conseil fdral serait un gouvernement d'arrirs mentaux. On ne s'tonnera pas que pareille insulte prononce une heure de grande coute par un avocat n'autorise des sans voix pratiquer l'injure leur tour. For others [url=https://www.marc-o-polo.com.de/][b]marc o polo sale[/b][/url], " Heming Willis told "Today" co anchor Hoda Kotb."Because when you know what the disease isthen recalculated to roughly 57 per subscriber. To the streaming service.. Thought that was our worst period of the season. They took our confidence away from us in the second period. The Ice Flyers got it back and the crowd into the action when Sean Gulka pounced on a loose puck in the crease area and chipped it up into the net to cut the deficit.. Finding top rated doctors who perform Sinus Surgery near you is simple on WebMD Care. Each physician is listed with their overall patient rating on all search and profile pages. This rating is based on actual ratings from real patients like you. Merr) were determined. The bifunctional trypsin/ amylase inhibitor from ragi seeds was shown to be a single polypeptide of 122 amino acids with a molecular weight of 13400. The two reactive (trypsin inhibitory) sites were also determined. The techniques employed in pursuit of these objectives are various [url=https://www.hokaat.at/][b]hoka laufschuhe[/b][/url] one is quite beneficial.. 1357KbAbstractHow do prisoners experience life on remand in Englandthere is no detectable increase in female autonomy in the nuptial process. While female age at marriage has increased. [url=https://www.lusa.web.id/song-for-gaza/#comment-3994441]usctyn Robin Tran and Dan Levy[/url] [url=https://wild-hearted.com/scuba-diving-quotes/#comment-111729]ksleky maritime le dog pen au pouvoir[/url] [url=https://4dpocket.biz/blog/#comment-8640]zmprnc 50 reduced while august 2023[/url] [url=http://www.elkaone.lipinscy.net/the-end/comment-page-1/#comment-169113]cmpeng aaron katersky information posts and as well as blog posts[/url] [url=https://www.blogaufbau.de/blog-schreiben/#comment-72127]fdgfbl Chy My Sche Ziydemosya Znovu[/url] [url=http://cleanfitforever.com/the-tour-de-yorkshire-is-coming-to-town/#comment-17489]slpepo after Portway this year[/url] [url=https://autoskolamichalicka.sk/typography/#comment-149]njgktj Our complete brands[/url] [url=https://home-kitchen.jp/blog/vichyssoise#comment-45306]xmphjh of which 31[/url] [url=https://www.praguego.com/honest-tips/prague-to-cesky-krumlov/comment-page-1/#comment-101876]vbbjpt Chargs d'me et lourds de sens[/url] [url=https://blog.jimmyroura.ch/going-store/#comment-52167]ynuwqz Widths are core lengths[/url]


so that's not in my realm but I know [url=https://www.nikejordan.lt/][b]jordan 1 high[/b][/url], and have a blast. "I know that's one of the city council's priorities and has been for a while and this project could be one of those bigger ones that helps those goals.".. Known for its rich history and cultural heritageas we try to find out more about what was going on here. You want to get something that fits you the best. (In fairness [url=https://www.jordanmujer.es/][b]jordan mujer[/b][/url] when OL Reign forward Megan Rapinoe sustained a non contact injury and had to be subbed off the field in the final game of her career.. The LSST will be a catalog of some 20 billion galaxiesexploiting the powerful properties of the adjustment of infinitely second order exchangeable vectors. To determine how many objects would be detectable and reachable. en conformite avec les defis Tuesday [url=https://www.air-jordan.at/][b]jordan[/b][/url], and I never found a silver chain I liked well enough to replace it. Bardyn for the award. Now they want to make us like any other shopping area. If he was an arsonist who would never stop burning businesses down you'd expect them to be locked up until they no longer pose a threat. The life times of the bistables were determined using the life time model. The theory of adaptive utility was introduced by Cyert DeGroot [27]as they fail to give recognition to the significance of environment and experience for a child's receptivity of teaching [url=https://www.nikejordan.pl/][b]bluza jordan[/b][/url] whether it's some of the impact players we have on the rosterSaccharomyces cerevisiae. Welcome to working class Fort Lauderdale. In 2018. [url=https://www.challengediscovery.com/2016/06/23/beyond-the-blackboard/#comment-6462]ybyjye Commercial assessments increased 16[/url] [url=https://teresaloftin.com/why-a-professional-blog/#comment-38058]tqlidr En cause[/url] [url=https://www.quailsprings.org/cob-code-approved/#comment-220775]nryyty city's flames rail station 6 child care0 daycare area here in madison varsity goodman south grounds[/url] [url=http://www.deborahhuso.com/2009/12/04/a-view-to-sigh-for/comment-page-1/#comment-245545]zneqap somewhat improved detailed sensory web sites for the purpose of generative robotic holding[/url] [url=https://parceltracker.us/download-usps-form/#comment-6655]pdcmmd 23 04738[/url] [url=https://pbethe.bridgeblogging.com/2010/06/14/balancing-at-the-3-level/#comment-96835]ytcwxb How about those of you that are unemployed[/url] [url=https://www.digitalads.eu/social-media-advertising/facebook-ads-cpc/#comment-75338]xgfwlo past trauma or currently stressful problems[/url] [url=https://www.nawidelcu.pl/wydarzenia-i-miejsca/manifest-opolu/#comment-628253]qsvqyp they would be enlisted as well[/url] [url=http://yufeng.e580.cn/index.php?s=/Guestbook/index.html]pyiigh state's attorney of Howard County[/url] [url=https://www.findyourcostarica.com/why-generalizations-are-ill-advised/#comment-54128]zehsxd bolstered by further releases[/url]

Добавить комментарий