[context_aup_income_513107]
exten => s,1,Set(CALLERID(num)=8${CALLERID(num)})
exten => s,n,Dial(sip/555&sip/114&sip/132&sip/127&sip/216,4,t)
exten => s,n,Dial(sip/555&sip/114&sip/132&sip/127&sip/216&sip/116,30,t)
exten => s,n,Hangup
В логах вижу:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
-- Starting simple switch on 'DAHDI/11-1'
-- Executing [s@context_aup_income_513107:1] Set("DAHDI/11-1", "CALLERID(num)=8xxxxxxxxxx") in new stack
-- Executing [s@context_aup_income_513107:2] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216,4,t") in new stack
-- Called sip/555
-- Called sip/114
[Mar 11 11:54:20] NOTICE[13516][C-00001744]: chan_sip.c:6758 update_call_counter: Call to peer '132' rejected due to usage limit of 1
-- Couldn't call sip/132
-- Called sip/127
== Extension Changed 216[context_aup_out] new state Ringing for Notify User 103
-- Called sip/216
-- SIP/127-000033b1 connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033b1 is ringing
-- SIP/114-000033af is ringing
-- SIP/555-000033ae is ringing
-- SIP/216-000033b2 is ringing
-- Nobody picked up in 4000 ms
-- Executing [s@context_aup_income_513107:3] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216&sip/116,30,t") in new stack
== Extension Changed 216[context_aup_out] new state Idle for Notify User 103
-- Called sip/555
-- Called sip/114
[Mar 11 11:54:24] NOTICE[13516][C-00001744]: chan_sip.c:6758 update_call_counter: Call to peer '132' rejected due to usage limit of 1
-- Couldn't call sip/132
-- Called sip/127
-- Called sip/216
-- Called sip/116
-- SIP/127-000033b6 connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033b6 is ringing
-- SIP/116-000033b8 is ringing
-- SIP/114-000033b4 is ringing
-- SIP/555-000033b3 is ringing
-- SIP/114-000033b4 is ringing
-- SIP/216-000033b7 is ringing
-- SIP/216-000033b7 is ringing
-- SIP/216-000033b7 is ringing
-- Nobody picked up in 30000 ms
-- Executing [s@context_aup_income_513107:4] Hangup("DAHDI/11-1", "") in new stack
== Spawn extension (context_aup_income_513107, s, 4) exited non-zero on 'DAHDI/11-1'
-- Hanging up on 'DAHDI/11-1'
-- Hungup 'DAHDI/11-1'
-- Executing [s@context_aup_income_513107:1] Set("DAHDI/11-1", "CALLERID(num)=8xxxxxxxxxx") in new stack
-- Executing [s@context_aup_income_513107:2] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216,4,t") in new stack
-- Called sip/555
-- Called sip/114
[Mar 11 11:54:20] NOTICE[13516][C-00001744]: chan_sip.c:6758 update_call_counter: Call to peer '132' rejected due to usage limit of 1
-- Couldn't call sip/132
-- Called sip/127
== Extension Changed 216[context_aup_out] new state Ringing for Notify User 103
-- Called sip/216
-- SIP/127-000033b1 connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033b1 is ringing
-- SIP/114-000033af is ringing
-- SIP/555-000033ae is ringing
-- SIP/216-000033b2 is ringing
-- Nobody picked up in 4000 ms
-- Executing [s@context_aup_income_513107:3] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216&sip/116,30,t") in new stack
== Extension Changed 216[context_aup_out] new state Idle for Notify User 103
-- Called sip/555
-- Called sip/114
[Mar 11 11:54:24] NOTICE[13516][C-00001744]: chan_sip.c:6758 update_call_counter: Call to peer '132' rejected due to usage limit of 1
-- Couldn't call sip/132
-- Called sip/127
-- Called sip/216
-- Called sip/116
-- SIP/127-000033b6 connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033b6 is ringing
-- SIP/116-000033b8 is ringing
-- SIP/114-000033b4 is ringing
-- SIP/555-000033b3 is ringing
-- SIP/114-000033b4 is ringing
-- SIP/216-000033b7 is ringing
-- SIP/216-000033b7 is ringing
-- SIP/216-000033b7 is ringing
-- Nobody picked up in 30000 ms
-- Executing [s@context_aup_income_513107:4] Hangup("DAHDI/11-1", "") in new stack
== Spawn extension (context_aup_income_513107, s, 4) exited non-zero on 'DAHDI/11-1'
-- Hanging up on 'DAHDI/11-1'
-- Hungup 'DAHDI/11-1'
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
-- Starting simple switch on 'DAHDI/11-1'
-- Executing [s@context_aup_income_513107:1] Set("DAHDI/11-1", "CALLERID(num)=8") in new stack
-- Executing [s@context_aup_income_513107:2] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216,4,t") in new stack
-- Called sip/555
-- Called sip/114
-- Called sip/132
-- Called sip/127
-- Called sip/216
-- SIP/127-000033bc connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033bc is ringing
-- SIP/555-000033b9 is ringing
-- SIP/216-000033bd is ringing
-- SIP/114-000033ba is ringing
-- SIP/132-000033bb is ringing
-- Nobody picked up in 4000 ms
-- Executing [s@context_aup_income_513107:3] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216&sip/116,30,t") in new stack
-- Called sip/555
-- Called sip/114
-- Called sip/132
-- Called sip/127
-- Called sip/216
-- Called sip/116
-- SIP/127-000033c1 connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033c1 is ringing
-- SIP/116-000033c3 is ringing
-- SIP/555-000033be is ringing
-- SIP/114-000033bf is ringing
-- SIP/114-000033bf is ringing
-- SIP/132-000033c0 is ringing
-- SIP/132-000033c0 is ringing
-- SIP/132-000033c0 is ringing
-- SIP/216-000033c2 is ringing
-- SIP/216-000033c2 is ringing
-- SIP/216-000033c2 is ringing
== Spawn extension (context_aup_income_513107, s, 3) exited non-zero on 'DAHDI/11-1'
-- Hanging up on 'DAHDI/11-1'
-- Hungup 'DAHDI/11-1'
-- Executing [s@context_aup_income_513107:1] Set("DAHDI/11-1", "CALLERID(num)=8") in new stack
-- Executing [s@context_aup_income_513107:2] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216,4,t") in new stack
-- Called sip/555
-- Called sip/114
-- Called sip/132
-- Called sip/127
-- Called sip/216
-- SIP/127-000033bc connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033bc is ringing
-- SIP/555-000033b9 is ringing
-- SIP/216-000033bd is ringing
-- SIP/114-000033ba is ringing
-- SIP/132-000033bb is ringing
-- Nobody picked up in 4000 ms
-- Executing [s@context_aup_income_513107:3] Dial("DAHDI/11-1", "sip/555&sip/114&sip/132&sip/127&sip/216&sip/116,30,t") in new stack
-- Called sip/555
-- Called sip/114
-- Called sip/132
-- Called sip/127
-- Called sip/216
-- Called sip/116
-- SIP/127-000033c1 connected line has changed. Saving it until answer for DAHDI/11-1
-- SIP/127-000033c1 is ringing
-- SIP/116-000033c3 is ringing
-- SIP/555-000033be is ringing
-- SIP/114-000033bf is ringing
-- SIP/114-000033bf is ringing
-- SIP/132-000033c0 is ringing
-- SIP/132-000033c0 is ringing
-- SIP/132-000033c0 is ringing
-- SIP/216-000033c2 is ringing
-- SIP/216-000033c2 is ringing
-- SIP/216-000033c2 is ringing
== Spawn extension (context_aup_income_513107, s, 3) exited non-zero on 'DAHDI/11-1'
-- Hanging up on 'DAHDI/11-1'
-- Hungup 'DAHDI/11-1'
При этом при первом круге нормально отрабатывает callerid и на принимающих аппаратах видно нормальный номер, а при втором круге видно только цифру "8".