I am working with Aastra and polycom phones, and trying to get ‘connectedline’ reverse caller-id to work properly with both.
im using asterisk 1.8.11-cert5 for my version…
in each peer i have
trustrpid=yes
sendrpid=pai
my dialplan sets the connectedline up as follows:
exten = s,n,Set(CONNECTEDLINE(all)=${IF( $[x${cblk} = x1]?0000000 <${goodname}>:${cidreceiver} <${goodname}>,i)})
exten = s,n,Set(CONNECTEDLINE(pres)=allowed)
what that does is use the asterisk DB to retrieve a name and sets the connectedline to that value…
here it is in the asterisk CLI in practice…
-- Executing [s@macro-ringphone:117] Set("SIP/72001-00000013", "CONNECTEDLINE(all)=72665 <polycom>,i") in new stack
-- Executing [s@macro-ringphone:118] Set("SIP/72001-00000013", "CONNECTEDLINE(pres)=allowed")
it set the number to 72665 and the name to polycom
now lets see what really happens in a sip history…
* SIP Call
1. Rx INVITE / 1 INVITE / sip:72665@172.16.1.189:5060
2. AuthChal Auth challenge sent for - nc 0
3. TxRespRel SIP/2.0 / 1 INVITE - 401 Unauthorized
4. SchedDestroy 7552 ms
5. Rx ACK / 1 ACK / sip:72665@172.16.1.189:5060
6. Rx INVITE / 2 INVITE / sip:72665@172.16.1.189:5060
7. CancelDestroy
8. Invite New call: Yzk0MWRiM2I0YmU1YWYwODc2YmY3YzJiZDI3NWRkMzE
9. AuthOK Auth challenge successful for 72001
10. NewChan Channel SIP/72001-00000013 - from Yzk0MWRiM2I0YmU1YWYwODc2YmY3Y
11. TxResp SIP/2.0 / 2 INVITE - 100 Trying
12. ConnectedLine Called party is now 72665 <polycom>
13. ConnectedLine Called party is now 72665 <polycom>
14. TxRespRel SIP/2.0 / 2 INVITE - 200 OK
15. Rx ACK / 2 ACK / sip:72665@172.16.1.189:5060
16. ConnectedLine Called party is now 72665 <72665>
17. TxReqRel INVITE / 102 INVITE - INVITE
18. ConnectedLine Calling party is now 72665 <72665>
19. Rx SIP/2.0 / 102 INVITE / 200 OK
20. TxReq ACK / 102 ACK - ACK
21. ReInv Re-invite sent
22. TxReqRel INVITE / 103 INVITE - INVITE
23. Rx SIP/2.0 / 103 INVITE / 200 OK
24. TxReq ACK / 103 ACK - ACK
you can see in steps 12 and 13 the connectedline was set to the correct name ‘polycom’
however in step 16 and 18 the name is lost and is reverted to whatever is in the 'fullname = ’ of the peer… in this case 'fullname = ’ is what set there. in an intent to delete fullname altogether…
if I leave out the fullname parameter in the peer I get ‘new user’…
so my question is how can I either
1] change fullname = in the dialplan??
2] get rid of the extra connectedline settings…
with aastra if I pout an ‘I’ in my dialplan it will work, however polycom will not get any updates…
-Christopher