Hello! First excellent job on the plugin! Very cool stuff! However, I''m having some issues and I think deep down its an Asterisk problem but since it directly effects Asterisk-IM I wanted to post here for some feedback.
Here is an excerpt of my asterisk extensions config. Basically 847-555-1111 is the number the caller dialed. Lets say the caller''s ANI is 847-555-2222:
exten => +18475551111,1,Macro(dialfromdid,1019,SIP/1019)
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Playback(directgreeting)
exten => s,n,Playback(voicemail/default/$/greet) exten => s,n,Dial($,20,m) exten => s,n,Voicemail(u$)
exten => s,n,Hangup
exten => s,n+BUSY,Voicemail(b$)
exten => s,n+BUSY,Hangup
Now when it rings to our sip handset the caller id is correct. If we query the $ channel variable, the value is correct (+18475552222). Here is a debug from the manager: Event: Dial Privilege: call,all Source: SIP/10.2.0.113-b7e00480 Destination: SIP/1019-0941 CallerID: +18475552222 CallerIDName: +18475552222 SrcUniqueID: 1124725101.330 DestUniqueID: 1124725110.331 Event: Newcallerid Privilege: call,all Channel: SIP/1019-0941 CallerID: +18475551111 CallerIDName: <Unknown> Uniqueid: 1124725110.331 CID-CallingPres: 0 (Presentation Allowed, Not Screened) Event: Newchannel Privilege: call,all Channel: SIP/1019-0941 State: Ringing CallerID: +18475551111 CallerIDName: <unknown> Uniqueid: 1124725110.331 As you can see, the Dial even contains the correct Caller ID information, the NewChannel even however does not. When I receive the message packet in jabber: <message from="phone.messenger.openfax.com" to="email@example.com"> <phone-event xmlns="http://jivesoftware.com/xmlns/phone" callID="1124725110.331" type="RING" device="SIP/1019"> <callerID>+18475551111</callerID> </phone-event> </message> So from what I can tell, the plugin (through the asterisk/java api) is getting the "NewChannel" event for the message packet and asterisk is using the exten as the CallerID instead of the $ from the originating channel. Any thoughts?