[asterisk-users] Strange NewCallerIDEvent after channel are linked

Tobias Wolf tobias.wolf at evision.de
Wed Feb 20 12:08:35 CST 2008


Hi all,

just for learning purposes i made a little gui frontend that visualizes 
incoming and outgoing calls in realtime, using the events of asterisk.

I experienced a strange behaviour for outgoing calls. The callerid for 
the *called* person got changed to one of my own numbers, after the 
channels git linked.

After looking into the flow of events i saw that asterisk keeps sending 
an NewCallerID Event *after* the Linked Event.

See below:

1) NewChannel: Myself the Caller
2) some NewExten Events
3) NewCallerID: I set my CallerID to e.g. 111
4) NewExten: The Execution of the Dial App
5) NewChannel: The Channel for the Callee, the Callerid is set to an 
value from a former Call
6) NewState: Channel of the Callee is in Dialing State
7) Dial: The two Channels gets to know each other
8) NewCallerID: At this point the number i have dialed it set in the 
Callee Channel
9) NewState: The Callee rings
10) NewState: The Callee channel is up
11) NewState: The Caller channel is up
12) Linked: The two channels are linked
13) NewCallerId: Another NewCallerId Event for the Callee Channel. From 
where the value comes, i have no clue, it is not the value from 3) but 
everytime a number of my own numberrange (actually the first digit is 
stripped).
... The Rest of the Events a normal.

 From 1) to 12) everything is understandable and clear. But why 13) 
occurs, i don't know.

I am using Asterisk 1.2.9.1-BRIstuffed-0.3.0-PRE-1q.

I know its a little bit old, but does someone know if there was an issue 
with callerid events? Or is it possible that i have screwed up my 
configuration and since i didn't watched the events for callee channels 
didn't recognized.

Kind Regards,
-- 

   Tobias Wolf




More information about the asterisk-users mailing list