Board logo

標題: Incoming call problem in Elastix with CITIC SIP Trunk [打印本頁]

作者: taihung    時間: 2018-7-6 13:09     標題: Incoming call problem in Elastix with CITIC SIP Trunk

Hi,

We've setup a Elastix and try to connect to CITIC SIP trunk. CITIC told us that they don't have any Elastix/Asterisk connection information can provided for us.

They do allow our Elastix IP to access to their gateway and give us a phone number say 88888888. ( No user name and password provided )

We have create a SIP trunk in Elastix but only able to make a outgoing call - Incoming call doesn't work.
The config for PEER Details
type=peer
insecure=invite
host=202.0.174.19
disallow=all
context=incoming_calls
allow=alaw&ulaw

No idea how to setup USER Details.

Any help/suggestion is much appreciated.

Thank you.
1.png

圖片附件: 1.png (2018-7-6 13:01, 47.71 KB) / 下載次數 699
http://www.telecom-cafe.com/forum/attachment.php?aid=4151&k=74fdadaf83a05490a900e9fc6ac47d27&t=1714170079&sid=T8rNoT


作者: 角色    時間: 2018-7-6 13:51

本帖最後由 角色 於 2018-7-6 15:15 編輯

I do believe that you to have to provide  your fixed IP address to CITIC in order to connect their SIP server.

In general we have to register the SIP information in Asterisk box in order to receive incoming calls.  I have modified the link by removing the user and password as follows:
  1. register => 852xxxxyyyy@202.0.174.19/852xxxxyyyy
複製代碼
Since I am not familiar with Elastic box, please find somewhere to put the above information over there.

The incoming call is defined in your settings "Context=incoming_calls".
作者: taihung    時間: 2018-7-6 14:42

Thanks for your prompt response but it still doesn't work.

2.png

圖片附件: 2.png (2018-7-6 14:41, 18.4 KB) / 下載次數 676
http://www.telecom-cafe.com/forum/attachment.php?aid=4152&k=07c4d91fc6756d51c782ca026bc67cfe&t=1714170079&sid=T8rNoT


作者: 角色    時間: 2018-7-6 15:19

1. Please check whether it can be registered or not.

2. When making incoming calls, please check the log to see what happens. (In general, you have to input something like /usr/sbin/asterisk -rvvv, where the path may be incorrect, please check yours).
作者: taihung    時間: 2018-7-6 16:13

It seems not able to register at all. Log as below;
[2018-07-06 16:08:57] NOTICE[2391]: chan_sip.c:15285 sip_reg_timeout:    -- Registration for '85288888888@202.0.174.19' timed out, trying again (Attempt #2)

[2018-07-06 16:08:57] WARNING[2391]: chan_sip.c:24251 handle_response: Host '202.0.174.19:5060' does not implement 'REGISTER'
作者: 角色    時間: 2018-7-6 18:01

Please check with the following link to see whether it helps:

https://community.freepbx.org/t/ ... thout-username/9288

1) register string is modified as
  1. @202.0.174.19
複製代碼
2) If the above does not work, just remove any registration string.

3) when you make incoming calls, please observe what happens in the Asterisk log.
作者: taihung    時間: 2018-7-7 00:32

Solved.
Change to below seems make it works.
type=friend
insecure=very
host=202.0.174.19
disallow=all
allow=alaw&ulaw

Really appreciated your help. Great place to learn and ask for help.

Have a nice weekend.
作者: 角色    時間: 2018-7-7 07:47

Great to hear that you have solved the problem.

I forgot the above settings is used to tied two Asterisk boxes using IP address.

Also thank you for sharing the settings to other members. Please provide a complete settings of both inbound and outbound calls such that other members may consider to subscribe the CITIC SIP Trunk service.
作者: taihung    時間: 2018-7-7 20:07

Below is the working config;
PEER Details?:
type=friend
insecure=very
host=202.0.174.19
disallow=all
allow=alaw&ulaw

USER Details
type=friend
reinvite=yes
port=5060
insecure=very
host=202.0.174.19
fromdomain=202.0.174.19
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=alaw&ulaw
qualify=300
作者: hklkf    時間: 2018-7-10 06:58

how about login config

Below is the working config;
PEER Details?:
type=friend
insecure=very
host=202.0.174.19
disallow=all ...
taihung 發表於 2018-7-7 20:07

作者: 角色    時間: 2018-7-10 12:04

As per his information, we do not need to have any user credential as the peer SIP
server binds the customer IP address.




歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2