<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 July 2016 at 17:41, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>)<br>
same => n,Dial(PJSIP/phone123, 30)<br>
</blockquote>
<br></span>
Your exten line has no priority, is that how it is in your dialplan?<br></blockquote><div><br></div><div>Actually no, I stole that line from an earlier email to this list. Mine has a priority.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If not you can isolate things a bit further by trying the following:<br>
<br>
Set(CALLERID(all)=Jon Doe <+123456789>)<br>
<br>
Or individually:<br>
<br>
Set(CALLERID(name)=Jon Doe)<br>
Set(CALLERID(num)=+123456789)<br></blockquote><div><br></div><div>Tried many permutations of this, and the only thing I can get to happen is to make the call present as Anonymous by changing the pres-name/pres-num setting.</div><div><br></div><div>It's not a production system, dialplan is pretty simple:</div><div><br></div><div><div>same => _X.1,Set(CALLERID(name-pres)=allowed)</div><div>same => n,Set(CALLERID(num-pres)=allowed)</div><div>same => n,Set(CALLERID(name)=Fred)</div><div>same => n,Set(CALLERID(num)=6123)</div><div>same => n,Dial(PJSIP/DEADDEADBEEF, 30)<br></div><div>same => n,Hangup()</div></div><div><br></div><div>DEADDEADBEEF is the name of the endpoint and the endpoint works. I use MAC addresses and plan to dynamically map extensions to them later on (kind of like user mode in freepbx).</div><div><br></div><div>In the console, if I log the value of CALLERID, it is what I expect to it to be.</div><div><br></div><div>In the pjsip debug, the callerid I am trying to set doesn't appear anywhere.</div><div><br></div><div>I'm using your Sorcery stuff backing into astb for pjsip, but I've done a little script to dump it back into text so I can override it in the config file. Therefore it's a bit verbose. Thanks for looking.</div><div><br></div><div><div>[DEADDEADBEEF]</div><div>type=aor</div><div>support_path=true</div><div>default_expiration=3600</div><div>qualify_timeout=3.000000</div><div>mailboxes=</div><div>minimum_expiration=60</div><div>outbound_proxy=</div><div>voicemail_extension=</div><div>maximum_expiration=7200</div><div>qualify_frequency=0</div><div>authenticate_qualify=false</div><div>contact=</div><div>max_contacts=1</div><div>remove_existing=true</div><div><br></div><div>[DEADDEADBEEF]</div><div>type=auth</div><div>md5_cred=</div><div>realm=</div><div>auth_type=userpass</div><div>password=4D7D9A7F1822</div><div>nonce_lifetime=32</div><div>username=507B495E565B</div><div><br></div><div>[DEADDEADBEEF]</div><div>type=endpoint</div><div>timers_sess_expires=1800</div><div>device_state_busy_at=0</div><div>dtls_cipher=</div><div>from_domain=</div><div>dtls_rekey=0</div><div>dtls_fingerprint=SHA-256</div><div>direct_media_method=invite</div><div>send_rpid=false</div><div>pickup_group=</div><div>sdp_session=Asterisk</div><div>dtls_verify=No</div><div>message_context=</div><div>mailboxes=</div><div>named_pickup_group=</div><div>record_on_feature=automixmon</div><div>dtls_private_key=</div><div>named_call_group=</div><div>t38_udptl_maxdatagram=0</div><div>media_encryption_optimistic=false</div><div>aors=DEADDEADBEEF</div><div>rpid_immediate=false</div><div>outbound_proxy=</div><div>identify_by=username</div><div>inband_progress=false</div><div>rtp_symmetric=false</div><div>transport=transport-udp</div><div>rtp_keepalive=0</div><div>t38_udptl_ec=none</div><div>fax_detect=false</div><div>t38_udptl_nat=false</div><div>allow_transfer=true</div><div>tos_video=0</div><div>srtp_tag_32=false</div><div>timers_min_se=90</div><div>call_group=</div><div>sub_min_expiry=0</div><div>100rel=yes</div><div>direct_media=true</div><div>rtp_timeout_hold=0</div><div>g726_non_standard=false</div><div>dtmf_mode=rfc4733</div><div>voicemail_extension=</div><div>rtp_timeout=0</div><div>dtls_cert_file=</div><div>media_encryption=no</div><div>media_use_received_transport=false</div><div>direct_media_glare_mitigation=none</div><div>trust_id_inbound=false</div><div>force_avp=false</div><div>record_off_feature=automixmon</div><div>send_diversion=true</div><div>language=</div><div>mwi_from_user=</div><div>rtp_ipv6=false</div><div>ice_support=false</div><div>callerid=unknown</div><div>aggregate_mwi=true</div><div>one_touch_recording=false</div><div>cos_video=0</div><div>accountcode=</div><div>allow=(g722|ulaw|alaw)</div><div>rewrite_contact=false</div><div>t38_udptl_ipv6=false</div><div>tone_zone=</div><div>user_eq_phone=false</div><div>allow_subscribe=true</div><div>rtp_engine=asterisk</div><div>auth=DEADDEADBEEF</div><div>from_user=DEADDEADBEEF</div><div>bind_rtp_to_media_address=false</div><div>disable_direct_media_on_nat=false</div><div>set_var=</div><div>use_ptime=false</div><div>outbound_auth=</div><div>media_address=</div><div>tos_audio=0</div><div>dtls_ca_path=</div><div>dtls_setup=active</div><div>force_rport=false</div><div>connected_line_method=invite</div><div>callerid_tag=</div><div>timers=yes</div><div>sdp_owner=-</div><div>trust_id_outbound=false</div><div>use_avpf=false</div><div>context=default</div><div>moh_suggest=default</div><div>send_pai=false</div><div>t38_udptl=false</div><div>dtls_ca_file=</div><div>callerid_privacy=allowed_not_screened</div><div>mwi_subscribe_replaces_unsolicited=false</div><div>cos_audio=0</div></div></div></div></div>