Hey, i have a verry easy dialplan below, i’m trying to make an outbound call with a trunk…
exten => 5555,1,NoOp()
same => n,Set(CALLERID(num)=1234)
same => n,Set(CALLERID(name)=xxx)
same => n,Dial(PJSIP/5555@trunk-basip)
I have setup 2 extensions, one configured with linphone (6000) and one configured with baresip (7000)
calling from 6000 to 5555 works (linphone)
calling from 7000 to 5555 doesnt work (baresip client)
The only difference i see in the log is this line below, is that the culprint? where is it coming from?
[Nov 24 14:01:17] -- PJSIP/trunk-basip-00000003 requested media update control 18, passing it to PJSIP/7000-00000002
full log:
### working from 6000 to 5555
[Nov 24 14:00:47] -- Executing [5555@default:1] NoOp("PJSIP/6000-00000000", "") in new stack
[Nov 24 14:00:47] -- Executing [5555@default:2] Set("PJSIP/6000-00000000", "CALLERID(num)=64668") in new stack
[Nov 24 14:00:47] -- Executing [5555@default:3] Set("PJSIP/6000-00000000", "CALLERID(name)=Deurbel") in new stack
[Nov 24 14:00:47] -- Executing [5555@default:4] Dial("PJSIP/6000-00000000", "PJSIP/5555@trunk-basip") in new stack
[Nov 24 14:00:47] -- Called PJSIP/5555@trunk-basip
[Nov 24 14:00:47] -- PJSIP/trunk-basip-00000001 is making progress passing it to PJSIP/6000-00000000
[Nov 24 14:00:58] -- PJSIP/trunk-basip-00000001 answered PJSIP/6000-00000000
[Nov 24 14:00:58] -- Channel PJSIP/trunk-basip-00000001 joined 'simple_bridge' basic-bridge <a3d37184-eb7e-4bdc-82ee-397abe480ae2>
[Nov 24 14:00:58] -- Channel PJSIP/6000-00000000 joined 'simple_bridge' basic-bridge <a3d37184-eb7e-4bdc-82ee-397abe480ae2>
[Nov 24 14:01:05] -- Channel PJSIP/trunk-basip-00000001 left 'native_rtp' basic-bridge <a3d37184-eb7e-4bdc-82ee-397abe480ae2>
[Nov 24 14:01:05] -- Channel PJSIP/6000-00000000 left 'native_rtp' basic-bridge <a3d37184-eb7e-4bdc-82ee-397abe480ae2>
#### non working 7000 to 5555
[Nov 24 14:01:05] == Spawn extension (default, 1, 4) exited non-zero on 'PJSIP/6000-00000000'
[Nov 24 14:01:17] -- Executing [5555@default:1] NoOp("PJSIP/7000-00000002", "") in new stack
[Nov 24 14:01:17] -- Executing [5555@default:2] Set("PJSIP/7000-00000002", "CALLERID(num)=1234") in new stack
[Nov 24 14:01:17] -- Executing [5555@default:3] Set("PJSIP/7000-00000002", "CALLERID(name)=xxx") in new stack
[Nov 24 14:01:17] -- Executing [5555@default:4] Dial("PJSIP/7000-00000002", "PJSIP/5555@trunk-basip") in new stack
[Nov 24 14:01:17] -- Called PJSIP/5555@trunk-basip
[Nov 24 14:01:17] -- PJSIP/trunk-basip-00000003 is making progress passing it to PJSIP/7000-00000002
[Nov 24 14:01:17] -- PJSIP/trunk-basip-00000003 requested media update control 18, passing it to PJSIP/7000-00000002
[Nov 24 14:01:17] == Spawn extension (default, 1, 4) exited non-zero on 'PJSIP/7000-00000002'
this is the trunk config below:
[trunk-basip]
type=registration
outbound_auth=trunk-basip
server_uri=sip:domain.com
client_uri=sip:1234@domain.com
retry_interval=30
contact_user=1234
[trunk-basip]
type=auth
auth_type=userpass
password=xxxx
username=1234
[trunk-basip]
type=aor
contact=sip:1234@domain.com
;default_expiration=1500
;maximum_expiration=3000
;minimum_expiration=60
[trunk-basip]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264
outbound_auth=trunk-basip
aors=trunk-basip
from_domain=domain.com
direct_media=no
[trunk-basip]
type=identify
endpoint=trunk-basip
match=domain.com
and here are the extensions, no difference in 6000 or 7000
[6000]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264
auth=auth6000
aors=6000
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
direct_media=no
max_audio_streams=10
max_video_streams=10
from_domain=domain.com
[auth6000]
type=auth
auth_type=userpass
password=xxxx
username=6000
[6000]
type=aor
qualify_frequency=30
max_contacts=1
remove_existing=yes
remove_unavailable=yes
[7000]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264
auth=auth7000
aors=7000
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
direct_media=no
max_audio_streams=10
max_video_streams=10
from_domain=domain.com
[auth7000]
type=auth
auth_type=userpass
password=xxxx
username=7000
[7000]
type=aor
max_contacts=1
remove_existing=yes
remove_unavailable=yes