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
From: sip:0750014912@sipdeal.com.au:5061;tag=as4a7dc59b
To: sip:0456789101@sipdeal.com.au
Contact: sip:0750014912@10.100.2.74:5061
Call-ID: 03d1d96353a66fa646e3bd580d4fa12f@sipdeal.com.au
CSeq: 103 INVITE
User-Agent: FPBX-12.0.74(13.13.1)
Authorization: Digest username=“0750014900”, realm=“sipdeal.com.au”, algorithm=MD5,
uri=“sip:0456745577@sipdeal.com.au”, 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:0750014900@sipdeal.com.au Pilot user identity here and this is the main number
Content-Type: application/sdp
Content-Length: 550
I have tried:
sendrpid = pai
trustrpid = no
Which almost get there, but not quite right:
P-Asserted-Identity: sip:0750014912@sipdeal.com.au, get error message
Assume the correct head add should be P-Asserted-Identity: sip:0750014900@sipdeal.com.au
Given up and tried to add dial plan:
Add the following to extentions_customer.conf to test
*[from-testing] *
exten => _07xxxxxxxx,1,SipAddHeader(P-Asserted-Identity: sip:0750014900@sipdeal.com.au )
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.