Isdn gateway callerid problem

hello all,

i have finally made my configuration lancom isdn router and freepbx working (see post http://www.freepbx.org/forum/freepbx/users/solved-freepbx-with-lancom-router )

one problem remains. the callerid of external callers gets lost somewhere. the lancom router is connected with a sip-gateway line to the asterisk and autheticates itself with user 1823.

the following trace of the lancom shows that the callerid is correctly determined and transferred.

i have replaced my callerid with 0172-my-phone-number
—snip
[Callmanager] 2009/12/23 10:13:03,390 [ISDN-LINE] : - info : convert called MSN ‘140519912’ to called-id ‘12’
[Callmanager] 2009/12/23 10:13:03,390 [ISDN-LINE] : -----[ CONNECT, call-id=301836, plci=0XE3C
[Callmanager] 2009/12/23 10:13:03,390 [VCM] : -----[ CALL INDICATION, call-id=301836
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : Src [email protected]
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : Source : [email protected]
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : Destination : [email protected]
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : number is complete
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : parse call routing table for active entries
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : using routing entry in row # 2
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : first/single way destination [email protected] via ASTERISK-GTW
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : proceeding call
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : -----[ INITIATE CALLS, call-id=301836
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : initiate call to [email protected]
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : outgoing line is ASTERISK-GTW
[Callmanager] 2009/12/23 10:13:03,410 [VCM] : - info : called number is complete
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : -----[ INITIATE CALL, call-id=301836
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : -----[ CALL PROCEEDING INDICATION, call-id=301836
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : - info : Src [email protected]
[Callmanager] 2009/12/23 10:13:03,430 [ISDN-LINE] : -----[ CALL PROCEEDING REQUEST, call-id=301836, plci=0XE3C
[Callmanager] 2009/12/23 10:13:03,430 [ISDN-LINE] : - info : plci=0XE3C
[Callmanager] 2009/12/23 10:13:03,430 [SIP-Provider] : -----[ INITIATE CALL, call-id=301836
[Callmanager] 2009/12/23 10:13:03,430 [SIP-Provider] : Source : [email protected]
[Callmanager] 2009/12/23 10:13:03,430 [SIP-Provider] : Destination : [email protected]
[Callmanager] 2009/12/23 10:13:03,430 [SIP-Provider] : - info : line ‘ASTERISK-GTW’ operates is gateway mode
[Callmanager] 2009/12/23 10:13:03,430 [SIP-Provider] : - info : convert dst-number ‘12’ -> ‘12’
[Callmanager] 2009/12/23 10:13:03,430 [SIP-Provider] : - info : complete
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : -----[ INFO IS COMPLETE, call-id=301836
[Callmanager] 2009/12/23 10:13:03,430 [ISDN-LINE] : -----[ INFO COMPLETE REQUEST, call-id=301836, plci=0XE3C
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : - info : called address is complete
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : - info : Line: ‘ASTERISK-GTW’
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : - info : Source : ‘[email protected]
[Callmanager] 2009/12/23 10:13:03,430 [VCM] : - info : Destination : ‘[email protected]
[Callmanager] 2009/12/23 10:13:03,440 [SIP-Provider] : -----[ GENERATE INVITE, call-id=301836
[SIP-Packet] 2009/12/23 10:13:03,440 [PACKET] :
Sending datagram with length 956 from 192.168.1.200:20597 to 192.168.1.66:5060
INVITE sip:[email protected] SIP/2.0\r\n
Via: SIP/2.0/UDP 192.168.1.200:20597;branch=z9hG4bK-67536460-7571fb0e\r\n
From: sip:[email protected];user=phone;tag=535113160–1966406035\r\n
To: sip:[email protected];user=phone\r\n
Call-ID: [email protected]\r\n
CSeq: 1 INVITE\r\n
Max-Forwards: 70\r\n
Server: lancom\r\n
Allow: REGISTER, INVITE, ACK, CANCEL, BYE, REFER, NOTIFY, OPTIONS\r\n
Contact: sip:[email protected]:20597\r\n
Remote-Party-ID: sip:[email protected];user=phone;screen=yes;party=calling;privacy=off\r\n
Content-Type: application/sdp\r\n
Content-Length: 409\r\n
—snip

my problem is, that always 1823 is shown as callerid. does freepbx not interprete the “Remote-Party-ID: sip:[email protected];user=phone;screen=yes;”??
Any ideas how i can fix this?is it possible to use the rpid as callerid?if so, how can i do it?

regards
christian

what i’ve found is the following

exten => _+.,1,Set(CID(number)=${CID(number):1})

does anyone know the variable name of the rpid? i guess that
Set(CID(number)=${whatever_rpid_is:1}) should work

any ideas???

I have the same problem with Lancom 1723. I tried adding trustrpid=yes but the problem is still there. Did you found a solution?

I will perhaps try to migrate from Asterisk 1.4 to 1.6. What version of Asterisk do you use?

I have found the solution… the configuration proposed by Lancom was half-right. If you’re interrested I can give you the How-To

Hi,

Could you post the solution you have?