I want to set CALLERID(number) to number allocated from SIP trunk provider for external calls after transfer. For some reason this is not respected after attended transfer initiated by atxfer feature code.
I believe this is rather configuration issue and not a bug.
Minimum dialplan is:
CLI> dialplan show incoming
[ Context 'incoming' created by 'pbx_ael' ]
'_x.' => 1. Dial(PJSIP/phone,120,tT) [pbx_ael]
2. Hangup() [pbx_ael]
CLI> dialplan show custom-transfer
[ Context 'custom-transfer' created by 'pbx_ael' ]
'_[+*#0-9].' => 1. NoOp(cidn: ${CALLERID(number)}) [pbx_ael]
2. Set(CALLERID(number)=123456789) [pbx_ael]
3. NoOp(cidn: ${CALLERID(number)}) [pbx_ael]
4. Dial(PJSIP/${EXTEN}@trunk,120,tT) [pbx_ael]
5. Hangup() [pbx_ael]
Features settings:
CLI> features show
Builtin Feature Default Current
--------------- ------- -------
Pickup *8 *88
Blind Transfer # *1
Attended Transfer *2
Endpoint configuration involved in the example:
CLI> pjsip show endpoint phone
Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................> <MaxContact>
Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
Identify: <Identify/Endpoint.........................................................>
Match: <criteria.........................>
Channel: <ChannelId......................................> <State.....> <Time.....>
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>
==========================================================================================
Endpoint: phone/354 Not in use 0 of inf
OutAuth: phone/phone
InAuth: phone/phone
Aor: phone 4
Contact: phone/sip:phone@192.168.1.10:5060;ob de82d3dd7e Avail 20.918
Transport: transport-udp udp 0 184 0.0.0.0:5060
ParameterName : ParameterValue
===================================================================================================
100rel : yes
accept_multiple_sdp_answers : false
accountcode :
acl :
aggregate_mwi : true
allow : (g722|alaw)
allow_overlap : true
allow_subscribe : true
allow_transfer : true
allow_unauthenticated_options : false
aors : phone
asymmetric_rtp_codec : false
auth : phone
bind_rtp_to_media_address : false
bundle : false
call_group :
callerid : "psi" <354>
callerid_privacy : allowed_not_screened
callerid_tag :
codec_prefs_incoming_answer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_incoming_offer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_outgoing_answer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_outgoing_offer : prefer:pending, operation:union, keep:all, transcode:allow
connected_line_method : invite
contact_acl :
context : internal
cos_audio : 0
cos_video : 0
device_state_busy_at : 0
direct_media : false
direct_media_glare_mitigation : none
direct_media_method : invite
disable_direct_media_on_nat : false
dtls_auto_generate_cert : No
dtls_ca_file :
dtls_ca_path :
dtls_cert_file :
dtls_cipher :
dtls_fingerprint : SHA-256
dtls_private_key :
dtls_rekey : 0
dtls_setup : active
dtls_verify : No
dtmf_mode : rfc4733
fax_detect : false
fax_detect_timeout : 0
follow_early_media_fork : true
force_avp : false
force_rport : true
from_domain :
from_user :
g726_non_standard : false
geoloc_incoming_call_profile :
geoloc_outgoing_call_profile :
ice_support : false
identify_by : username,ip
ignore_183_without_sdp : false
inband_progress : false
incoming_call_offer_pref : local
incoming_mwi_mailbox :
language :
log_subscription_error : true
mailboxes :
max_audio_streams : 1
max_video_streams : 1
media_address :
media_encryption : no
media_encryption_optimistic : false
media_use_received_transport : false
message_context :
moh_passthrough : false
moh_suggest : default
mwi_from_user :
mwi_subscribe_replaces_unsolicited : no
named_call_group : 1083
named_pickup_group : 1083
notify_early_inuse_ringing : false
one_touch_recording : false
outbound_auth : phone
outbound_proxy :
outgoing_call_offer_pref : remote_merge
overlap_context :
pickup_group :
preferred_codec_only : false
record_off_feature : automixmon
record_on_feature : automixmon
refer_blind_progress : true
rewrite_contact : false
rpid_immediate : false
rtcp_mux : false
rtp_engine : asterisk
rtp_ipv6 : false
rtp_keepalive : 0
rtp_symmetric : false
rtp_timeout : 60
rtp_timeout_hold : 1800
sdp_owner : -
sdp_session : Asterisk
security_mechanisms :
security_negotiation : no
send_aoc : false
send_connected_line : yes
send_diversion : true
send_history_info : false
send_pai : false
send_rpid : true
set_var :
srtp_tag_32 : false
stir_shaken : off
stir_shaken_profile :
sub_min_expiry : 0
subscribe_context : subscriptions
suppress_q850_reason_headers : true
t38_bind_udptl_to_media_address : false
t38_udptl : false
t38_udptl_ec : none
t38_udptl_ipv6 : false
t38_udptl_maxdatagram : 0
t38_udptl_nat : false
timers : yes
timers_min_se : 90
timers_sess_expires : 1800
tone_zone :
tos_audio : 0
tos_video : 0
transport : transport-udp
trust_connected_line : yes
trust_id_inbound : false
trust_id_outbound : false
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
webrtc : no
CLI> pjsip show endpoint trunk
Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................> <MaxContact>
Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
Identify: <Identify/Endpoint.........................................................>
Match: <criteria.........................>
Channel: <ChannelId......................................> <State.....> <Time.....>
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>
==========================================================================================
Endpoint: trunk Not in use 0 of inf
OutAuth: trunk-oauth/pbx
InAuth: trunk-iauth/trunk
Aor: trunk 1
Contact: trunk/sip:trunk.server.com 4de3f20c21 Avail 30.332
Transport: transport-tls tls 0 184 0.0.0.0:5061
Identify: trunk-identify/trunk
Match: 1.2.3.4/32
ParameterName : ParameterValue
===================================================================================================
100rel : yes
accept_multiple_sdp_answers : false
accountcode :
acl :
aggregate_mwi : true
allow : (g722|alaw)
allow_overlap : true
allow_subscribe : true
allow_transfer : false
allow_unauthenticated_options : false
aors : trunk
asymmetric_rtp_codec : false
auth : trunk-iauth
bind_rtp_to_media_address : true
bundle : false
call_group :
callerid : <unknown>
callerid_privacy : allowed_not_screened
callerid_tag :
codec_prefs_incoming_answer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_incoming_offer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_outgoing_answer : prefer:pending, operation:intersect, keep:all, transcode:allow
codec_prefs_outgoing_offer : prefer:pending, operation:union, keep:all, transcode:allow
connected_line_method : invite
contact_acl :
context : incoming
cos_audio : 5
cos_video : 0
device_state_busy_at : 0
direct_media : false
direct_media_glare_mitigation : none
direct_media_method : invite
disable_direct_media_on_nat : false
dtls_auto_generate_cert : No
dtls_ca_file :
dtls_ca_path :
dtls_cert_file :
dtls_cipher :
dtls_fingerprint : SHA-256
dtls_private_key :
dtls_rekey : 0
dtls_setup : active
dtls_verify : No
dtmf_mode : rfc4733
fax_detect : false
fax_detect_timeout : 0
follow_early_media_fork : true
force_avp : false
force_rport : true
from_domain :
from_user :
g726_non_standard : false
geoloc_incoming_call_profile :
geoloc_outgoing_call_profile :
ice_support : false
identify_by : auth_username,ip
ignore_183_without_sdp : false
inband_progress : false
incoming_call_offer_pref : local
incoming_mwi_mailbox :
language :
log_subscription_error : true
mailboxes :
max_audio_streams : 1
max_video_streams : 1
media_address :
media_encryption : sdes
media_encryption_optimistic : false
media_use_received_transport : false
message_context :
moh_passthrough : false
moh_suggest : default
mwi_from_user :
mwi_subscribe_replaces_unsolicited : no
named_call_group :
named_pickup_group :
notify_early_inuse_ringing : false
one_touch_recording : false
outbound_auth : trunk-oauth
outbound_proxy :
outgoing_call_offer_pref : remote_merge
overlap_context :
pickup_group :
preferred_codec_only : false
record_off_feature : automixmon
record_on_feature : automixmon
refer_blind_progress : true
rewrite_contact : false
rpid_immediate : false
rtcp_mux : false
rtp_engine : asterisk
rtp_ipv6 : false
rtp_keepalive : 10
rtp_symmetric : false
rtp_timeout : 60
rtp_timeout_hold : 1800
sdp_owner : -
sdp_session : Asterisk
security_mechanisms :
security_negotiation : no
send_aoc : false
send_connected_line : yes
send_diversion : true
send_history_info : false
send_pai : false
send_rpid : false
set_var :
srtp_tag_32 : false
stir_shaken : off
stir_shaken_profile :
sub_min_expiry : 0
subscribe_context :
suppress_q850_reason_headers : false
t38_bind_udptl_to_media_address : false
t38_udptl : true
t38_udptl_ec : redundancy
t38_udptl_ipv6 : false
t38_udptl_maxdatagram : 0
t38_udptl_nat : false
timers : yes
timers_min_se : 90
timers_sess_expires : 1800
tone_zone :
tos_audio : 184
tos_video : 0
transport : transport-tls
trust_connected_line : yes
trust_id_inbound : false
trust_id_outbound : false
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
webrtc : no
Test of dialplan - transfer of incoming call to EXTEN 987654321 and setting of CALLERID(number) to 123456789:
Sep 7 13:31:28 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: pbx.c:2941 in pbx_extension_helper: Executing [123456789@incoming:1] Dial("PJSIP/trunk-0000000c", "PJSIP/phone,120,tT") in new stack
Sep 7 13:31:28 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: app_dial.c:2914 in dial_exec_full: Called PJSIP/phone
Sep 7 13:31:28 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: app_dial.c:1546 in wait_for_answer: PJSIP/phone-0000000d is ringing
Sep 7 13:31:30 pbx asterisk[1099899]: VERBOSE[1119830]: res_rtp_asterisk.c:8949 in ast_rtp_remote_address_set: 0x7f6fdc07a180 -- Strict RTP learning after remote address set to: 192.168.1.10:4008
Sep 7 13:31:30 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: app_dial.c:1438 in wait_for_answer: PJSIP/phone-0000000d answered PJSIP/trunk-0000000c
Sep 7 13:31:30 pbx asterisk[1099899]: VERBOSE[1119830]: res_rtp_asterisk.c:8949 in ast_rtp_remote_address_set: 0x7f6fdc08b680 -- Strict RTP learning after remote address set to: 1.2.3.4:10794
Sep 7 13:31:30 pbx asterisk[1099899]: VERBOSE[1120025][C-00000005]: bridge_channel.c:2226 in bridge_channel_internal_push_full: Channel PJSIP/phone-0000000d joined 'simple_bridge' basic-bridge <4bbc63ef-e003-4853-ae12-c8cb382b64ed>
Sep 7 13:31:30 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: bridge_channel.c:2226 in bridge_channel_internal_push_full: Channel PJSIP/trunk-0000000c joined 'simple_bridge' basic-bridge <4bbc63ef-e003-4853-ae12-c8cb382b64ed>
Sep 7 13:31:30 pbx asterisk[1099899]: VERBOSE[1120025][C-00000005]: res_rtp_asterisk.c:8230 in ast_rtp_read: 0x7f6fdc07a180 -- Strict RTP switching to RTP target address 192.168.1.10:4008 as source
Sep 7 13:31:31 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: res_rtp_asterisk.c:8230 in ast_rtp_read: 0x7f6fdc08b680 -- Strict RTP switching to RTP target address 1.2.3.4:10794 as source
Sep 7 13:31:31 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '*' received on PJSIP/phone-0000000d
Sep 7 13:31:31 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4012 in __ast_read: DTMF begin passthrough '*' on PJSIP/phone-0000000d
Sep 7 13:31:31 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '*' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:31 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3938 in __ast_read: DTMF end accepted with begin '*' on PJSIP/phone-0000000d
Sep 7 13:31:31 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '*' on PJSIP/phone-0000000d
Sep 7 13:31:32 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '2' received on PJSIP/phone-0000000d
Sep 7 13:31:32 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4012 in __ast_read: DTMF begin passthrough '2' on PJSIP/phone-0000000d
Sep 7 13:31:32 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '2' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:32 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3938 in __ast_read: DTMF end accepted with begin '2' on PJSIP/phone-0000000d
Sep 7 13:31:32 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '2' on PJSIP/phone-0000000d
Sep 7 13:31:32 pbx asterisk[1099899]: VERBOSE[1120025][C-00000005]: bridge_basic.c:3344 in feature_attended_transfer: Channel PJSIP/phone-0000000d: Started DTMF attended transfer.
Sep 7 13:31:32 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: res_musiconhold.c:246 in moh_post_start: Started music on hold, class 'default', on channel 'PJSIP/trunk-0000000c'
Sep 7 13:31:32 pbx asterisk[1099899]: VERBOSE[1120025][C-00000005]: file.c:1343 in ast_streamfile: <PJSIP/phone-0000000d> Playing 'pbx-transfer.slin16' (language 'cz')
Sep 7 13:31:34 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '7' received on PJSIP/phone-0000000d
Sep 7 13:31:34 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '7' on PJSIP/phone-0000000d
Sep 7 13:31:34 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '7' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:34 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '7' on PJSIP/phone-0000000d
Sep 7 13:31:35 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '3' received on PJSIP/phone-0000000d
Sep 7 13:31:35 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '3' on PJSIP/phone-0000000d
Sep 7 13:31:35 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '3' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:35 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '3' on PJSIP/phone-0000000d
Sep 7 13:31:35 pbx asterisk[1099899]: VERBOSE[1120025][C-00000005]: res_rtp_asterisk.c:8201 in ast_rtp_read: 0x7f6fdc07a180 -- Strict RTP learning complete - Locking on source address 192.168.1.10:4008
Sep 7 13:31:35 pbx asterisk[1099899]: VERBOSE[1120017][C-00000005]: res_rtp_asterisk.c:8201 in ast_rtp_read: 0x7f6fdc08b680 -- Strict RTP learning complete - Locking on source address 1.2.3.4:10794
Sep 7 13:31:35 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '7' received on PJSIP/phone-0000000d
Sep 7 13:31:35 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '7' on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '7' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '7' on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '2' received on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '2' on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '2' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '2' on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '3' received on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '3' on PJSIP/phone-0000000d
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '3' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:36 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '3' on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '8' received on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '8' on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '8' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '8' on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '3' received on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '3' on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '3' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '3' on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '3' received on PJSIP/phone-0000000d
Sep 7 13:31:37 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '3' on PJSIP/phone-0000000d
Sep 7 13:31:38 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '3' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:38 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '3' on PJSIP/phone-0000000d
Sep 7 13:31:38 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '4' received on PJSIP/phone-0000000d
Sep 7 13:31:38 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '4' on PJSIP/phone-0000000d
Sep 7 13:31:38 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '4' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:38 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '4' on PJSIP/phone-0000000d
Sep 7 13:31:39 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4001 in __ast_read: DTMF begin '#' received on PJSIP/phone-0000000d
Sep 7 13:31:39 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:4005 in __ast_read: DTMF begin ignored '#' on PJSIP/phone-0000000d
Sep 7 13:31:39 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3887 in __ast_read: DTMF end '#' received on PJSIP/phone-0000000d, duration 200 ms
Sep 7 13:31:39 pbx asterisk[1099899]: DTMF[1120025][C-00000005]: channel.c:3976 in __ast_read: DTMF end passthrough '#' on PJSIP/phone-0000000d
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: pbx.c:2941 in pbx_extension_helper: Executing [987654321@custom-transfer:1] NoOp("Local/987654321@custom-transfer-00000004;2", "cidn: 354") in new stack
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120027][C-00000005]: bridge_channel.c:2226 in bridge_channel_internal_push_full: Channel Local/987654321@custom-transfer-00000004;1 joined 'simple_bridge' basic-bridge <c629300f-8828-4236-b6af-182037cfa9e4>
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: pbx.c:2941 in pbx_extension_helper: Executing [987654321@custom-transfer:2] Set("Local/987654321@custom-transfer-00000004;2", "CALLERID(number)=123456789") in new stack
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: pbx.c:2941 in pbx_extension_helper: Executing [987654321@custom-transfer:3] NoOp("Local/987654321@custom-transfer-00000004;2", "cidn: 123456789") in new stack
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: pbx.c:2941 in pbx_extension_helper: Executing [987654321@custom-transfer:4] Dial("Local/987654321@custom-transfer-00000004;2", "PJSIP/987654321@trunk,120,tT") in new stack
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120028][C-00000005]: bridge_channel.c:2124 in bridge_channel_internal_pull: Channel PJSIP/phone-0000000d left 'simple_bridge' basic-bridge <4bbc63ef-e003-4853-ae12-c8cb382b64ed>
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120028][C-00000005]: bridge_channel.c:2226 in bridge_channel_internal_push_full: Channel PJSIP/phone-0000000d joined 'simple_bridge' basic-bridge <c629300f-8828-4236-b6af-182037cfa9e4>
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: app_dial.c:2914 in dial_exec_full: Called PJSIP/987654321@trunk
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: app_dial.c:1913 in wait_for_answer: Local/987654321@custom-transfer-00000004;2 requested media update control 26, passing it to PJSIP/trunk-0000000e
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1119830]: netsock2.c:639 in ast_set_qos: Using SIP RTP Audio TOS bits 184
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1119830]: netsock2.c:661 in ast_set_qos: Using SIP RTP Audio CoS mark 5
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: app_dial.c:1314 in wait_for_answer: Everyone is busy/congested at this time (1:0/0/1)
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: pbx.c:2941 in pbx_extension_helper: Executing [987654321@custom-transfer:5] Hangup("Local/987654321@custom-transfer-00000004;2", "") in new stack
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120026][C-00000005]: pbx.c:4439 in __ast_pbx_run: Spawn extension (custom-transfer, 987654321, 5) exited non-zero on 'Local/987654321@custom-transfer-00000004;2'
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120027][C-00000005]: bridge_channel.c:2124 in bridge_channel_internal_pull: Channel Local/987654321@custom-transfer-00000004;1 left 'simple_bridge' basic-bridge <c629300f-8828-4236-b6af-182037cfa9e4>
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120028][C-00000005]: bridge_channel.c:2124 in bridge_channel_internal_pull: Channel PJSIP/phone-0000000d left 'simple_bridge' basic-bridge <c629300f-8828-4236-b6af-182037cfa9e4>
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120028][C-00000005]: bridge_channel.c:2226 in bridge_channel_internal_push_full: Channel PJSIP/phone-0000000d joined 'simple_bridge' basic-bridge <4bbc63ef-e003-4853-ae12-c8cb382b64ed>
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120028][C-00000005]: res_musiconhold.c:270 in moh_post_stop: Stopped music on hold on PJSIP/trunk-0000000c
Sep 7 13:31:39 pbx asterisk[1099899]: VERBOSE[1120025][C-00000005]: file.c:1343 in ast_streamfile: <PJSIP/phone-0000000d> Playing 'beeperr.slin16' (language 'cz')
Resulting SIP INVITE:
INVITE sip:987654321@trunk.server.com SIP/2.0
Via: SIP/2.0/TLS 192.168.10.10:5061;rport;branch=z9hG4bKPja04ec818-85bc-4df6-9944-2a5d21146a94;alias
From: "psi" <sip:354@192.168.10.10>;tag=488dd8fe-1999-4e06-9ac7-ae15aece4fc5
To: <sip:987654321@trunk.server.com>
Contact: <sip:asterisk@192.168.10.10:5061;transport=TLS>
Call-ID: c6f47d6f-27a2-4c37-a0c5-347a1c6130de
CSeq: 18276 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 18.18.1
Content-Type: application/sdp
Content-Length: 342
So setting of CALLERID(number) have no effect on From header. It remains set 354 instead of 123456789.
Can someone point me out what’s missing in my configuration?