Hi I am running asterisk 16.26; Got a trunk from provider with 100 Block DIDs. However, cannot setup caller ID, the only caller ID can use it the main one. To setup caller ID for each extension, need to P-Asserted-Identity or P-Preferred-Identity headers, tried whole day, but could not work it out.
Here is the instruction from the provider.
eg.Trying to use 0750014912 as CID to 0456789101
CSeq: 103 INVITE
Authorization: Digest username=“0750014900”, realm=“sipdeal.com.au”, algorithm=MD5,
uri=“sip:email@example.com”, nonce="“, response=”“, qop=auth, cnonce=”", nc=**
Date: Mon, 15 May 2017 07:28:06 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
P-Asserted-Identity: sip:firstname.lastname@example.org Pilot user identity here and this is the main number
I have tried:
sendrpid = pai
trustrpid = no
Which almost get there, but not quite right:
P-Asserted-Identity: sip:email@example.com, get error message
Assume the correct head add should be P-Asserted-Identity: sip:firstname.lastname@example.org
Given up and tried to add dial plan:
Add the following to extentions_customer.conf to test
exten => _07xxxxxxxx,1,SipAddHeader(P-Asserted-Identity: sip:email@example.com )
Add:context=from-testing in the sip trunk config
Set debug on, P-Asserted-Identity header has not been added.
The trunk is on chan-sip, all extensions are using PJ-sip.
Please help, thank you.