[Asterisk-Users] Setting SIP username for CallerID

Gavin Hamill gdh at laterooms.com
Wed Apr 20 02:17:18 MST 2005


Hi :)

When I send an incoming call to a queue, I'm doing this:

exten => 6608140,1,SetCallerID(CCUK)
exten => 6608140,2,SetCIDName(CCUK)
exten => 6608140,3,Queue(ccuk,r)

I want the phone to say 'CCUK' - the queue name is more important to know than 
the incoming Caller ID :)

Unfortunately the SIP phone (a cheapy using the PA168S chip and 1.42 firmware) 
displays the caller ID of "asterisk" when I do this, and it's clear why:

---
    -- outgoing agentcall, to agent '1601', on 'Local/1301 at internal-9175,1'
    -- Called Agent/1601
    -- Executing Dial("Local/1301 at internal-9175,2", "SIP/1301|20|t") in new 
stack
We're at 10.0.0.242 port 15334
12 headers, 12 lines
Reliably Transmitting (NAT) to 10.0.0.82:5060:
INVITE sip:1301 at 10.0.0.82:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.242:5060;branch=z9hG4bK70ccd454;rport
From: "CCUK" <sip:asterisk at 10.0.0.242>;tag=as13d91518
To: <sip:1301 at 10.0.0.82:5060>
Contact: <sip:asterisk at 10.0.0.242>
Call-ID: 3839ea357eba10bf3a4eb3ec75f7d4cb at 10.0.0.242
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Wed, 20 Apr 2005 08:34:53 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 260

If I SetCallerID(12345678) then it is changed to sip:12345678 at 10.0.0.242 as 
I'd expect, but if I use a string value, it stays at 
'sip:asterisk at 10.0.0.242'

So my question is, how can I change the sip username from 
<sip:asterisk at 10.0.0.242> to <sip:CCUK at 10.0.0.242> ?

Am I doing something mind-bogglingly stupid?

Cheers,
Gavin.




More information about the asterisk-users mailing list