[Asterisk-Dev] sip trustrpid

Olle E. Johansson oej at edvina.net
Tue Nov 9 03:20:54 MST 2004


Richard wrote:

> Hi,
> 
> I have sip trustrpid enabled. If I make a call from sip phone to pstn, 
> the call pulls the right caller-id from “Remote-Party-ID” and sends out 
> to the carrier. It works perfectly.
> 
> I also use a SIP provider for long distance. When the sip call is sent 
> to the provider, * ignores the caller-id and uses the original display 
> name in the “From” header.
> 
> For example, if the sip call to * has a header field (From: "237" 
> <sip:237 at test.com>), the call from * to the sip provider uses (From: 
> “237” <sip:xxxxxx at sipprovider.com>). I’d like to have it use (From: 
> “8005551212” <sip:xxxxx at sipprovider.com>). So the provider can extract 
> the right caller id from the “from” field and send 8005551212 to PSTN.
> 
> Can someone point me the right direction? Where should I make the 
> change? I have searched in chan_sip.c and can’t find a place to modify it.
> 
* Will your SIP provider let you do this?
* Please show the sip.conf section for the sip provider

/O



More information about the asterisk-dev mailing list