CallerID in blank

Hello all,

I’'m helping with Coccinella support for Asterisk-IM.

The Presence seems to work, and now we are trying call notification. Making some debugs I can see that Asterisk-IM doesn’'t get the CallerID, just the Coccinella receives this messages

phone-event {device SIP/10101 callID 1133444197.24 type RING xmlns http://jivesoftware.com/xmlns/phone} 0 {} {{callerID {} 0 10101 {}}}

In this scenario there is one Asterisk user (10102) that calls to 10101 the Coccinella one. I don’'t know why the callerID is null??. The phone gets right callerID.

I played with setting into CallerID option of the Asterisk-IM phone mapping, and into the Asterisk Dialplan (SetCIDName and SetCIDNum). Anyway the result is the same… a ‘‘Blank CallerID’’.

Someone has any idea of what can be happing? Any suggestion is welcome, I don’'t know where to go now

Thanks

Could you make sure that the callerid information is coming across through asterisk manager?

You can connect to asterisk manager by doing the following:

telnet {asterisk server} 5038

type in the following:

action: Login

username: {manager user}

secret: {manager password

Well, here is a more detail debug info. The example is for a call make from 10102 to 10101, in the called phone (10101) i can see the correct CID info (agustin, 10102).

My Asterisk version is 1.2, the Jive messenger and Asterisk-im is the latest stable from this site.

That is my dialplan setup:

exten => 10101,1,SetCIDNum(10102)

exten => 10101,2,SetCIDName(agustin)

exten => 10101,3,Dial(SIP/10101,20,r)

exten => 10102,1,SetCIDNum(10101)

exten => 10102,2,SetCIDName(antoniofcano)

exten => 10102,3,Dial(SIP/10102,20,r)

And here is the Received message from Asterisk-IM:

It sets the CID of the called number and not of the phone that originates the call…

And the Manager output is that:

Event: Newchannel

Privilege: call,all

Channel: SIP/10102-c84d

State: Ring

CallerID: 10102

CallerIDName: agustin

Uniqueid: 1133898126.33

Event: ExtensionStatus

Privilege: call,all

Exten: 10102

Context: ext-local

Status: 1

Event: Newexten

Privilege: call,all

Channel: SIP/10102-c84d

Context: from-internal

Extension: 10101

Priority: 1

Application: SetCIDNum

AppData: 10102

Uniqueid: 1133898126.33

Event: Newcallerid

Privilege: call,all

Channel: SIP/10102-c84d

CallerID: 10102

CallerIDName: agustin

Uniqueid: 1133898126.33

CID-CallingPres: 0 (Presentation Allowed, Not Screened)

Event: Newexten

Privilege: call,all

Channel: SIP/10102-c84d

Context: from-internal

Extension: 10101

Priority: 2

Application: SetCIDName

AppData: agustin

Uniqueid: 1133898126.33

Event: Newcallerid

Privilege: call,all

Channel: SIP/10102-c84d

CallerID: 10102

CallerIDName: agustin

Uniqueid: 1133898126.33

CID-CallingPres: 0 (Presentation Allowed, Not Screened)

Event: Newexten

Privilege: call,all

Channel: SIP/10102-c84d

Context: from-internal

Extension: 10101

Priority: 3

Application: Dial

AppData: SIP/10101|20|r

Uniqueid: 1133898126.33

Event: Newchannel

Privilege: call,all

Channel: SIP/10101-4fb2

State: Down

CallerID:

Uniqueid: 1133898126.34

Event: ExtensionStatus

Privilege: call,all

Exten: 10101

Context: ext-local

Status: 8

What could it be? A problem of my Asterisk config? One bug in asterisk-im? A missconfigured option into asterisk-im?

I’‘m really confused and don’'t have any idea

Thanks for all,

PS: The support of Coccinella for asterisk-im is in advanced state, we have all features (presence notify, call origination, call forwarding and inbound notification) coded, and upload into the CVS version, now we are making tests.

I created the issue PHONE-42 so that I can research this more.

I read your post very briefly, but I think it might be related to a new behaviour

of * 1.2.0 Dial() app.

Look for the section about the ‘‘o’’ option:

http://www.voip-info.org/wiki-Asteriskcmddial

Hello Joss

Big thanks, it seems that you found the problem and solution

Just add to my Dial parameters the ‘‘o’’ option and goes fine.

Thanks for your time,