voip - asterisk dialplan, forward call to gateway/pstn -


I have a VoIP infrastructure in the company, last digit can dial mobile number in this case:

9 ... they wait for PSTN dial tones ... after dial tones they can dial their number.

I do it like this:

exten = & gt; 9,1, Dial (SIP / 8003)

Witch CIP / 8003 is a SIP account that is connected to FXO Gateway and from Asterisk through SIT trunk joined.

I want to do this: End point dial:

909121111111

instead of

9 ... followed by dialton .... 09121111111

Generally, what you can do, in an accessible context, one way to dial the whole thing - and then use a substrings to break some parts of it.

  exten = & gt; _9XXXXXXXXXX, 1, Dial (SIP / 8003 / $ {EXTEN: 1}) The first part of the extension matches a 9-digit number 9-digit:  _9XXXXXXXXXX < / Code>.  

See the article on the next, on our dial application, what do we dial your SIP device, but, we pass it back the dialed extensions, but pay attention to the colon? Like $ {EXTEN: 1} is to strip this data. That is, it adds the first digit, you can learn more about it.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -