[Asterisk-Users] PRI and Dialed Number

Tobias Ahlander plyschen at gmail.com
Tue Dec 6 06:27:05 MST 2005


Hello,

I have set up an Asterisk server, and connected it to a Brooktrout faxcard
via PRI. I have 8 extensions configured, 4001-4008, and 4001 goes to channel
1 etc. When I send a fax to 4001, I want it routed with the number dialed
(4001), but all Asterisk sends is the channel number (1). This is probably
because Asterisk starts a new session when it dials channel 1, and therefore
the 1 is the correct B-number (from Asterisk's point of view).

How do I change this value to the dialed number so I can do proper routing
of the faxes? I've noticed that dialed number is stored in $DNID, but can I
use that variable and put it in the B-number somehow?

Any thoughts?

Thank you

Best regards
Tobias Ahlander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051206/62fbf45f/attachment.htm


More information about the asterisk-users mailing list