question

svrs-dev avatar image
svrs-dev asked ·

Pull DNIS through API

Maybe I'm missing something, but I can't figure out how to pull the DNIS number from the API. Has anyone done this? Am I just missing the value somewhere? I've gone through all the documents and I'm convinced that I must have overlooked it. Can anyone point me in the right direction? 
topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered ·
Can you share your use case in more details? Is it about call log API? What kind of setup you have so that DNIS is different from "to" number in response?
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

svrs-dev avatar image
svrs-dev answered ·
I guess I'm asking how this would work with extensions in the Get User Call Log method. Would it just list the extension of the main line instead of the direct line? I'm in a sandbox account and can't test anything with an 800 number or extensions, so I want to know how the DNIS or "To" would work for an inbound call. I can't find examples of this so far. 
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered ·
I think you still should be able to test it with local numbers. You can add direct number to your Sandbox account extensions and configure unconditional forwarding from your main number (local) to this extension. Then experiment trying to call to main number or direct extension number. I believe that "to" field in Call Log API should contain the number which was called. There is no difference in processing of toll free vs local numbers in this respect.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.