P'Asserted Identity Showing Vicidial UID

Any and all non-support discussions

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

P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Fri May 27, 2022 9:32 am

Hello All,

We ran into some issues with the Caller ID name for the Canadian Project. We set the P' Asserted Identity with our company name and number. But it is showing two P'Asserted Identities. The first is the one that we set and the second is the one that Vicidial UID is auto-generated. Check the photo attached. How can we fix this? Any suggestions!!

Check the photo here:
Image


Installation Details: Vicidial 9 | Scratch installed on Centos7 | Asterisk 13.29.2-vici | SVN Version:3608 | Version: 2.14b0.5 | DB Schema Version: 1661
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby carpenox » Sat May 28, 2022 12:50 pm

Try a loopback dialplan such as this:

exten => _81NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _81NXXNXXXXXX,n,NoOp(MY CALLERD !!!! ${CALLERID(all)})
exten => _81NXXNXXXXXX,n,Set(_CALLERID(num)=${CALLERID(num)})
exten => _81NXXNXXXXXX,n,Dial(IAX2/ASTloop/9${EXTEN:1},,tTo)
exten => _81NXXNXXXXXX,n,Hangup()

exten => _91NXXNXXXXXX,1,Set(CALLERID(num)=${CALLERID(num)})
exten => _91NXXNXXXXXX,n,Set(CALLERID(name)=${CALLERID(num)})
exten => _91NXXNXXXXXX,n,NoOp(MY CALLERD !!!! ${CALLERID(all)} ${CALLERID(num)} ${CALLERID(name)})
exten => _91NXXNXXXXXX,n,Dial(SIP/${EXTEN:1}@TILTX,,tTo)
exten => _91NXXNXXXXXX,n,Hangup()


Hope this helps

Chris
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Sun May 29, 2022 3:38 am

Hello Chris,

Thanks for writing. We tried to follow one of the old posts regarding the same matter to use the loopback in the extensions.conf file.

http://vicidial.org/VICIDIALforum/viewt ... =4&t=38023


We were able to take off the vicidial UID which was passing to the carriers. But it started another issue, the CID name is showing something like:
From: "\"CIDNAME\"" <sip:1xxxxxxxxxx@xxx.xxx.xxx.xxx:5060>;tag=as238c38df

Why we have extra forward slash?

Check the photo:
https://ibb.co/JjDFn5G

Image
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby williamconley » Sun May 29, 2022 12:22 pm

In the older systems you were expected to change the string 'CIDNAME' to your company name. If you just used it as it was in the extensions.conf file, you just need to change that string to your name. But if you put any extra characters in ... such as quotation marks ...

Perhaps you should post your extensions.conf here so we can see what you did? Just change the name to XYZCorp if you don't want to share your company name.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Sun May 29, 2022 5:17 pm

Hello William,

Thanks for writing!! Here are the extensions.conf file:

We uncommented the following lines in extensions.conf:

exten => _91NXXNXXXXXX,1,Set(CALLERID(name)="XYZCorp")
exten => _91NXXNXXXXXX,n,AGI(agi-CANADA_PRI_CIDname.agi)
exten => _91NXXNXXXXXX,n,Dial(SIP/1234*${EXTEN:1}@Flowroute,,tTo)
exten => _91NXXNXXXXXX,n,Hangup()

And

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Dial(${TRUNKloop}/888${EXTEN:2},55,o)
exten => _91NXXNXXXXXX,n,Hangup()
exten => _888NXXNXXXXXX,1,Goto(loopback-no-log,91${EXTEN:3},1)
exten => _888NXXNXXXXXX,n,Hangup()

exten => 8889990011112,1,Goto(loopback-no-log,9990011112,1)
exten => 8889990011112,n,Hangup()


While the Dialplan Entry is:
exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,n,SipAddHeader(P-Asserted-Identity: "XYZCorp" <sip:${CALLERID(num)}@ap-southeast-sin.sip.flowroute.com>)
exten => _91XXXXXXXXXX,n,Dial(SIP/1234*${EXTEN:1}@Flowroute,,tTo)
exten => _91XXXXXXXXXX,n,Hangup()
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby williamconley » Mon May 30, 2022 2:26 pm

Why we have extra forward slash?


exten => _91XXXXXXXXXX,n,SipAddHeader(P-Asserted-Identity: "XYZCorp" <sip:${CALLERID(num)}@ap-southeast-sin.sip.flowroute.com>)


exten => _91NXXNXXXXXX,1,Set(CALLERID(name)=XYZCorp)


change that string to your name. But if you put any extra characters in ... such as quotation marks ...


Have you tried
Code: Select all
exten => _91NXXNXXXXXX,1,Set(CALLERID(name)=XYZCorp)

and/or
Code: Select all
P-Asserted-Identity: XYZCorp <sip:${CALLERID(num)}@ap-southeast-sin.sip.flowroute.com>


instead of
Code: Select all
exten => _91NXXNXXXXXX,1,Set(CALLERID(name)="XYZCorp")

and/or
Code: Select all
P-Asserted-Identity: "XYZCorp" <sip:${CALLERID(num)}@ap-southeast-sin.sip.flowroute.com>
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Tue May 31, 2022 5:13 pm

