jehowe
Guru
- Joined
- Nov 14, 2007
- Messages
- 288
- Reaction score
- 4
I have only inbound forwarded calls coming into a 1.8.x PIAF box and need to figure out a way to pull the originally dialed number (called RDNIS, the number doing the forwarding) from the INVITE packet.
The diversion header itself looks like this:
As inbound calls come in, I'd like to be able to read the RDNIS number (3125551212) into a context as it comes in for upstream processing.
The diversion header itself looks like this:
Code:
Diversion: <sip:[email protected]:5060>;privacy=full;screen=no; reason=unknown; counter=1
As inbound calls come in, I'd like to be able to read the RDNIS number (3125551212) into a context as it comes in for upstream processing.