[Asterisk-Users] mySQL-sipfriend dials to another SIP-endpoint - How to set the from-user

Roger Schreiter roger at planinternet.de
Wed Jan 26 14:59:37 MST 2005


Hi,

I have some mySQL-sipfriends and connectivity to PSTN.

When a call from PSTN comes, it shows a callerid,
and that callerid is displayed at the called sip phone.

When the call comes from another sip user (defined as
mySQL-sipfriend), no callerid is displayed at the called
sip phone.

I turned on sip debug and discovered, that in the last case
in the SIP-header to the called phone:
From: "Unknown" <sip:Unknown at ...

I put in a noOp(${CALLERID}) and found in both case reasonable
callerids.

I even set the callerid with setCallerID("test user"<12334>)
to absolute identical values:

When call comes from PSTN, those values are displayed in the
outgoing SIP header (and finally the called sip phone).

When call comes from SIP, there is still "unknown" displayed
in the outgoing SIP header (and nothing in the called sip phone).

How can I force chan_sip to use the values from ${CALLERID}?


Thanks for hints!

Roger.




More information about the asterisk-users mailing list