Hi all sorry for my late reply, but it seems like when i am new user i can’t post more than 22 reply in 24hours,
I changed the config from Chan_sip to PJSIP and i managed to get it to register but my problem now is that i can’t receive any incoming calls
here is the config
#include pjsip.registration_custom.conf
[226029001055937@as1.romtelecom.net]
type=registration
transport=0.0.0.0-udp
outbound_auth=226029001055937@as1.romtelecom.net
retry_interval=60
max_retries=1000
expiration=600
line=yes
endpoint=226029001055937@as1.romtelecom.net
auth_rejection_permanent=no
server_uri=sip:as1.romtelecom.net:5060
client_uri=sip:+40217940184@as1.romtelecom.net:5060
#include pjsip.identify_custom.conf
[301-identify]
type=identify
endpoint=301
[226029001055937@as1.romtelecom.net]
type=identify
endpoint=226029001055937@as1.romtelecom.net
match=as1.romtelecom.net
#include pjsip.endpoint_custom.conf
[301]
type=endpoint
aors=301
auth=301-auth
tos_audio=ef
tos_video=af41
cos_audio=5
cos_video=4
allow=ulaw,alaw,gsm,g726,g722
context=from-internal
callerid=test <301>
dtmf_mode=rfc4733
mailboxes=301@device
mwi_subscribe_replaces_unsolicited=yes
aggregate_mwi=yes
use_avpf=no
rtcp_mux=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
timers=yes
media_encryption_optimistic=no
send_pai=yes
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=en
set_var=CHANNEL(parkinglot)=default
[anonymous]
type=endpoint
context=from-sip-external
allow=all
transport=udp,tcp,ws,wss
[226029001055937@as1.romtelecom.net]
type=endpoint
transport=0.0.0.0-udp
context=from-trunk
disallow=all
allow=ulaw,alaw,gsm,g726,g722
aors=226029001055937@as1.romtelecom.net
language=en
auth=226029001055937@as1.romtelecom.net
t38_udptl=yes
t38_udptl_ec=redundancy
fax_detect=no
trust_id_inbound=no
t38_udptl_nat=yes
direct_media=no
rewrite_contact=yes
rtp_symmetric=yes
dtmf_mode=auto
#include pjsip.auth_custom.conf
[301-auth]
type=auth
auth_type=userpass
password=c309e3005c6e653b8966c6a116ec3f04
username=301
[226029001055937@as1.romtelecom.net]
type=auth
auth_type=userpass
password=24129188129782
username=226029001055937@as1.romtelecom.net
#include pjsip.aor_custom.conf
[301]
type=aor
mailboxes=301@device
max_contacts=2
remove_existing=no
maximum_expiration=7200
minimum_expiration=60
qualify_frequency=60
[226029001055937@as1.romtelecom.net]
type=aor
qualify_frequency=0
contact=sip:as1.romtelecom.net:5060
#include pjsip.transports_custom.conf
[0.0.0.0-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
external_media_address=2.0.200.226
external_signaling_address=2.0.200.226
allow_reload=no
tos=cs3
cos=3
local_net=192.168.1.0/24
local_net=2.0.200.224/29
local_net=92.87.198.104/29
local_net=92.87.198.112/29
Endpoint: <Endpoint/CID…> <State…> <Channels.>
I/OAuth: <AuthId/UserName…>
Aor: <Aor…>
Contact: <Aor/ContactUri…> <Hash…> <RTT(ms)…>
Transport: <TransportId…> <BindAddress…>
Identify: <Identify/Endpoint…>
Match: <criteria…>
Channel: <ChannelId…> <State…> <Time…>
Exten: <DialedExten…> CLCID: <ConnectedLineCID…>
Endpoint: 226029001055937@as1.romtelecom.net Not in use 0 of inf
OutAuth: 226029001055937@as1.romtelecom.net/226029001055937@as1.romtelecom.net
InAuth: 226029001055937@as1.romtelecom.net/226029001055937@as1.romtelecom.net
Aor: 226029001055937@as1.romtelecom.net 0
Contact: 226029001055937@as1.romtelecom.net/sip:as1 86468a80c9 Unknown nan
Transport: 0.0.0.0-udp udp 3 96 0.0.0.0:5060
Identify: 226029001055937@as1.romtelecom.net/226029001055937@as1.romtelecom.net
Match: 92.87.198.105/32
Endpoint: 301/301 Not in use 0 of inf
InAuth: 301-auth/301
Aor: 301 2
Contact: 301/sip:301@192.168.1.94:61435;rinstance=8 8f8378342e Avail 17.933
Identify: 301-identify/301
Endpoint: anonymous Unavailable 0 of inf
Objects found: 3
Many thanks