1.6 тыс. просмотров
от (120 баллов) в категории Настройка провайдеров

Hello,

i know that this is a russian forum and I'm sorry for writing in english, but I hope that you can help me.

I set up the MIKO PBX, all is fine and the powerful functions are easy to use.

But as already mentioned in the heading i need to send the Caller ID as a P-Preferred-Identity and not as a P-Asserted-Identity, because my provider (sipgatetrunking.de) don't support the PAI header.

Had someone the same problem, or can someone help me with the configuration lines, which I have to set up? I'm not a developer and never worked with asterisk before, but I hope that i could understand your instructions.

Thank You!

2 Ответы

от (97.2 тыс. баллов)

What version of PBX is used?

In "Telephony provider" - "Advanced setting" - "Advanced Options" add code

[endpoint]

send_pai = no

  1. Goto your Provider card
  2. Copy the id in the browser's address bar
  3. In this example, ID = SIP-1596101220 
  4. Goto "System file customization"
  5. Choose file "extensions.conf"
  6. Select mode "Add to end file"
  7. You need to add dialplan

[SIP-1596101220-outgoing-custom]

exten => _X!,1,Set(PJSIP_HEADER(add,P-Preferred-Identity)="<sip:${ARG1}@mysipprovider.com:5084>")

same => n,return

Instead "<sip:${ARG1}@mysipprovider.com:5084>" and "SIP-1596101220enter your own value.

от (120 баллов)

Thank you for the information.
I tried your manual, but unfortunately it doesn't work.

Miko PBX doesn't add the header.

For example what I have done, I will send some pictures:

1. I disabled the send PAI:

2. I added the customised configuration line:

3. It doesn't send the header:

With the PAI it worked, but my provider don't support this header:

от (120 баллов)

And I don't know if I have to open another question, but I have one more Question. 
Is it possible to set up the nonworking switch with different rules, depenting on the target number? (different times and different redirect targets) 

As example:
incoming calls to our external  extension 1 will be redirected to Voicemail from 00:00 to 08:00.
But incoming call to our external  extension 2 have to be redirected to the Voicemail until 09:00.

Thank You!

от (97.2 тыс. баллов)

Try another way:

[SIP-1596101220-outgoing-custom]

exten => _X!,1,Dial(PJSIP/${number}@SIP-${CUT(CONTEXT,-,2)},600,${DOPTIONS}TKU(dial_answer)b(dial_create_chan_custom,s,1))

    same => n,return

    

[dial_create_chan_custom] 

exten => s,1,Gosub(lua_${ISTRANSFER}dial_create_chan,${EXTEN},1)

same => n,Set(pt1c_is_dst=1) 

same => n,Set(PJSIP_HEADER(add,P-Preferred-Identit)=<sip:100@mysipprovider.com:5084>)

same => n,Set(__PT1C_SIP_HEADER=${UNDEFINED}) 

same => n,Set(CHANNEL(hangup_handler_wipe)=hangup_handler,s,1) 

same => n,return 

Instead "<sip:${ARG1}@mysipprovider.com:5084>and "SIP-1596101220enter your own value.

от (97.2 тыс. баллов)

And I don't know if I have to open another question

You should create a new question

There is a solution, but the instructions are written in Russian

https://wiki.mikopbx.com/providers:many_hosts:non-work

от (120 баллов)

OK thank you!

At first the good message: I could successful set up the nonworking switch depenting on the incoming DID-Number. But I had to change something. (you could see it in the last picture.)

but regarding to the caller ID have to annoy you again:

sending with static set up was no problem. <493.......@sipconnect.sipgate.de> yes

But I want to use the caller ID with the group plugin (like this):

I have inserted the following argument/variable ${CALLERID(num)} : 

But this argument sends the number which I want to call. (my mobile phone number):

Can you say me the right argument/variable please?

Thank you!

от (97.2 тыс. баллов)
Recently I set up a similar task for a client

[SIP-1611151795-outgoing-custom]
exten => _X!,1,Dial(PJSIP/${number}@SIP-${CUT(CONTEXT,-,2)},600,${DOPTIONS}TKU(dial_answer)b(dial_create_chan_${CUT(CONTEXT,-,2)}_custom,s,1))
 same => n,ExecIf($["${DIALSTATUS}" = "ANSWER"]?Hangup())
 same => n,ExecIf($["${DIALSTATUS}" = "BUSY"]?Busy(2))
    same => n,return
[dial_create_chan_1611151795_custom] 
exten => s,1,Gosub(lua_${ISTRANSFER}dial_create_chan,${EXTEN},1)
    same => n,Set(pt1c_is_dst=1) 
 same => n,Set(OUTGOING_CID=100)
 same => n,ExecIf($["${OUTGOING_CID}x" != "x"]?Set(PJSIP_HEADER(add,P-Preferred-Identit)=<sip:${OUTGOING_CID}@127.0.0.1>))
 same => n,ExecIf($["${OUTGOING_CID}x" != "x"]?Set(PJSIP_HEADER(add,Remote-Party-ID)=<sip:${OUTGOING_CID}@127.0.0.1>))
    same => n,Set(__PT1C_SIP_HEADER=${UNDEFINED}) 
    same => n,Set(CHANNEL(hangup_handler_wipe)=hangup_handler,s,1) 
    same => n,return

  • "SIP-1611151795" - this is the provider ID.
На этом сайте можно бесплатно задать вопрос разработчикам MikoPBX и другим членам сообщества. Время ответа не регламентированно, но мы стараемся несколько раз в день заглядывать сюда. Для срочного решения проблем обращайтесь на платную линию поддержки

Популярные теги

askozia входящие-вызовы настройка провайдер исходящие запись-разговоров ivr маршрутизация обновление очередь исходящие-звонки провайдеры входящие транк запись маршрут очередь-вызовов askozia7 askozia6 ошибка переадресация установка голосовая-почта логи перевод-вызова ростелеком история-звонков callerid факс перевод битрикс24 модуль панель-телефонии-1с mikopbx релиз история перехват-вызова запись-разговора веб-интерфейс настройка-провайдер почта gsm звонок nat интеграция диалплан pjsip нерабочее-время битрикс bitrix24 ascozia goip аон мобильный редактор asterisk лицензия внешние-номера телефонная-книга маршруты провайдеров время голосовая cdr вызовы разговоров sip панель #mikopbx web-интерфейс донабор переадресация-мобильный beeline monitoring тишина smtp voicemail номер мультифон мегафон askozia-5 распределение билайн zabbix префиксы статистика альтернативный регистрация оповещения звонков dtmf fax cisco парковка перехват меню вызовов vmware trunk

2.2 тыс. вопросов

1.9 тыс. ответов

5.3 тыс. комментариев

18.8 тыс. пользователей

...