Skip to main content

Click to dial

Posted by kyriakos on Wed, 02/27/2008

Hello,
when using click to dial functionality of the user interface in Contacts & Directory tab, the called phone is not displaying Caller id but instead is showing "Anonymous".
Example call from user with extension 390 clicking to dial 314.

-- Executing [314@from-inside:1] Macro("SIP/390-00713830", "tl-set-variables2|from-inside-redir") in new stack
-- Executing [s@macro-tl-set-variables2:1] Set("SIP/390-00713830", "__tenant=") in new stack
-- Executing [s@macro-tl-set-variables2:2] Set("SIP/390-00713830", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-set-variables2:3] Set("SIP/390-00713830", "__MOH=fastplusad200802") in new stack
-- Executing [s@macro-tl-set-variables2:4] GotoIf("SIP/390-00713830", "1 ?setmoh") in new stack
-- Goto (macro-tl-set-variables2,s,6)
-- Executing [s@macro-tl-set-variables2:6] SetMusicOnHold("SIP/390-00713830", "fastplusad200802") in new stack
-- Executing [s@macro-tl-set-variables2:7] Goto("SIP/390-00713830", "from-inside-redir|314|1") in new stack
-- Goto (from-inside-redir,314,1)
== Channel 'SIP/390-00713830' jumping out of macro 'tl-set-variables2'
-- Executing [314@from-inside-redir:1] Macro("SIP/390-00713830", "tl-stdexten|SIP/314|314|") in new stack
-- Executing [s@macro-tl-stdexten:1] Set("SIP/390-00713830", "__DIALED_NUMBER=314") in new stack
-- Executing [s@macro-tl-stdexten:2] GotoIf("SIP/390-00713830", "0?doingringgroup") in new stack
-- Executing [s@macro-tl-stdexten:3] Macro("SIP/390-00713830", "tl-userexten-base|SIP/314|314|") in new stack
-- Executing [s@macro-tl-userexten-base:1] GotoIf("SIP/390-00713830", "1?set_options") in new stack
-- Goto (macro-tl-userexten-base,s,7)
-- Executing [s@macro-tl-userexten-base:7] Set("SIP/390-00713830", "OPTIONS=rtT") in new stack
-- Executing [s@macro-tl-userexten-base:8] Set("SIP/390-00713830", "THISEXT=TL/314") in new stack
-- Executing [s@macro-tl-userexten-base:9] Set("SIP/390-00713830", "_CLIMYID=314") in new stack
-- Executing [s@macro-tl-userexten-base:10] Set("SIP/390-00713830", "THISCHAN=TL/314") in new stack
-- Executing [s@macro-tl-userexten-base:11] GotoIf("SIP/390-00713830", "0?beenhere") in new stack
-- Executing [s@macro-tl-userexten-base:12] Set("SIP/390-00713830", "_ORIG_EXTEN=314") in new stack
-- Executing [s@macro-tl-userexten-base:13] Macro("SIP/390-00713830", "tl-notify") in new stack
-- Executing [s@macro-tl-notify:1] Set("SIP/390-00713830", "ADDRESS=") in new stack
-- Executing [s@macro-tl-notify:2] NoOp("SIP/390-00713830", "TL/314") in new stack
-- Executing [s@macro-tl-notify:3] GotoIf("SIP/390-00713830", "1?s-exit|1") in new stack
-- Goto (macro-tl-notify,s-exit,1)
-- Executing [s-exit@macro-tl-notify:1] MacroExit("SIP/390-00713830", "") in new stack
-- Executing [s@macro-tl-userexten-base:14] Goto("SIP/390-00713830", "checkformat") in new stack
-- Goto (macro-tl-userexten-base,s,16)
-- Executing [s@macro-tl-userexten-base:16] GotoIf("SIP/390-00713830", "1?cont1") in new stack
-- Goto (macro-tl-userexten-base,s,18)
-- Executing [s@macro-tl-userexten-base:18] Set("SIP/390-00713830", "RECORD_CALLEE=") in new stack
-- Executing [s@macro-tl-userexten-base:19] Set("SIP/390-00713830", "MY_CHAN=390-00713830") in new stack
-- Executing [s@macro-tl-userexten-base:20] Set("SIP/390-00713830", "MYEXTENSION=390") in new stack
-- Executing [s@macro-tl-userexten-base:21] Set("SIP/390-00713830", "MYID=390") in new stack
-- Executing [s@macro-tl-userexten-base:22] NoOp("SIP/390-00713830", "390") in new stack
-- Executing [s@macro-tl-userexten-base:23] NoOp("SIP/390-00713830", "390") in new stack
-- Executing [s@macro-tl-userexten-base:24] Set("SIP/390-00713830", "RECORD_CALLER=2") in new stack
-- Executing [s@macro-tl-userexten-base:25] Set("SIP/390-00713830", "VM=1") in new stack
-- Executing [s@macro-tl-userexten-base:26] Set("SIP/390-00713830", "VMT0=30") in new stack
-- Executing [s@macro-tl-userexten-base:27] Set("SIP/390-00713830", "CFNAEXT=0") in new stack
-- Executing [s@macro-tl-userexten-base:28] Set("SIP/390-00713830", "CFNAAN=") in new stack
-- Executing [s@macro-tl-userexten-base:29] GotoIf("SIP/390-00713830", "0?done_checkrecord") in new stack
-- Executing [s@macro-tl-userexten-base:30] GotoIf("SIP/390-00713830", "1?check_caller") in new stack
-- Goto (macro-tl-userexten-base,s,32)
-- Executing [s@macro-tl-userexten-base:32] GotoIf("SIP/390-00713830", "1?check_if_record") in new stack
-- Goto (macro-tl-userexten-base,s,34)
-- Executing [s@macro-tl-userexten-base:34] GotoIf("SIP/390-00713830", "1?check_onetouch") in new stack
-- Goto (macro-tl-userexten-base,s,38)
-- Executing [s@macro-tl-userexten-base:38] GotoIf("SIP/390-00713830", "1?check_caller_onetouch") in new stack
-- Goto (macro-tl-userexten-base,s,41)
-- Executing [s@macro-tl-userexten-base:41] GotoIf("SIP/390-00713830", "0?check_if_onetouch") in new stack
-- Executing [s@macro-tl-userexten-base:42] Set("SIP/390-00713830", "OPTIONS=rtTW") in new stack
-- Executing [s@macro-tl-userexten-base:43] Set("SIP/390-00713830", "FNAME=out") in new stack
-- Executing [s@macro-tl-userexten-base:44] GotoIf("SIP/390-00713830", "0?done_checkrecord") in new stack
-- Executing [s@macro-tl-userexten-base:45] Set("SIP/390-00713830", "TOUCH_MONITOR_FORMAT=wav49") in new stack
-- Executing [s@macro-tl-userexten-base:46] Set("SIP/390-00713830", "TOUCH_MONITOR=out-314-2008-02-27-12:29:24-") in new stack
-- Executing [s@macro-tl-userexten-base:47] NoOp("SIP/390-00713830", "") in new stack
-- Executing [s@macro-tl-userexten-base:48] NoOp("SIP/390-00713830", "") in new stack
-- Executing [s@macro-tl-userexten-base:49] NoOp("SIP/390-00713830", "2") in new stack
-- Executing [s@macro-tl-userexten-base:50] NoOp("SIP/390-00713830", "rtTW") in new stack
-- Executing [s@macro-tl-userexten-base:51] NoOp("SIP/390-00713830", "out-314-2008-02-27-12:29:24-") in new stack
-- Executing [s@macro-tl-userexten-base:52] Set("SIP/390-00713830", "TIMEOUT=30") in new stack
-- Executing [s@macro-tl-userexten-base:53] GotoIf("SIP/390-00713830", "1?next1") in new stack
-- Goto (macro-tl-userexten-base,s,55)
-- Executing [s@macro-tl-userexten-base:55] Set("SIP/390-00713830", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-userexten-base:56] Set("SIP/390-00713830", "SCREEN=") in new stack
-- Executing [s@macro-tl-userexten-base:57] GotoIf("SIP/390-00713830", "1?getblock") in new stack
-- Goto (macro-tl-userexten-base,s,62)
-- Executing [s@macro-tl-userexten-base:62] Set("SIP/390-00713830", "BLOCK=") in new stack
-- Executing [s@macro-tl-userexten-base:63] GotoIf("SIP/390-00713830", "1?getrecord") in new stack
-- Goto (macro-tl-userexten-base,s,67)
-- Executing [s@macro-tl-userexten-base:67] Set("SIP/390-00713830", "RECORD=") in new stack
-- Executing [s@macro-tl-userexten-base:68] NoOp("SIP/390-00713830", "calleridnum= ") in new stack
-- Executing [s@macro-tl-userexten-base:69] GotoIf("SIP/390-00713830", "1?screening") in new stack
-- Goto (macro-tl-userexten-base,s,100)
-- Executing [s@macro-tl-userexten-base:100] GotoIf("SIP/390-00713830", "1?recording") in new stack
-- Goto (macro-tl-userexten-base,s,125)
-- Executing [s@macro-tl-userexten-base:125] GotoIf("SIP/390-00713830", "1?forwarding") in new stack
-- Goto (macro-tl-userexten-base,s,127)
-- Executing [s@macro-tl-userexten-base:127] Set("SIP/390-00713830", "FORWARD=0") in new stack
-- Executing [s@macro-tl-userexten-base:128] GotoIf("SIP/390-00713830", "1?notforwarded") in new stack
-- Goto (macro-tl-userexten-base,s,134)
-- Executing [s@macro-tl-userexten-base:134] Set("SIP/390-00713830", "FORWARD=0") in new stack
-- Executing [s@macro-tl-userexten-base:135] ChanIsAvail("SIP/390-00713830", "SIP/314") in new stack
-- Executing [s@macro-tl-userexten-base:136] GotoIf("SIP/390-00713830", "0?s-NA|1") in new stack
-- Executing [s@macro-tl-userexten-base:137] Set("SIP/390-00713830", "TIMEOUT=30") in new stack
-- Executing [s@macro-tl-userexten-base:138] GotoIf("SIP/390-00713830", "1?havetimeout") in new stack
-- Goto (macro-tl-userexten-base,s,140)
-- Executing [s@macro-tl-userexten-base:140] GotoIf("SIP/390-00713830", "0?s-NA|1") in new stack
-- Executing [s@macro-tl-userexten-base:141] GotoIf("SIP/390-00713830", "1?dial") in new stack
-- Goto (macro-tl-userexten-base,s,146)
-- Executing [s@macro-tl-userexten-base:146] Dial("SIP/390-00713830", "SIP/314|30|rtTW") in new stack

This is the sip debug of the invite message to the called phone:
Audio is at 10.30.20.1 port 13294
Adding codec 0x8 (alaw) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 10.30.20.191:5060:
INVITE sip:314@10.30.20.191:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.30.20.1:5060;branch=z9hG4bK39fa38d5;rport
From: "anonymous" ;tag=as62e0f66f
To:
Contact:
Call-ID: 48781ba8124ed3f07a0f85d56655b7df@10.30.20.1
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 27 Feb 2008 10:34:30 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 233

v=0
o=root 14559 14559 IN IP4 10.30.20.1
s=session
c=IN IP4 10.30.20.1
t=0 0
m=audio 13294 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

Clearly the "From" header does not contain the caller id of the user placing the call. This should be fixed.

Thanks
KM