Asterisk Callerid Issue PJSIP Realtime
I recently rolled out a new server with asterisk 14. On the Called user phone, the caller ID is the same as the Called User. eg) ext 406 with callerid 406 calls ext 405 , on the caller id on the ext 405 phone displaying 405.
We are using realtime PJSIP, I set the callerid field in the database but no luck.
– Executing [405@common:1] NoOp(“PJSIP/406-0000000f”, “”DEBUGGING PJSIP CLID””) in new stack
– Executing [405@common:2] NoOp(“PJSIP/406-0000000f”, “CALLERID = “ross” <406>“) in new stack- Executing [405@common:3] Dial(“PJSIP/406-0000000f”, “PJSIP/405”) in new stack In the above dialplan, the callerid is been taken from the database PJSIP endpoints.
Here is the sip debugger files INVITE sip:405@192.168.1.27 SIP/2.0Via: SIP/2.0/UDP 192.168.1.82:5060;branch=z9hG4bK714210067;rportFrom: “zak”
INVITE sip:405@192.168.1.209:36767;ob SIP/2.0Via: SIP/2.0/UDP 197.245.99.113:5060;rport;branch=z9hG4bKPj2f9d3dde-5ec4-49e1-b92d-7b4091b3138bFrom:
<--- Received SIP response (515 bytes) from UDP:192.168.1.209:36767 --->SIP/2.0 180 RingingVia: SIP/2.0/UDP 197.245.99.113:5060;rport=5060;received=192.168.1.27;branch=z9hG4bKPj70fb8ef9-d99c-4e5b-88a5-eecbf7dd7682Call-ID: f0b31a86-0ac3-47f0-8b13-487d54982e9bFrom:
ParameterName : ParameterValue ========================================================= callerid : “john doe” <405> callerid_privacy : allowed callerid_tag :
Zakir
3 thoughts on - Asterisk Callerid Issue PJSIP Realtime
On 405’s endpoiint, you’re not forcing from_user to 405 are you?
Yes, from_user was set, removing those entries solved the problem. Can someone please explain to me the correct use for fromuser field?
thanksZakir
On 405’s endpoiint, you’re not forcing from_user to 405 are you?
from_user forces the user portion of the From header to a specific value on calls that go TO the device represented by the endpoint. Most often it’s used with a service provider when the service provider requires that all calls it accepts have some sort of account identifier in the From header instead of the original caller’s info. I can’t think of a scenario where you’d need to use from_user with a phone.