problems with dial-peer voice

For outgoings calls I must type 9 before called phone number.
Now I have GSM gateway. And if I want make calls thru GSM module I must type 8 berfoer called number.
But now I want that UC500 recognize GSM phone numbers also if I type 9 before called number.
So with 8 in the beginning of called number I can make phone calls over GSM module, with 9 in the beginning of called number calls go via PSTN

!
dial-peer voice 3000 voip
description SIP-T to GSM-GW
destination-pattern 8.........
session protocol sipv2
session target ipv4:192.168.100.2:5060
session transport udp
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 3001 voip
description SIP-T to GSM-GW pametno z 9XXX-XXX
destination-pattern 90[3-5].......
session protocol sipv2
session target ipv4:192.168.100.2:5060
session transport udp
dtmf-relay sip-notify
codec g711ulaw
no vad
!

0
Your rating: None
jnikolatos's picture

krofek - what's your issue?

krofek - what's your issue? You do not fully mention it. dial-peer 3001 is there a typo with the ZERO (2nd digit)?

John
NIKTEK LLC

And your question is

And your question is ?
Probably that is not working because the correct configuration for DP 3001 should be:

destination-pattern 0[3-5].......

Unless you're using 0 for other purposes, you can eliminate the leading 9.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.