hello,
i have a local asterisk server with sip_chan, and another asterisk server on cloud with chan_pjsip, i want to make calls between the two servers using provider trunks. the problem is that the trunk from local server to distant server is working but the opposite not. who can help me please.
What actually happens? What is the configuration? What is the SIP trace (sip set debug on for chan_sip, pjsip set logger on for chan_pjsip)?
It’s all in the configuration, and without that we’re just guessing on what is going on.
If you are using provider “trunks”, the two are decoupled, and you have chan_sip to provider and chan_pjsip to provider, which are standard things (except that chan_sip should no longer be considered standard for anything).
the calls go for one direction which is local server to distant server, and the opposite did not work, i guess that is a network or routing problem, but i m not sure.
[sip_provider_1]
type = endpoint
transport=0.0.0.0-udp
context=sip_provider_1
disallow=all
allow=ulaw
outbound_auth=sip_provider_1
aors=sip_provider_5
sip_provider_1]
type = aor
contact=sip:6000@192.168.1.178:5060
outbound_proxy=sip:192.168.1.178:5060
[sip_provider_1]
type = auth
auth_type = userpass
username=6000
password=********
[sip_provider_1]
type = identify
endpoint = sip_provider_1
match= 192.168.1.178
[sip_provider_1]
type=registration
transport=0.0.0.0-udp
outbound_auth=sip_provider_1
retry_interval = 30
max_retries = 10
expiration = 30
line = yes
endpoint = sip_provider_1
auth_rejection_permanent = yes
contact_user = 6000
server_uri=sip:192.168.1.178:5060
client_uri=sip:6000@192.168.1.178:5060
outbound_proxy =sip:192.168.1.178:5060
retry_interval = 60
this is the configuration that didn
't work for me
What does “did not work” actually mean? You need to be specific.
For example:
- Does the traffic arrive at all?
- Does Asterisk reject the call?
Those are two different failures, and will have two different paths for finding out what is going on.
the status of the trunk is rejected and the traffic not arrive at all
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.