Reading second rdnis

Home » Asterisk Users » Reading second rdnis
Asterisk Users No Comments

Hi,

Does anyone how I could extract redirected number from a sip packet

I have redirected a cell to a second cell which also rings a sip trunks and wish to route the call per rdnis
The rdnis variable brings the first redirect (divert) which is the second cell but the first number also appears in the sip header as second divert
Is there anyway I could easily extract the second divert header
Asterisk 1.8

Thanks,
Israel