Share This Post:

Set up caller ID from API

I have multiple “caller id” numbers set up and authorized for use in my callcentric account.  Is there a way to have the Voicent gateway request use of these different numbers as the outbound caller ID on various outgoing calls made from the gateway?

In the SIP advanced tab, there are a few check boxes about caller ID, such as use P-Asserted-Identity. Try to enable them one at a time to see which one works.

Ultimately, your VOIP service has to support these options. In your case, it seems callcentric uses P-Asserted-Identity based on their online info: “Once verified you may configure your IP PBX to pass any verified caller ID or any DID on your account during an outbound call (within the SIP INVITE message) by including the P-ASSERTED-IDENTITY, P-PREFERRED-IDENTITY, or REMOTE-PARTY-ID headers within the outbound call which will override any default Caller ID settings you have on your account.”

How does Voicent software set the caller ID info?

Voicent software sets the SIP INVITE message based on your caller ID settings. It could be the FROM field of the message or P-Asserted-Identity field.

How does Voicent software know which caller ID to use? So for campaigns, it is based on your selection of the caller ID (the last step of the campaign wizard). If you are making manual outbound calls using Agent Dashboard, the caller ID is based on your selection in your agent profile.

To add a caller ID to your system, go to Setup, Account, Caller ID to add. If you are using our cloud service, you need to make sure your plan has Caller ID feature.

I’m using only the Voicent Gateway and currently just the vb.net CallText function. In essence, I’m performing on demand dialing because I supply that function with the phone numbers to call and the TTS messages to relay. This information is pulled one-at-a-time from a separate database. Then, at a later time I use the CallStatus function to check the status of each individual call and use that result to update the database. I’m looking for a way to also include the correct outgoing caller ID that corresponds to the current call while still maintaining the simplistic approach of using the CallText and CallStatus functions. The idea of using a campaign seems to be overly complex and not a good fit for my particular project. Is it possible to use these functions and also have a selectable caller ID using the P-Asserted-Identity?

Yes. You need to include the parameter (callerid) in your API.

The included sample class does not include this parameter. But it should be pretty simple to update the calltext function to include this parameter and pass down to the lower level calls.

Ok, just to make sure that I understand what you’ve stated in your last email. I need to modify the CallText function (similar to what I’ve included below) so that the callerid parameter can be passed down to lower level calls. My changes are included below:


Public Function CallText(ByVal phoneno As String, ByVal callerid As String, ByVal text As String, ByVal selfdelete As Boolean)

Dim urlstr As String = "/ocall/callreqHandler.jsp"

' setting the http post string

Dim poststr As String = "info=Simple Text Call " + phoneno

poststr += "&phoneno=" + phoneno

poststr += "&callerid=" + callerid

poststr += "&firstocc=0"

poststr += "&selfdelete="

If (selfdelete) Then

poststr += "1"

Else

poststr += "0"

End If

poststr += "&txt=" + text

' Send Call Request

Dim rcstr As String = PostToGateway(urlstr, poststr)

Return GetRequestID(rcstr)

End Function

That’s correct.

Share This Post:

This entry was posted in Auto Dialer, Developer. Bookmark the permalink.