Skyetel: Set "From:" and "P-Asserted-Identity" headers

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby Cyberwolf2 » Mon May 10, 2021 8:47 pm

Install from scratch
Asterisk PBX 13.29.2 built by root
Vicidial: VERSION: 2.14-675a BUILD: 180520-1749
Cent OS 7, Google Cloud VM, e2-medium (2 vCPUs, 4 GB memory), Intel Broadwell
VOIP Provider: Skyetel

The problem is that I cant dial out to most numbers. The ones that don't go thru give a congested error. The caller ID is all screwed up of the few numbers I can dial to. I contacted Skyetel and they tell me that the issue is on the caller ID not being set when dialing out.

Specifically they are looking for the INVITE packet to contain a "From" and "P-Asserted-Identity" header with proper caller ID, whereas my INVITE packets have the "FROM" header with the channel and username.
This is what they said: https://pasteboard.co/K1kmi5r.jpg
Link to topic in their knowledgebase: https://support.skyetel.com/hc/en-us/articles/360041815633-Outbound-Caller-ID

My Account Entry:
Code: Select all
[SKYETELOUT]
type=friend
qualify=yes
username=7h0xbykg2oj3
fromuser=7h0xbykg2oj3
secret= SECRETREMOVED
host=term.reg.skyetel.com
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=g722
allow=ulaw


My Dialplan:
Code: Select all
exten => _775X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _775X.,n,Dial(SIP/1${EXTEN:3}@SKYETELOUT,55,tToR)
exten => _775X.,n,Hangup()


My INVITE packet, where as: https://pasteboard.co/K1m2FgA.png
"From: "M5110034130000000131" <sip:7h0xbykg2oj3@SERVERIPREMOVED>;tag=as634decd3" and no "P-Asserted-Identity'

Code: Select all
INVITE sip:12403403843@term.reg.skyetel.com SIP/2.0
Via: SIP/2.0/UDP SERVERIPREMOVED;branch=z9hG4bK2c033845;rport
Max-Forwards: 70
From: "M5110034130000000131" <sip:7h0xbykg2oj3@SERVERIPREMOVED>;tag=as634decd3
To: <sip:12403403843@term.reg.skyetel.com>
Contact: <sip:7h0xbykg2oj3@SERVERIPREMOVED>
Call-ID: 32ffdd36671e251965c051510efaaaac@SERVERIPREMOVED
CSeq: 102 INVITE
User-Agent: Asterisk PBX 13.29.2
Date: Tue, 11 May 2021 00:34:13 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer



Skyetel is looking for an INVITE packet with: https://pasteboard.co/K1knlhV.png
"From: 'Jose Garcia' <sip:12403403843@SERVERIPREMOVED>"
"P-Asserted-Identity: 'Jose Garcia' <sip:12403403843@ SERVERIPREMOVED>"

Reading thru their knowledgebase setting the proper caller ID in the "From" header is all I need.

How can I set the "From:" header to pass the correct caller ID? Can I set it directly based on the campaign CID?

Thank you in advance :D
Last edited by Cyberwolf2 on Tue May 11, 2021 1:00 am, edited 1 time in total.
Install by vicifast script by callcentertech.net, maintained by me
AlmaLinux8
Asterisk 16.17.0-vici
astGUIclient: VERSION: 2.14-878a, BUILD: 230312-2212
IONOS Dedicated AR6-32, 6 core 32GBram AMD
VOIP Provider: Skyetel
NGINX
Cyberwolf2
 
Posts: 16
Joined: Mon May 10, 2021 7:59 pm

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby carpenox » Mon May 10, 2021 9:12 pm

you should edit out your Ip's and such. As for the p asserted identity this is the first ive heard of it. Are you sure your calls are just not going through because of the new stir/shaken technologies that need token authentication? A lot of carriers and using it already and contact is getting less and less
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby Cyberwolf2 » Tue May 11, 2021 12:22 am

carpenox wrote:you should edit out your Ip's and such. As for the p asserted identity this is the first ive heard of it. Are you sure your calls are just not going through because of the new stir/shaken technologies that need token authentication? A lot of carriers and using it already and contact is getting less and less


