[Asterisk-Users] Caller-ID is being sent wrong. How to fix it?
Olle E. Johansson
oej at edvina.net
Sun Feb 8 01:22:54 MST 2004
Vic Cross wrote:
>
> On Sat, 7 Feb 2004, John Fraizer wrote:
>
> <snip all the trace data>
>
>
>>Here are the configs:
>>
>>;
>>; SIP Configuration for Asterisk
>>;
>>[general]
>>port = 5060 ; Port to bind to
>>bindaddr = 66.35.64.38 ; Address to bind to
>>context = default ; Default for incoming calls
>>srvlookup = yes ; Enable SRV lookups on outbound calls
>>
>>
>>[100]
>>type=friend
>>username=100
>>secret=secret
>>host=dynamic
>>fromuser=100
>>mailbox=100
>>context=allaccess
>>canreinvite=yes
>>dtmfmode=rfc2833
>>nat=yes
>>
>>[2288888]
>>type=friend
>>username=2288888
>>secret=secret
>>host=dynamic
>>fromuser=2288888
>>mailbox=100
>>context=allaccess
>>canreinvite=yes
>>dtmfmode=rfc2833
>>nat=yes
>>
>>[2222]
>>type=friend
>>username=2222
>>secret=secret
>>host=dynamic
>>fromuser=2222
>>context=allaccess
>>canreinvite=yes
>>dtmfmode=rfc2833
>>nat=yes
>
>
>
> Remove "fromuser=" from your SIP statements. This overrides the caller-id
> data received with whatever is stated in fromuser -- Asterisk is doing
> exactly what you told it to. ;-)
To explain a bit more:
Fromuser= and fromdomain= is used to specify the caller when calling this
device. This is used when we're calling a SIP proxy that requires a specific
fromuser/domain in addition to an authentication.
/Olle
More information about the asterisk-users
mailing list