Koozali.org: home of the SME Server

Outbound CallerId on sip-trunk

Offline frederik

  • *
  • 9
  • +0/-0
Outbound CallerId on sip-trunk
« on: September 29, 2009, 09:57:54 PM »
Hi,

sail-2.3.2-12

My sip-provider screened my pstn-number so i could sent my pstn-number as callerid over my sip-trunk.

On my sip-trunk i set the outbound clid with my pstn-number, but i can't get it displayed if i make a outgoing call over the sip-trunk.

My sip-provider tells me that the callerid isn't send ...

F.


Offline frederik

  • *
  • 9
  • +0/-0
Re: Outbound CallerId on sip-trunk
« Reply #1 on: September 30, 2009, 12:33:14 PM »
SOLVED :

sip.conf :
[voip-provider]
...
sendrpid=yes


F.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Outbound CallerId on sip-trunk
« Reply #2 on: October 01, 2009, 01:04:53 AM »
Nice

There is actually a bug tho' in the SARK code.  You should be able to load your own CLID but right now it only works for Digital (i.e ISDN) trunks.

Kind Regards

S
 


Offline PWDasterisk

  • ***
  • 56
  • +0/-0
Re: Outbound CallerId on sip-trunk
« Reply #3 on: October 02, 2009, 02:25:42 AM »
I played with this issue when writing a custom app to capture inbound Caller ID and then push it out on a SIP trunk to a cell phone so the original caller info wasn't lost...

I had luck by including BOTH the following in the Trunk Definition:
trustrpid=yes
sendrpid=yes

and in a Custom App by using the following:
exten => _*000X,1,Set(CALLERID(name)="WHOMEVER")
exten => _*000X,n,Set(CALLERID(num)=1234567890)
exten => _*000X,n,SIPAddHeader(P-Asserted-Identity:"${CALLERID(name)}"<${CALLERID(num)}>)
exten => _*000X,n,Dial(SIP/${CELL}@${PROVIDER},,,)

I got this to work with some SIP Carriers that stated Caller ID couldn't be set by the endpoint.
« Last Edit: October 02, 2009, 02:39:42 AM by PWDasterisk »
if at first you don't succeed then keep on reading until you do succeed...

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Outbound CallerId on sip-trunk
« Reply #4 on: October 02, 2009, 11:02:15 AM »
Cool,

I'll make a note in the Wiki and we'll get around to fixing the CLID SIP bug

:)

Best

S