Sipsorcery & callcentric with callerid

Found something wrong ?
shahram
Posts: 17
Joined: Sun Nov 18, 2012 8:11 pm

Sipsorcery & callcentric with callerid

Post by shahram » Sun Mar 24, 2013 3:04 am

Hello,

after having some NAT issues with some connections, I decided to create a connection between two accounts through callcentric, so account 1 calls the callcentric sip address that is associated with the 2nd account and connection is established with no sound issues,

however the call is being placed as anonymous, so I wanted send a number in the header as callerid, so the caller can be identified.

but the call fails going into voicemail, I contacted callcentric and they told me the call is being rejected by sipsorcery.

here is what was dialed

Code: Select all

177723xxxxx@in.callcentric.com[fd=3301]
and

Code: Select all

177723xxxxx@in.callcentric.com[fd=1631213xxxx]
and here is what callcentric says how it was rejected by sipsorcery

Code: Select all

1:32 AM Call 

00:32:43 Rx udp:67.222.131.147:5060 
SIP/2.0 403 Forbidden 
Via: SIP/2.0/UDP 204.11.192.160:5080;branch=z9hG4bK-ad684ae2690a48235686b135f20d8970;received=204.11
 .192.160;rport=5080 
To: <sip:177723xxxxx@ss.callcentric.com> 
From: <sip:3301@sipsorcery.com>;tag=TPDSXDQVXJ 
Call-ID: 94324e089e994f4a869c8c31097e378a 
CSeq: 1 INVITE 
Content-Length: 0 
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, REGISTER, SUBSCRIBE
 
1:33 AM Call 
00:34:03 Rx udp:67.222.131.147:5060 
SIP/2.0 403 Forbidden 
Via: SIP/2.0/UDP 204.11.192.160:5080;branch=z9hG4bK-a09d340a84ed57df07938f3bb640c04e;received=204.11
 .192.160;rport=5080 
To: <sip:177723xxxxx@ss.callcentric.com> 
From: <sip:1631213xxxx@sipsorcery.com>;tag=LSZQHMEICG 
Call-ID: 3495a438e82e4bf09b7ad93f87151d7a 
CSeq: 1 INVITE 
Content-Length: 0 
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, REGISTER, SUBSCRIBE 
how can I transfer a callerid to the final destination?
Last edited by shahram on Wed Jun 26, 2013 2:47 pm, edited 1 time in total.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Sipsorcery & callcentric with callerid

Post by Aaron » Sun Mar 24, 2013 11:21 am

The call is being rejected by the sipsorcery server because the incoming call from callcentric has sipsorcery.com in the From header and therefore it gets classified as requiring authentication.

To workaround you could do something like:

Code: Select all

17772325157@in.callcentric.com[fd=3301,fh=somedomain.com]

17772325157@in.callcentric.com[fd=1631213xxxx,fh=somedomain.com]

shahram
Posts: 17
Joined: Sun Nov 18, 2012 8:11 pm

Re: Sipsorcery & callcentric with callerid

Post by shahram » Sun Mar 24, 2013 12:25 pm

after they told me that I tried this, but since then somehow all my calls are ending up anonymous, whether I specified a number or not.

but thanks, i am gonna get hold of them asking if they can fix it.

shahram
Posts: 17
Joined: Sun Nov 18, 2012 8:11 pm

Re: Sipsorcery & callcentric with callerid

Post by shahram » Sun Mar 24, 2013 4:21 pm

ok this is strange, now I cant say where is the problem, there is no caller id

I contacted callcentric and they told me:
The caller ID that you receive is the same one that we receive. Unfortunately, there is nothing we can do regarding the caller ID that you are receiving.
when I dial

Code: Select all

177723xxxxx@in.callcentric.com[fd=1000]
or

Code: Select all

177723xxxxx@in.callcentric.com[fd=1000,fh=somedomain.com]
I get no caller id,

before this, callcentric was getting the callerid but was being forwarded to voicemail for the call being rejected!
now with no caller id, not even that is happening!

I dont know if they stopped processing the caller id or sipsorcery is not sending them anymore?

my dial out log says

Code: Select all

