Dial a number instead of an extension?

Say, I have some SIP-devices defined in sip.conf

[livingroom]
type=friend
host=dynamic
secret=NotEvenIfYouTortureMe!
context=myhome

[bedroom]
type=friend
host=dynamic
secret=ThisIsWhereTheMagicHappens
context=myhome

I have some numbers defined in extensions.conf, so I can call these devices

exten => 10,1,Dial(SIP/livingroom,30,kKtT)
same => n,Hangup()

exten => 11,1,Dial(SIP/bedroom,30,kKtT)
same => n,Hangup()

Now, for incoming calls, from the trunk to my provider, I would use something like this

exten => s,n,Dial(SIP/livingroom&SIP/bedroom,30,kKtT)
exten => s,n,Hangup()

I wonder if I can dial extension 10 and 11, instead of the SIP-devices livingroom and bedroom. For example

exten => s,n,Dial(SIP/10&SIP/11,30,kKtT)
exten => s,n,Hangup()

This example doesn’t work, obviously. If it did, I wouldn’t have asked.

The reason I’m asking this, is that I’m struggling with pickup and BFL for some time now. It works from internal calls, but not for external calls. I think the reason is that in case of an external call, the call is send directly to the SIP-device. So, if I try to pickup extension 10 with the flashing BFL-light in the bedroom, it doesn’t work, because (as far as Asterisk is concerned) nothing is calling extension 10.

Sending an incoming call to extension 10 instead of SIP-device livingroom would solve that.

I could be totally wrong. If I am, please tell me how to fix this. It is driving me crazy! :frowning:

You would need to dial them via local channels.

Hello.

If you never used what David55 said, we’ll show you.
It will look like

exten => s,n,Dial(Local/10@your-context&Local/11@your-context,30,kKtT) exten => s,n,Hangup()

‘your-context’ is some context where you have extensions 10 and 11 defined.

It’s working! And BLF is now working properly too. I can pickup both internal and external calls with the flashing BLF button. Finally!

Thanks! :smiley: