[Asterisk-dev] sip calleridnum

Olle E. Johansson oej at edvina.net
Fri Sep 30 02:48:23 MST 2005


Michal Olejnik wrote:
> I didn't get answer for my question on -users list so I try to get
> answer here. I have Asterisk 1.0.9, when INVITE contain "From: "1234
> <1234>" <sip:5678 at xxx;user=phone>;" ${CALLERIDNUM} is 1234. Is it
> correct or is it bug?
> 
Well, the sender told us to use the caller ID 1234, so it is not a bug.
It's like a mail reply-to header, even if the actual sender's address is
different, we use the reply-to to respond. SIP has a notion of AOR and
Contact addresses, the second address may be a temporary contact address
we should not use to call back.

Use the dialplan functions to retrieve the From: header if you want the
full address.

This is something we need to consider how to handle better for the next
generation SIP channel.

/O



More information about the asterisk-dev mailing list