DialPlan 15:56:09:981 sip1(10360): Commencing Dial with: 177723xxxxx@in.callcentric.com[fd=1000,fh=somedomain.com]
can you send a caller id to callcentric or is it only me not being able to send it?
Last edited by shahram on Wed Jun 26, 2013 2:48 pm, edited 1 time in total.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Sipsorcery & callcentric with callerid

Post by Aaron » Mon Mar 25, 2013 10:33 am

I also don't get callerid passed through if I call my Callcentric number through in.callcentric.com. It's quite probable that Callcentric have deliberately designed their system like that and they only pass through callerid from trusted sources. Otherwise I could potentially call your Callcentric number from anywhere on the internet and trick you into thinking it was a trusted source calling such as by setting the caller ID to one of your family members or such.

Here's an example of a request I sent to my own Callcentric number:
tocallcentric.png
tocallcentric.png (37.28 KiB) Viewed 3893 times
And the incoming request coming back from Callcentric with the From header anonymised:
fromcallcentric.png
fromcallcentric.png (26.84 KiB) Viewed 3893 times

shahram
Posts: 17
Joined: Sun Nov 18, 2012 8:11 pm

Re: Sipsorcery & callcentric with callerid

Post by shahram » Tue Mar 26, 2013 3:23 am

I have been working with the nice guys at callcentric to get this fixed and finally here it is :)

I can pass through the callerid with:

Code: Select all

xxxxx@in.callcentric.com[fu=1000,fh=mydomain.com]
even though I was getting it done with fd initially and it was working, right now fd is being ignored and it only works if fu is set to a number.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Sipsorcery & callcentric with callerid

Post by Aaron » Tue Mar 26, 2013 9:06 am

That's great news, glad it's working. Coincidentally I was reading this thread today http://www.dslreports.com/forum/r281374 ... ng-issues- and saw mention that callcentric do employ some logic on callerid and I suspect that could have been playing a part in this issue as well.

shahram
Posts: 17
Joined: Sun Nov 18, 2012 8:11 pm

Re: Sipsorcery & callcentric with callerid

Post by shahram » Thu Mar 28, 2013 2:23 am

I glad it worked out in the end,

I was starting to think to use DBWrite and DBRead to pass the callerid from one plan to another,

passing it through callcentric would be easier and more accurate.

User avatar
Flip
Posts: 95
Joined: Sun Aug 19, 2012 3:53 am

Re: Sipsorcery & callcentric with callerid

Post by Flip » Mon May 30, 2016 2:51 pm

Hi Shahram/Aaron,
I don't quite understand the purpose of "[fu=1000,fh=mydomain.com]"??
Is "fh=mydomain.com" meant to be "sipsorcery.com"??
And is "fu=1000" meant to be "req.Header.From" ??

How do you set FU to a number? Or can it be *any* number?
Is this fix still applicable? :?:
Ta.
shahram wrote:I have been working with the nice guys at callcentric to get this fixed and finally here it is :)

I can pass through the callerid with:

Code: Select all

xxxxx@in.callcentric.com[fu=1000,fh=mydomain.com]
even though I was getting it done with fd initially and it was working, right now fd is being ignored and it only works if fu is set to a number.
ISP: Southern Phone ADSL2+ $55 Bundle. 22.4/1.2Mbps, GB Bundle [Telstra].
VSP: SIPTalk¹, Symbio² & MyNetFone³ via SIPSorcery Cloud PBX. [Warning! Avoid DIDLogic!!! Beware!!]
H/W: Asus RT-AC86U; Cisco SPA232D, 2 x SPA901's, SPA3102; Yealink SIP-T46G.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Sipsorcery & callcentric with callerid

Post by Aaron » Mon May 30, 2016 10:10 pm

Yes you can still use the fu and fh options in a dial string. The options are described here but in short they both allow you to manipulate a different part of the From header when you send a call. However the From header is used for authentication so if you find your calls get rejected with 401 or 403 responses then you broken it. Also not all providers allow the setting or arbitrary caller ID so even if you set different portions of the From header and the provider accepts it there is no guarantee they will apply that as the caller ID on a PSTN call.

Post Reply