[asterisk-dev] transmitting network- and userprovided callernumber
with chan_zap (libpri & asterisk)
Marcus Hunger
hunger at sipgate.de
Mon Jun 19 07:10:42 MST 2006
Hi,
in order to transmit two sender-numbers when placing a call with chan_zap, I
did some changes to asterisk and libpri. As a result, it is possible to have
either an userprovided-screened number or a network-provided-number in
addition to an userprovided-unscreened one.
Using this feature is straightforward by setting CALLERID(ani) and
CALLERID(num) in a dialplan.
exten => _X.,1,Set(CALLERID(ani)=230000)
exten => _X.,2,Set(CALLERID(num)=420000)
exten => _X.,3,SetCallerPres(allowed_passed_screen)
exten => _X.,4,Dial(ZAP/g1/${EXTEN})
If CALLERID(ani) is set, it is added with presentation-parameters specified by
SetCallerPress to the q931-setup and CALLERID(num) declares the
userprived-unscreened field.
The patches are quite simple, but change the signature of a library-call, so I
would like to have some comments / recommendations about alternatives or
better ways of implementation.
Best regards,
Marcus Hunger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asterisk-1.2.9.1-twocallernumbers.patch
Type: text/x-diff
Size: 808 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20060619/f446be29/asterisk-1.2.9.1-twocallernumbers.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libpri-1.2.3-twocallernumbers.patch
Type: text/x-diff
Size: 6291 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20060619/f446be29/libpri-1.2.3-twocallernumbers.bin
More information about the asterisk-dev
mailing list