[asterisk-bugs] [JIRA] (ASTERISK-29509) Callerid not being set via AMI Originate

Daniel Harper (JIRA) noreply at issues.asterisk.org
Tue Jul 6 22:00:33 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255545#comment-255545 ] 

Daniel Harper commented on ASTERISK-29509:
------------------------------------------

Further to this in my testing I have noticed that I have to restart asterisk if I change the callerid for the endpoint as a reload isn't sufficient. Sorry this is perhaps a different issue but I bring attention to it so show that perhaps something is broken in regards to the callerid code.

I changed the callerid for endpoint 1000 to "Extension One Thousandx" <1000> ie I added the x to the end but if I make a call I get the old callerid without the x

    -- Executing [039017010301 at ast-test:1] NoOp("Local/8013 at tcg-queue-00000000;1", "callerid num=1000 callerid name=Extension One Thousand ") in new stack

See output showing endpoint's callerid then making a call that still has the old callerid ...

devel00*CLI> pjsip show endpoint 1000

 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:  1000/1000                                            In use        1 of inf
     InAuth:  1000-iauth/1000
        Aor:  1000                                               3
  Transport:  simpletrans               udp      0      0  0.0.0.0:5060
    Channel: PJSIP/1000-00000000/AgentLogin                      Up            00:01:25
        Exten: 9008013                   CLCID: "" <>


 ParameterName                      : ParameterValue
 =====================================================================
 100rel                             : yes
 @pjsip_wizard                      : 1000
 accept_multiple_sdp_answers        : false
 accountcode                        :
 acl                                :
 aggregate_mwi                      : true
 allow                              : (ulaw)
 allow_overlap                      : true
 allow_subscribe                    : true
 allow_transfer                     : true
 allow_unauthenticated_options      : false
 aors                               : 1000
 asymmetric_rtp_codec               : false
 auth                               : 1000-iauth
 bind_rtp_to_media_address          : false
 bundle                             : false
 call_group                         :
 callerid                           : "Extension One Thousandx" <1000>
 callerid_privacy                   : allowed_not_screened
 callerid_tag                       :
 connected_line_method              : invite
 contact_acl                        :
 context                            : interviewer
 cos_audio                          : 0
 cos_video                          : 0
 device_state_busy_at               : 0
 direct_media                       : true
 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
 ice_support                        : false
 identify_by                        : username,ip
 ignore_183_without_sdp             : false
 inband_progress                    : false
 incoming_mwi_mailbox               :
 language                           :
 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                   :
 named_pickup_group                 :
 notify_early_inuse_ringing         : false
 one_touch_recording                : false
 outbound_auth                      :
 outbound_proxy                     :
 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                        : 0
 rtp_timeout_hold                   : 0
 sdp_owner                          : -
 sdp_session                        : Asterisk
 send_connected_line                : yes
 send_diversion                     : true
 send_history_info                  : false
 send_pai                           : true
 send_rpid                          : true
 set_var                            :
 srtp_tag_32                        : false
 stir_shaken                        : false
 sub_min_expiry                     : 0
 subscribe_context                  :
 suppress_q850_reason_headers       : 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                          : simpletrans
 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

    -- Remote UNIX connection disconnected
  == Manager 'dialserver' logged off from 127.0.0.1
  == Manager 'dialserver' logged on from 127.0.0.1
  == Manager 'dialserver' logged on from 127.0.0.1
  == Manager 'dialserver' logged on from 127.0.0.1
  == Manager 'dialserver' logged on from 127.0.0.1
    -- Added contact 'sip:1000 at 192.168.2.5:56555;ob' to AOR '1000' with expiration of 300 seconds
  == Endpoint 1000 is now Reachable
    -- Contact 1000/sip:1000 at 192.168.2.5:56555;ob is now Reachable.  RTT: 1.004 msec
  == Manager 'mark' logged on from 127.0.0.1
    -- Called 8013 at tcg-queue/n
    -- Executing [8013 at tcg-queue:1] Queue("Local/8013 at tcg-queue-00000000;2", "8013") in new stack
    -- Music class  requested but no musiconhold loaded.
    -- Called Local/8013 at agents
    -- Executing [8013 at agents:1] NoOp("Local/8013 at agents-00000001;2", "AGENTS") in new stack
    -- Executing [8013 at agents:2] AgentRequest("Local/8013 at agents-00000001;2", "8013") in new stack
    -- Channel Local/8013 at agents-00000001;2 joined 'simple_bridge' basic-bridge <d02aac61-0397-442b-a14f-8e70833dd25b>
    -- <PJSIP/1000-00000000> Playing 'beep.ulaw' (language 'en')
    -- Local/8013 at agents-00000001;1 is ringing
    -- Channel PJSIP/1000-00000000 left 'holding_bridge' agent_hold-bridge <375a69f9-ec93-4785-a4cb-6b51a9cdc8a6>
    -- Channel PJSIP/1000-00000000 joined 'simple_bridge' basic-bridge <d02aac61-0397-442b-a14f-8e70833dd25b>
    -- Local/8013 at agents-00000001;1 connected line has changed. Saving it until answer for Local/8013 at tcg-queue-00000000;2
    -- Local/8013 at agents-00000001;1 answered Local/8013 at tcg-queue-00000000;2
    -- Local/8013 at tcg-queue-00000000;1 answered
    -- Executing [039017010301 at ast-test:1] NoOp("Local/8013 at tcg-queue-00000000;1", "callerid num=1000 callerid name=Extension One Thousand ") in new stack
    -- Executing [039017010301 at ast-test:2] Dial("Local/8013 at tcg-queue-00000000;1", "PJSIP/039017010301 at mytrunk,,gH") in new stack

> Callerid not being set via AMI Originate
> ----------------------------------------
>
>                 Key: ASTERISK-29509
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29509
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/CallerID
>    Affects Versions: 16.19.0
>         Environment: CentOS Linux release 7.9.2009 (Core)
>            Reporter: Daniel Harper
>            Assignee: Unassigned
>            Severity: Major
>         Attachments: full
>
>
> When issuing an Originate via AMI with a Callerid parameter the parameter is being ignored and the callerid name is not being set.
> I was testing previously on 16.18.0 but on this version the endpoints callerid was being ignored and the name an num were the extension number. I upgrade to 16.19.0 and this issue is fixed but now the callerid parameter sent via the AMI Originate is being ignored (as it was also in 16.18.0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list