On 1 July 2016 at 17:41, Joshua Colp <jcolp at digium.com> wrote:> > >> exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>) >> same => n,Dial(PJSIP/phone123, 30) >> > > Your exten line has no priority, is that how it is in your dialplan? >Actually no, I stole that line from an earlier email to this list. Mine has a priority.> If not you can isolate things a bit further by trying the following: > > Set(CALLERID(all)=Jon Doe <+123456789>) > > Or individually: > > Set(CALLERID(name)=Jon Doe) > Set(CALLERID(num)=+123456789) >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. It's not a production system, dialplan is pretty simple: same => _X.1,Set(CALLERID(name-pres)=allowed) same => n,Set(CALLERID(num-pres)=allowed) same => n,Set(CALLERID(name)=Fred) same => n,Set(CALLERID(num)=6123) same => n,Dial(PJSIP/DEADDEADBEEF, 30) same => n,Hangup() 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). In the console, if I log the value of CALLERID, it is what I expect to it to be. In the pjsip debug, the callerid I am trying to set doesn't appear anywhere. 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. [DEADDEADBEEF] type=aor support_path=true default_expiration=3600 qualify_timeout=3.000000 mailboxesminimum_expiration=60 outbound_proxyvoicemail_extensionmaximum_expiration=7200 qualify_frequency=0 authenticate_qualify=false contactmax_contacts=1 remove_existing=true [DEADDEADBEEF] type=auth md5_credrealmauth_type=userpass password=4D7D9A7F1822 nonce_lifetime=32 username=507B495E565B [DEADDEADBEEF] type=endpoint timers_sess_expires=1800 device_state_busy_at=0 dtls_cipherfrom_domaindtls_rekey=0 dtls_fingerprint=SHA-256 direct_media_method=invite send_rpid=false pickup_groupsdp_session=Asterisk dtls_verify=No message_contextmailboxesnamed_pickup_grouprecord_on_feature=automixmon dtls_private_keynamed_call_groupt38_udptl_maxdatagram=0 media_encryption_optimistic=false aors=DEADDEADBEEF rpid_immediate=false outbound_proxyidentify_by=username inband_progress=false rtp_symmetric=false transport=transport-udp rtp_keepalive=0 t38_udptl_ec=none fax_detect=false t38_udptl_nat=false allow_transfer=true tos_video=0 srtp_tag_32=false timers_min_se=90 call_groupsub_min_expiry=0 100rel=yes direct_media=true rtp_timeout_hold=0 g726_non_standard=false dtmf_mode=rfc4733 voicemail_extensionrtp_timeout=0 dtls_cert_filemedia_encryption=no media_use_received_transport=false direct_media_glare_mitigation=none trust_id_inbound=false force_avp=false record_off_feature=automixmon send_diversion=true languagemwi_from_userrtp_ipv6=false ice_support=false callerid=unknown aggregate_mwi=true one_touch_recording=false cos_video=0 accountcodeallow=(g722|ulaw|alaw) rewrite_contact=false t38_udptl_ipv6=false tone_zoneuser_eq_phone=false allow_subscribe=true rtp_engine=asterisk auth=DEADDEADBEEF from_user=DEADDEADBEEF bind_rtp_to_media_address=false disable_direct_media_on_nat=false set_varuse_ptime=false outbound_authmedia_addresstos_audio=0 dtls_ca_pathdtls_setup=active force_rport=false connected_line_method=invite callerid_tagtimers=yes sdp_owner=- trust_id_outbound=false use_avpf=false context=default moh_suggest=default send_pai=false t38_udptl=false dtls_ca_filecallerid_privacy=allowed_not_screened mwi_subscribe_replaces_unsolicited=false cos_audio=0 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160704/b9235a94/attachment.html>
Andrew Ivins wrote:> On 1 July 2016 at 17:41, Joshua Colp <jcolp at digium.com > <mailto:jcolp at digium.com>> wrote: > > > exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>) > same => n,Dial(PJSIP/phone123, 30) > > > Your exten line has no priority, is that how it is in your dialplan? > > > Actually no, I stole that line from an earlier email to this list. Mine > has a priority. > > If not you can isolate things a bit further by trying the following: > > Set(CALLERID(all)=Jon Doe <+123456789>) > > Or individually: > > Set(CALLERID(name)=Jon Doe) > Set(CALLERID(num)=+123456789) > > > 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. > > It's not a production system, dialplan is pretty simple: > > same => _X.1,Set(CALLERID(name-pres)=allowed) > same => n,Set(CALLERID(num-pres)=allowed) > same => n,Set(CALLERID(name)=Fred) > same => n,Set(CALLERID(num)=6123) > same => n,Dial(PJSIP/DEADDEADBEEF, 30) > same => n,Hangup() > > 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). > > In the console, if I log the value of CALLERID, it is what I expect to > it to be. ><snip> You have from_user set which will override the user in the From header which is where callerid would be. You also don't have send_rpid or send_pai turned on so there would be no alternate way to send it. Try setting send_rpid or send_pai to yes and trying again. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Thanks Joshua. That did the trick. On 4 July 2016 at 19:18, Joshua Colp <jcolp at digium.com> wrote:> Andrew Ivins wrote: > >> On 1 July 2016 at 17:41, Joshua Colp <jcolp at digium.com >> <mailto:jcolp at digium.com>> wrote: >> >> >> exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>) >> same => n,Dial(PJSIP/phone123, 30) >> >> >> Your exten line has no priority, is that how it is in your dialplan? >> >> >> Actually no, I stole that line from an earlier email to this list. Mine >> has a priority. >> >> If not you can isolate things a bit further by trying the following: >> >> Set(CALLERID(all)=Jon Doe <+123456789>) >> >> Or individually: >> >> Set(CALLERID(name)=Jon Doe) >> Set(CALLERID(num)=+123456789) >> >> >> 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. >> >> It's not a production system, dialplan is pretty simple: >> >> same => _X.1,Set(CALLERID(name-pres)=allowed) >> same => n,Set(CALLERID(num-pres)=allowed) >> same => n,Set(CALLERID(name)=Fred) >> same => n,Set(CALLERID(num)=6123) >> same => n,Dial(PJSIP/DEADDEADBEEF, 30) >> same => n,Hangup() >> >> 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). >> >> In the console, if I log the value of CALLERID, it is what I expect to >> it to be. >> >> > <snip> > > You have from_user set which will override the user in the From header > which is where callerid would be. You also don't have send_rpid or send_pai > turned on so there would be no alternate way to send it. Try setting > send_rpid or send_pai to yes and trying again. > > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160705/ab26a78d/attachment.html>