[asterisk-dev] setting the q.931 "reason for redirecting"?
Roy Sigurd Karlsbakk
roy at karlsbakk.net
Mon Nov 6 09:14:37 MST 2006
Hi
To answer this myself, setting PRIREDIRECTREASON is not supported in
1.2, but is/will be in 1.4. I took a look at the code, as to check if
backporting it looks hard, and it doesn't. however, something is
wrong so my code can't get what PRIREDIRECTREASON was set to. Can
someone give me a hand here, please? Patch is attached
Dialplan:
...
exten => _XX.,n(dialgsm),Set(CALLERID(rdnis)=${PSTN_NUMBER})
exten => _XX.,n,Set(PRIREDIRECTREASON=NO_REPLY)
exten => _XX.,n,NoOp(PRIREDIRECTREASON=${PRIREDIRECTREASON})
exten => _XX.,n,Dial(${TRUNK}/${GSM_NUMBER},${DIAL_TIMEOUT},t)
Console output:
...
-- Executing Set("Zap/1-1", "CALLERID(rdnis)=21973552") in new
stack
-- Executing Set("Zap/1-1", "PRIREDIRECTREASON=NO_REPLY") in new
stack
-- Executing NoOp("Zap/1-1", "PRIREDIRECTREASON=NO_REPLY") in
new stack
-- Executing Dial("Zap/1-1", "Zap/g1/48869440|120|t") in new stack
-- Requested transfer capability: 0x00 - SPEECH
Nov 6 17:10:21 WARNING[9013]: chan_zap.c:2156 zt_call: DEBUG:
PRIREDIRECTREASON is not set
Pri debug:
...
> [74 0b 21 01 8f 32 31 39 37 33 35 35 32]
> Redirecting Number (len=13) [ Ext: 0 TON: National Number (2)
NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> Ext: 0 Presentation: Presentation
permitted, user number passed network screening (1)
> Ext: 1 Reason: Forwarded
unconditionally (15) '21973552' ]
thanks
roy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_priredirectreason.patch
Type: application/octet-stream
Size: 1817 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20061106/41e52732/set_priredirectreason.obj
-------------- next part --------------
On 6. nov. 2006, at 15.55, Roy Sigurd Karlsbakk wrote:
> hi all
>
> how can I set the "reason for redirecting" as defined in Q.931
> 4.6.7 Redirecting number? While redirecting some calls, telco says
> "you need to set reason for redirecting to 0 0 1 0 Call forwarding
> no reply. I can find code related to this in libpri, but no app to
> interface with this in asterisk. The SetCallerPres touches the PRI
> SETUP element, but AFAICS it can't set this.
>
> Any feedback welcome
>
> roy
> --
> Roy Sigurd Karlsbakk
> roy at karlsbakk.net
> -------------------------------
> MICROSOFT: Acronym for "Most Intelligent Customers Realise Our
> Software Only Fools Teenagers"
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
--
Roy Sigurd Karlsbakk
roy at karlsbakk.net
-------------------------------
MICROSOFT: Acronym for "Most Intelligent Customers Realise Our
Software Only Fools Teenagers"
More information about the asterisk-dev
mailing list