I’ve noticed that there are a few ways to set callerID on originated channels from ARI (both the name and the number). I’ve tried something like this:
http://asterisk:8088/ari/channels?endpoint=PJSIP/1000&app=asteriskTester&callerID=19055551243)
However that won’t show up in either a microsip extension or on the SBC. I also tried setting variables in the body. The docs imply that you can set CALLERID(name), so I tried this in the body:
"variables":{
"CALLERID(num)":"+19055551111",
"CALLERID(name)":"Alice_callerid"
}
Which also didn’t work, but this did:
"variables":{
"CONNECTEDLINE(num)":"+19055551212",
"CONNECTEDLINE(name)": "Alice_connectedline"
}
Giving me “From: “Alice_connectedline” sip:+19055551212@10.0.150.195;tag=6913fb03-edca-48db-b0fd-624ab62e9a03” on the SBC INVITE (although I didn’t see a p-asserted-identity header-not sure if this is ever required).
Is this expected behaviour? It appears to do what I want for my scenario, so I’m inclined to just run with it, but I’m wondering why those other callerID parameters didn’t do what I expected.