Thanks, William. That's showing the correct name now!!

But my carrier is saying they are not getting any P'Asserted Identity. They said: "we're seeing "XYZCorp" being sent over in the From field and no P-Asserted-Identity being sent over. You'll need to set the P-Asserted-Identity in the PBX.

In the sip.conf file we have
trustrpid=no
sendrpid=pai
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby williamconley » Tue May 31, 2022 8:42 pm

When using the Vicidial Loopback methods, there are two calls.

The first call "loops back" to the same server via an IAX2 dial, which is then routed to the "loopback" context. Then a 2nd call is generated. Is your p'asserted identity on that first call, or the second one?

Since the first call is ... in-house, it would be pointless to have p'asserted on that. So only the second call requires this is if you need it for your carrier.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Wed Jun 01, 2022 12:48 am

We have set the P'Asserted Identity only on the dialplan as mentioned above.


syedfahim786 wrote:While the Dialplan Entry is:
exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,n,SipAddHeader(P-Asserted-Identity: XYZCorp <sip:${CALLERID(num)}@ap-southeast-sin.sip.flowroute.com>)
exten => _91XXXXXXXXXX,n,Dial(SIP/1234*${EXTEN:1}@Flowroute,,tTo)
exten => _91XXXXXXXXXX,n,Hangup()
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby williamconley » Wed Jun 01, 2022 3:14 pm

Grab a SIP debug from that outgoing call, which should show the p'assert. Send it to the carrier and ask if there's a reason it would disappear between your server and theirs.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Sat Jun 04, 2022 11:45 am

williamconley wrote:Grab a SIP debug from that outgoing call, which should show the p'assert. Send it to the carrier and ask if there's a reason it would disappear between your server and theirs.



SIP debug is only showing From and To. But no P'Asserted Identity.

Image
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby williamconley » Sun Jun 05, 2022 12:08 pm

1) Your dialplan shows the assert header being added

2) Your SI P debug fails to show the header

Now you have to confirm:
* that the dialplan you showed is actually the one in use. Best method would be to remove all other traffic from the system and make a test call. you'll see the dialplan execute just before the sip packet debug is generated. that should confirm/deny whether the extension adding the assert header actually executes
* that the dialplan you showed is properly formatted (if the previous step shows the dialplan line executing with the assert, but the SIP debug still has no assert). In that case, you'll need a generic test-case scenario to prove the method of adding the assert line into a sip invite.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: P'Asserted Identity Showing Vicidial UID

Postby syedfahim786 » Sat Jun 25, 2022 1:57 pm

Thanks, William for all your valuable suggestions.

I am a little curious to know what will happen if we can change extensions.conf file like:

exten => _91NXXNXXXXXX,1,Set(CALLERID(name)=XYZ Corp)
exten => _91NXXNXXXXXX,n,SipAddHeader(P-Asserted-Identity: "XYZ Corp" <sip:${CALLERID(num)}@13.xxx.xxx.xx>)
;exten => _91NXXNXXXXXX,n,AGI(agi-CANADA_PRI_CIDname.agi)
exten => _91NXXNXXXXXX,n,Dial(SIP/111111*${EXTEN:1}@Flowroute,,tTo)
exten => _91NXXNXXXXXX,n,Hangup()

Using the above extension (disabled Canada.agi) increased call connectivity and callbacks. Both with and without Canada.agi CIDname was successfully displayed.

Cheers
syedfahim786
 
Posts: 17
Joined: Tue May 18, 2021 3:39 am

Re: P'Asserted Identity Showing Vicidial UID

Postby williamconley » Sat Jun 25, 2022 2:51 pm

You should read the notes at the top of the agi script in question. There are usually pretty good notes in all the files in Vicidial. Of course, the agi script isn't in English but perl agi scripting also isn't rocket science and is Pretty Close to English. 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: P'Asserted Identity Showing Vicidial UID

Postby jamiemurray » Sun Oct 16, 2022 9:28 am

I use this for setting Caller ID name for calls to Canada without lookback calls (which increase load) and it works beautifully.

If you're not using caller ID name (the value is blank), then the caller id number will be used as the "name" in the caller id, overriding the vicidial call id without amending the From header and breaking auto-dialling.

Note: Not all carriers support using P-Asserted-ID as the caller ID override and some require different formats. Test it first or check with the carrier.

In your carrier dialplan entry:

Code: Select all
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
same => n,GotoIf($["${CUT(SIPADDHEADER01, ,2-)}" = ""]?basicpaid)
same => n,SIPAddHeader(P-Asserted-Identity: "${CUT(SIPADDHEADER01, ,2-)}" <tel:${CALLERID(num)}>)
same => n,Goto(dial)
same => n(basicpaid),SIPAddHeader(P-Asserted-Identity: "${CALLERID(num)}" <tel:${CALLERID(num)}>)
same => n(dial),Dial(${CARRIER}/${EXTEN:1},${CAMPDTO},To)
same => n,Hangup()


For easy Canada Caller ID name support:

In system settings:
OpenSIPs CID Name Support = 1

In Campaign Detail View:
Campaign CID Name = [Your CID Name as you want it displayed]
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 40 guests