Nope, I forget when but this will materialize very soon. Stir/Shaken will be a requirement soon :(

I'm taking Skyetel's word for it and assuming this is why. I can dial to some phones, but not all. My neighbor receives the calls and there is no Caller ID CID and sometimes garbage resembling bits of the username set in Account Entry.

UPDATE

I managed to get the P-Asserted-Identity showing by adding this to my acc entry and dialplan:

Added to Account Entry:

Code: Select all
set sendrpid=pai


Full Account Entry:

Code: Select all
[SKYETELOUT]
type=friend
qualify=yes
host=term.reg.skyetel.com
username=7h0xbykg2oj3
fromuser=7h0xbykg2oj3
secret= SECRETREMOVED
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=g722
allow=ulaw
set sendrpid=pai


Added to Dialplan:

Code: Select all
exten => _775X.,n,SipAddHeader(P-Asserted-Identity: "Jose Garcia" <sip:${CALLERID(num)}@SERVERIPREMOVED>)


Full Dial-Plan:

Code: Select all
exten => _775X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _775X.,n,SipAddHeader(P-Asserted-Identity: "Jose Garcia" <sip:${CALLERID(num)}@SERVERIPREMOVED>)
exten => _775X.,n,Dial(SIP/1${EXTEN:3}@SKYETELOUT,55,tToR)
exten => _775X.,n,Hangup()


See SNGREP Invite packet https://pasteboard.co/K1m6Lna.png

4th line from bottom you can see that the P-Asserted-Identity is set to SKYETEL's example. Example: https://pasteboard.co/K1knlhV.png

I Still need to figure out

How to replace "7h0xbykg2oj3" (same as user in Account Entry) with the right DID 12162825537 before the @SERVERIPREMOVED ref https://pasteboard.co/K1m6Lna.png
Last edited by Cyberwolf2 on Tue May 11, 2021 1:12 am, edited 4 times in total.
Install by vicifast script by callcentertech.net, maintained by me
AlmaLinux8
Asterisk 16.17.0-vici
astGUIclient: VERSION: 2.14-878a, BUILD: 230312-2212
IONOS Dedicated AR6-32, 6 core 32GBram AMD
VOIP Provider: Skyetel
NGINX
Cyberwolf2
 
Posts: 16
Joined: Mon May 10, 2021 7:59 pm

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby carpenox » Tue May 11, 2021 12:44 am

use the SET option in your dialplan, and I can not stress enough how important it is that you do not share information with your IP address to your server. I am a cyber security professional before anything else and I promise you that if i tried right now, I could hack into your server just from the information youve given in this post. Highlight them out using the snipping tool as shown in this example:

Image
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby Cyberwolf2 » Tue May 11, 2021 1:17 am

carpenox wrote: I can not stress enough how important it is that you do not share information with your IP address to your server

Thanks, all of my IPs have been removed.

carpenox wrote:use the SET option in your dialplan

Ok, I rearranged my question. Thanks for the lead.

Just to be clear I want to replace "7h0xbykg2oj3" (same as user in Account Entry) with the right DID 12162825537 before the @SERVERIPREMOVED ref https://pasteboard.co/K1m6Lna.png
I'm working on finding this out via the "Set" option in the dialplan.
Install by vicifast script by callcentertech.net, maintained by me
AlmaLinux8
Asterisk 16.17.0-vici
astGUIclient: VERSION: 2.14-878a, BUILD: 230312-2212
IONOS Dedicated AR6-32, 6 core 32GBram AMD
VOIP Provider: Skyetel
NGINX
Cyberwolf2
 
Posts: 16
Joined: Mon May 10, 2021 7:59 pm

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby Cyberwolf2 » Tue May 11, 2021 2:04 am

Cyberwolf2 wrote:Just to be clear I want to replace "7h0xbykg2oj3" (same as user in Account Entry) with the right DID 12162825537 before the @SERVERIPREMOVED ref https://pasteboard.co/K1m6Lna.png


Fixed this! Turns that
Code: Select all
username=7h0xbykg2oj3

causes this behavior, so I took it out.

Current Account Entry:
Code: Select all
[SKYETELOUT]
type=friend
qualify=yes
host=term.reg.skyetel.com
fromuser=7h0xbykg2oj3
secret=SECRETREMOVED
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=g722
allow=ulaw
set sendrpid=pai


Current Dialplan:

Code: Select all
exten => _775X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _775X.,n,Set(CALLERID(name)=”Jose Garcia”)
exten => _775X.,n,Set(CALLERID(number)=${CALLERID(num)})
exten => _775X.,n,SipAddHeader(P-Asserted-Identity: ${CALLERID(name)} <sip:${CALLERID(num)}@34.86.97.240>)
exten => _775X.,n,Dial(SIP/1${EXTEN:3}@SKYETELOUT,55,tToR)
exten => _775X.,n,Hangup()


Now the INVITE Packet looks like: https://pasteboard.co/K1msNWZ.png, not sure if the ellipses before and after the CID "...Jose Garcia ..." are important.

IT WORKS NOW!!!!
Install by vicifast script by callcentertech.net, maintained by me
AlmaLinux8
Asterisk 16.17.0-vici
astGUIclient: VERSION: 2.14-878a, BUILD: 230312-2212
IONOS Dedicated AR6-32, 6 core 32GBram AMD
VOIP Provider: Skyetel
NGINX
Cyberwolf2
 
Posts: 16
Joined: Mon May 10, 2021 7:59 pm

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby carpenox » Wed May 12, 2021 3:40 am

Glad i could help
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Skyetel: Set "From:" and "P-Asserted-Identity" headers

Postby mflorell » Sun Jun 06, 2021 9:35 am

As a note on this ticket, we just posted new code to the VICIdial svn/trunk codebase for our integration with TILTX's STIR/SHAKEN service.

Here's the documentation on how it works:
http://vicidial.org/docs/TILTX_SHAKEN_API.txt
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 61 guests

cron