Call From An Extension

Home » Asterisk Users » Call From An Extension
Asterisk Users 6 Comments

I can make calls over a SIP trunk as SIP//number

I am trying to make calls over an extension thought using the same format SIP/4452/number – its not working.

person says they can connect a software as extension 4452 and it works just fine.

I have my register:
register => 4452@X.X.X.X/4452

[4452]
type=friend usernameD52
host=X.X.X.X
allow=all dtmfmode=inband

When I try to make the call I get :
[Jan 28 08:05:57] NOTICE[44761]: pbx_spool.c:447 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
[Jan 28 08:05:57] NOTICE[44761]: pbx_spool.c:450 attempt_thread: Queued call to SIP/4452/7XXXXXXXXX expired without completion after 0 attempts

(where 7 is the outside line).

The exten 4452 is registered fine. How do I make a call as an extension or what might I be missing?

Thanks,

Jerry

6 thoughts on - Call From An Extension

  • No,

    Extension to extension calls would be:

    Dial(SIP/${EXTEN])

    My extension to extension dial line is

    exten => s,n,Dial(SIP/${ARG1},${timeout},${dial.opts})

    I’m currently still on chan_sip,

    Doug

  • Correct – I can dial SIP extensions. Not a problem SIP/100 etc…

    This is wanting to make a call to an outside number looking like it comes from an extension.

    How do I do that?

    4452 is an extension on my system (end point). I register that extension to the SIP server.

    I desire to make a call from my system looking like it comes from 4452
    and call the outside number.

    Thanks

    Jerry

  • If you have control over your CID with your provider, you can use Set(CALLERID(number)=4452)

    Otherwise, you cannot.

    If you would provide us with what you are trying to accomplish, maybe we can give you some options. Doug

  • HI Doug – Your got! Thanks. All I had to do in this case was set the CallerID to 4452. As I mentioned I was just trying to “look” like I was extension 4452 and wants to call a number to an outside line. setting the CallerID made it happen.

    Jerry

  • I understood that part, I was hoping to understand why.

    In the past, I’ve used the PSTN lines to connect two Asterisk systems for extension to extension calls and was able to route source and destination extensions via the dial-plan, just by parsing the assigned CID.

    Was thinking that may be what you were also trying to accomplish.

    Doug

  • Agreed. Always in the past I would use a SIP trunk and no issue. This person could not provide a SIP trunk only extensions. Hence the issue. But setting the CID with the extension did the trick. Thanks for your assistance.

    Jerry